<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tchips.com</title>
	<atom:link href="http://tchips.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tchips.com</link>
	<description></description>
	<lastBuildDate>Sun, 04 Nov 2012 22:26:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Nixie Music Visualizer</title>
		<link>http://tchips.com/nixie-music-visualizer/</link>
		<comments>http://tchips.com/nixie-music-visualizer/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 00:17:54 +0000</pubDate>
		<dc:creator>Daniel Naito</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://www.tchips.com/?p=5</guid>
		<description><![CDATA[A hypnotizing music visualizer inspired by those little bars in the top of iTunes.  14 Russian IN-13 Nixie bargraph tubes are used as the display because, well, I think they look really cool. Introduction The goal is to make an &#8230; <a href="http://tchips.com/nixie-music-visualizer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A hypnotizing music visualizer inspired by those little bars in the top of iTunes.  14 Russian IN-13 Nixie bargraph tubes are used as the display because, well, I think they look really cool.</p>
<p style="text-align: center;"><a href="http://www.tchips.com/wp-content/uploads/2012/10/Case.jpg"><img class=" wp-image-34    aligncenter" title="Case" src="http://www.tchips.com/wp-content/uploads/2012/10/Case-1024x532.jpg" alt="" /></a></p>
<p style="text-align: center;"><!--YouTube Error: bad URL entered--></p>
<p style="text-align: center;"><span id="more-7"></span></p>
<div class="wp-caption aligncenter" style="width: 490px"><a href="http://tchips.com/images/music/meter.jpg"><img title="Nixie Meter" src="http://tchips.com/images/music/metersmall.jpg" alt="" width="480" height="360" /></a><p class="wp-caption-text">the visualizer circuitry</p></div>
<h2>Introduction</h2>
<p>The goal is to make an interesting display that would show the volume levels of various frequency bands in an audio signal, as in many music players and on the front of some hi-fi audio equipment.  The three points the project focuses on are:</p>
<ul>
<li><strong>Minimizing cost</strong>: In the process of designing the visualizer, I found <a href="http://m.bareille.free.fr/vu-in13/vumeter_in13.htm">this</a> simple VU meter with a nixie display utilizing an exotic IC to convert an audio signal into a volume level.  While convenient, it’s manufactured by a small company, and each piece would cost over $5 (for me, nearly $80 in those alone!)  For simplicity and for my wallet, this only use simple, cheap, and mass-produced parts.  Also because of cost, I decided that 10K ohm resistors would be used for just about everything, so I could buy a few hundred for around $3.</li>
<li><strong>Analog only</strong>: Using a digital signal processor was a possibility, but programming a DSP is fairly difficult, and the cost of DACs for the input and ADCs to drive the output began to raise the price too far.  So only analog parts such as op-amps and comparators would be used.</li>
<li><strong>Adjustability</strong>: After Nixie IN-13 tubes were chosen as the display, I realized that the only documentation was in Russian (or poorly translated English) and not very informative.  Not knowing anything at all about how much it took to light it up any specific length (aside from “less than 4 milliamps”), everything about this design would be adjustable.</li>
</ul>
<div class="wp-caption aligncenter" style="width: 539px"><a href="http://tchips.com/images/music/itunes.png"><img title="iTunes Visualizer" src="http://tchips.com/images/music/itunes.png" alt="" width="529" height="83" /></a><p class="wp-caption-text">iTunes inspiration</p></div>
<div class="wp-caption aligncenter" style="width: 487px"><a href="http://tchips.com/images/music/hifi.png"><img class=" " title="equalizer" src="http://tchips.com/images/music/hifi.png" alt="" width="477" height="93" /></a><p class="wp-caption-text">equalizer inspiration</p></div>
<h2>Design</h2>
<div class="wp-caption aligncenter" style="width: 423px"><a href="http://tchips.com/images/music/block_diagram.png"><img title="Block Diagram" src="http://tchips.com/images/music/block_diagram.png" alt="" width="413" height="168" /></a><p class="wp-caption-text">block diagram</p></div>
<h2>Amplification</h2>
<p>A standard dual op-amp does the job nicely, amplifying both channels independently.  Two potentiometers make each channel’s gain adjustable.</p>
<h2>Filter</h2>
<p>Each audio channel splits out into 7 different bandpass filters. The filters are centered on 60Hz, 150Hz, 400Hz, 1kHz, 2.5kHz, 6kHz, and 14.5kHz.  Each filter is a Fliege band-pass filter, which has a relatively low count of components, and works well from a single supply (0V and 12V, as opposed to +/-6V).  Each Fliege filter uses two op-amps, so another cheap dual op-amp can be used.</p>
<div class="wp-caption aligncenter" style="width: 475px"><a href="http://tchips.com/images/music/fliege.gif"><img class=" " title="Fliege Filter Circuit" src="http://tchips.com/images/music/fliege.gif" alt="" width="465" height="364" /></a><p class="wp-caption-text">fliege filter circuit and formulas</p></div>
<h2>AC to DC</h2>
<p>Now that there are seven different audio signals for both channels, each containing a different frequency band, they are all converted to a DC volume signal.  A 100uF polarized capacitor removes the 6V DC bias on the audio signal.  A small signal diode rectifies the signal, discarding all of the negative values.  Finally, the signal is smoothed out by a 4.7uF capacitor in parallel with a 10K ohm resistor.  A DC voltage of the recent average volume of the signal is the result.</p>
<div class="wp-caption aligncenter" style="width: 414px"><a href="http://tchips.com/images/music/smooth.png"><img class=" " title="Rectifying and Smoothing Circuit" src="http://tchips.com/images/music/smooth.png" alt="" width="404" height="165" /></a><p class="wp-caption-text">rectifying and smoothing circuit</p></div>
<h2>Logarithmic Converter</h2>
<p>This is the stage that would be way easier if I could afford the $80 in THAT Corporation’s fancy true-RMS and log-calculating chips.  The problem is that what we perceive as volume doesn’t directly translate to the voltage of an audio signal.  When you double the amplitude of a signal, it doesn’t sound twice as loud, it sounds Log(2) times louder.  Skipping this stage would make the display spend nearly all of the time at the very bottom, and spiking high when the sound gets particularly loud.</p>
<p>One way of solving this is by generating several reference voltages, one at the quietest level that the display should detect, one at +3dB, one at +6dB, and so on.  The volume signal can then be compared to each of these references.  For every reference voltage the volume signal is greater than, the display lights an additional unit of length.</p>
<p>An array of seven resistors and two potentiometers is arranged as a voltage divider to generate the necessary eight reference voltages. For each band, eight voltage comparators (in the form of two quad-comparator ICs) compare the signal to these references to determine a linear volume level. The eight outputs of the comparators are then averaged with 10K ohm resistors, giving a range of values from 0V to 12V with each step of 1.5V equaling about 2.1dB.</p>
<div class="wp-caption aligncenter" style="width: 566px"><a href="http://tchips.com/images/music/ref.png"><img class=" " title="Reference Voltages" src="http://tchips.com/images/music/ref.png" alt="" width="556" height="272" /></a><p class="wp-caption-text">reference voltages</p></div>
<div class="wp-caption aligncenter" style="width: 566px"><a href="http://tchips.com/images/music/reflog.png"><img class=" " title="reference log volts" src="http://tchips.com/images/music/reflog.png" alt="" width="556" height="272" /></a><p class="wp-caption-text">the logarithm of reference voltages</p></div>
<h2>Display</h2>
<p><a href="http://tchips.com/images/music/bar.jpg"><img class="alignright" title="bargraph" src="http://tchips.com/images/music/barsmall.jpg" alt="" width="107" height="360" /></a>A voltage divider cuts the signal down by 1/2 so it’s range is between 0V and 6V.  A low-pass RC filter smoothes out the very sharp changes in the volume signal (when the level of the nixie tube is changed too quickly, the lit segment jumps out to the middle of the tube, rather than lighting from one end).</p>
<p>The nixie tube has 3 pins, an anode, a control cathode, and an auxiliary cathode.  The anode is tied to the output of a high voltage power supply at around 125V.  The auxiliary cathode is tied to ground through a 220k ohm resistor.  As far as I can tell, the auxiliary cathode acts as a sort of pilot light, forcing the tube to begin to glow at one end first, rather than from the middle or the other end.  The control cathode is the main tube, and the current through it determines the length of the tube that is lit.  A high voltage NPN transistor modulates the current from the control cathode through a 470 ohm resistor and potentiometer (for tuning purposes).  The base-emitter junction of the transistor has a forward bias voltage of about .65V that it needs to turn on, so an op-amp is used to adjust the signal for this.</p>
<div class="wp-caption aligncenter" style="width: 522px"><a href="http://tchips.com/images/music/display.png"><img class="  " title="Display Circuit" src="http://tchips.com/images/music/display.png" alt="" width="512" height="426" /></a><p class="wp-caption-text">display circuit schematic</p></div>
<h2>Power</h2>
<p>The majority of the visualizer runs off of a 12V AC/DC power supply.  The audio in, amplification and filter stages need 6V power (1/2 the supply).  The 6V is created by a voltage divider of two 100K ohm resistors.  This setup cannot actually source any real amount of current, so it is connected to to non-inverting input of an op-amp, with its output connected to its inverting input.  The output of the op-amp centers perfectly at 1/2 the supply voltage, and it can source current.  The display stage needs 125V to power the nixie tubes.  Creating high voltages with a boost converter requires a very precise layout of the traces, so I purchased a prebuilt one.</p>
<h2>Construction</h2>
<h3>Parts</h3>
<p>15x 470 ohm resistor<br />
1x 780 ohm resistor<br />
14x 1k ohm resistor<br />
1x 1.1k ohm resistor<br />
4x 1.6k ohm resistor<br />
1x 2.0k ohm resistor<br />
9x 2.7k ohm resistor<br />
4x 3.9k ohm resistor<br />
1x 4.7k ohm resistor<br />
4x 6.2k ohm resistor<br />
1x 7.5k ohm resistor<br />
2x 8.2k ohm resistor<br />
170x 10k ohm resistor<br />
8x 11k ohm resistor<br />
4x 15k ohm resistor<br />
2x 20k ohm resistor<br />
2x 33k ohm resistor<br />
4x 56k ohm resistor<br />
2x 100k ohm resistor<br />
14x 220k ohm resistor<br />
2x 250k ohm potentiometer<br />
1x 25k ohm potentiometer<br />
15x 2k ohm potentiometer<br />
14x 100uF electrolytic polarized capacitor<br />
14x 4.7uF electrolytic polarized capacitor<br />
18x 1uF capacitor<br />
13x .1uF capacitor<br />
8x .01uF capacitor<br />
4x 1000pF capacitor<br />
23x LM358N dual op-amp<br />
1x TL3472CP dual op-amp (higher output current)<br />
28x TS3704 quad voltage comparator<br />
14x MJE340 NPN transistor<br />
14x 1N4148 signal diode<br />
24x 8-pin DIP socket<br />
28x 14-pin DIP socket<br />
1x stereo 3.5mm audio jack<br />
14x IN-13 Nixie bargraph tube</p>
<p>All of the passive components were bought from Digikey, while the ICs and transistors were bought from Mouser, because they were considerably cheaper.  Allspectrum.com sold me the high voltage power supply designed for nixie tubes, and Sergey Bochkov at tubes-store.com sold me the actual nixie tubes.  Even though Tubes-Store is run out of Chelyabinsk, an odd industrial city in Central Russia, and it appears that I am only the 5th person to ever buy from the site, they are cheap and shipping was reasonable.</p>
<h2>Schematic</h2>
<div class="wp-caption aligncenter" style="width: 664px"><a href="http://tchips.com/images/music/sch3.png"><img class="    " title="Schematic" src="http://tchips.com/images/music/sch3.png" alt="" width="654" height="379" /></a><p class="wp-caption-text">schematic &#8211; click for higher resolution</p></div>
<p>The schematic shows the circuitry required to run a single nixie tube from a single channel of audio.  On the final board, the input amplification at the left side is doubled, and everything else, excluding the power supply at top left and the voltage divider in the middle (the vertical line of resistors) is multiplied by 14, one for each tube.  The values for the passive components in the filter section are left blank, as they vary greatly for each tube, each filtering out different frequencies.  The following table shows the values of the parts for each filter:</p>
<table border="0">
<tbody>
<tr>
<td><span style="text-decoration: underline;"><strong>Bandpass Frequency<br />
</strong></span></td>
<td><span style="text-decoration: underline;"><strong>Resistor F-R1 (ohms) </strong></span></td>
<td><span style="text-decoration: underline;"><strong>Resistor F-R2/F-R3 (ohms)</strong></span></td>
<td><span style="text-decoration: underline;"><strong>Capacitor F-C1/F-C2 </strong></span></td>
</tr>
<tr>
<td>60 Hz</td>
<td>15k</td>
<td>2.7k</td>
<td>1 uF</td>
</tr>
<tr>
<td>150 Hz</td>
<td>56k</td>
<td>11k</td>
<td>0.1 uF</td>
</tr>
<tr>
<td>400 Hz</td>
<td>20k</td>
<td>3.9k</td>
<td>0.1 uF</td>
</tr>
<tr>
<td>1 kHz</td>
<td>8.2k</td>
<td>1.6k</td>
<td>0.1 uF</td>
</tr>
<tr>
<td>2.5 kHz</td>
<td>33k</td>
<td>6.2k</td>
<td>0.01 uF</td>
</tr>
<tr>
<td>6 kHz</td>
<td>15k</td>
<td>2.7k</td>
<td>0.01 uF</td>
</tr>
<tr>
<td>15 kHz</td>
<td>56k</td>
<td>11k</td>
<td>1000 pF</td>
</tr>
</tbody>
</table>
<div class="wp-caption aligncenter" style="width: 570px"><a href="http://tchips.com/images/music/board.jpg"><img class=" " title="Completed left-channel board" src="http://tchips.com/images/music/boardsmall.jpg" alt="" width="560" height="420" /></a><p class="wp-caption-text">completed left-channel circuit board</p></div>
<p>This is the completed left-channel board, which has the circuitry for five of the nixie tubes.  The right-channel board also powers five tubes, while the middle board powers four tubes (two for the left and two for the right) and contains amplification and power supply parts.</p>
<p>In the above picture, the bottom around the 8-pin DIP chips contains the five bandpass filters.  The capacitors, diode, and resistor above each filter is the rectifying and smoothing stage.  The two 14-pin comparator ICs are the log-lin conversion stage, and the gray ribbon wire connecting them all distribute the reference voltages.  Finally, at the top, are the transistors and amplifiers that power the nixie tubes.</p>
<p style="text-align: center;"><a href="http://www.tchips.com/wp-content/uploads/2012/10/Incase.jpg"><img class=" wp-image-35   aligncenter" title="Incase" src="http://www.tchips.com/wp-content/uploads/2012/10/Incase-1024x468.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tchips.com/nixie-music-visualizer/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Altoids Guitar Headphone Amp</title>
		<link>http://tchips.com/altoids-guitar-headphone-amp/</link>
		<comments>http://tchips.com/altoids-guitar-headphone-amp/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 02:05:46 +0000</pubDate>
		<dc:creator>Daniel Naito</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://www.tchips.com/?p=38</guid>
		<description><![CDATA[This is my build of a common project, a headphone amp in an Altoids tin.  I made this for my cousin&#8217;s birthday, so he can practice while maintaining his parents&#8217; sanity. The tin has holes drilled for a volume knob, &#8230; <a href="http://tchips.com/altoids-guitar-headphone-amp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>This is my build of a common project, a headphone amp in an Altoids tin.  I made this for my cousin&#8217;s birthday, so he can practice while maintaining his parents&#8217; sanity.</p>
<div class="wp-caption aligncenter" style="width: 394px"><img class=" " title="Altoids Amp" src="http://tchips.com/images/alt_amp/outside.jpg" alt="" width="384" height="288" /><p class="wp-caption-text">actual size!</p></div>
<div class="wp-caption aligncenter" style="width: 330px"><img class="alignnone" title="before" src="http://tchips.com/images/alt_amp/before.jpg" alt="" width="320" height="240" /><img class="alignnone" title="After" src="http://tchips.com/images/alt_amp/after.jpg" alt="" width="320" height="240" /><p class="wp-caption-text">Before/After</p></div>
<p><span id="more-38"></span></p>
<p>The tin has holes drilled for a volume knob, on/off switch, LED, headphone jack, and 1/4&#8243; guitar jack.</p>
<p>The amp is powered by a 9V battery via a LM1086 5V regulator, and is based on a LM386 circuit found <a href="http://gilmore2.chem.northwestern.edu/projects/guitar_prj.htm" target="_blank">here</a>.</p>
<p>An unbelievably bright blue LED turns on with the amp, so it doubles as a small flashlight or blinding device.</p>
<div class="wp-caption aligncenter" style="width: 649px"><img title="Inside the tin" src="http://tchips.com/images/alt_amp/inside.jpg" alt="" width="639" height="640" /><p class="wp-caption-text">Inside the tin</p></div>
<div class="wp-caption aligncenter" style="width: 801px"><img title="Schematic" src="http://tchips.com/images/alt_amp/AltoidSch.png" alt="" width="791" height="435" /><p class="wp-caption-text">Amplifier schematic</p></div>
<div class="wp-caption aligncenter" style="width: 480px"><img class=" " title="layout" src="http://tchips.com/images/alt_amp/AltoidBrd.png" alt="" width="470" height="494" /><p class="wp-caption-text">An approximate layout of the amplifier circuit</p></div>
]]></content:encoded>
			<wfw:commentRss>http://tchips.com/altoids-guitar-headphone-amp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
