<?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>gaussmarkov: diy fx &#187; Parts</title>
	<atom:link href="http://gaussmarkov.net/wordpress/category/parts/feed/" rel="self" type="application/rss+xml" />
	<link>http://gaussmarkov.net/wordpress</link>
	<description>guitar stompboxes and electronics</description>
	<lastBuildDate>Sat, 05 Jun 2010 15:42:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>1/4&#8243; Phone Jacks and Plugs</title>
		<link>http://gaussmarkov.net/wordpress/parts/connectors/14-phone-jacks-and-plugs/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/connectors/14-phone-jacks-and-plugs/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 02:59:49 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Connectors]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/parts/connectors/14-phone-jacks-and-plugs/</guid>
		<description><![CDATA[Custom gaussmarkov mojo cables kick off this post about 1/4&#8243; phone jacks commonly used in stompboxes.   This tutorial supplements a recent post on wiring up a stompbox with off-board components.
 
Plugs
Here are two artifically coloured 1/4&#8243; phone plugs, mono above and stereo below. The green part is called the sleeve and the red [...]]]></description>
			<content:encoded><![CDATA[<p align="left">Custom gaussmarkov mojo cables kick off this post about 1/4&#8243; phone jacks commonly used in stompboxes. <img src='http://gaussmarkov.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=':wink:' class='wp-smiley' />  This tutorial supplements <a href="http://gaussmarkov.net/wordpress/thoughts/wiring-up-a-1590b/" title="Wiring Up a 1590B">a recent post on wiring up a stompbox</a> with off-board components.</p>
<p align="center"><img src="http://gaussmarkov.net/images/plugs1.bmp" title="Mono and Stereo Phone Plugs" alt="Mono and Stereo Phone Plugs" height="262" width="512" /> <span id="more-119"></span></p>
<h2>Plugs</h2>
<p align="left">Here are two artifically coloured 1/4&#8243; phone <em>plugs</em>, <em>mono</em> above and <em>stereo</em> below. The green part is called the <em>sleeve</em> and the red part is called the <em>tip</em>. The stereo plug has an additional part (silver in this figure) called the <em>ring</em>. The tip, ring, and sleeve are all insulated from each other and can be used for different purposes. Stereo plugs are sometimes labeled TRS, the initials of <strong>T</strong>ip, <strong>R</strong>ing, and <strong>S</strong>leeve.</p>
<p>Guitar cables generally have mono plugs where the tip carries the audio signal and the sleeve connects to ground.  Stereo plugs appear on headphone cables. If you put a mono plug into a stereo headphone jack, the silver part is replaced by the grounded sleeve and one channel is grounded and, hence, silent. Because the <strong>R</strong>ing usually carries the <strong>R</strong>ight channel, the right channel is typically silenced.</p>
<p style="text-align: center"><img src="http://gaussmarkov.net/images/jacks.bmp" title="Mono, Stereo, and NC Jacks" alt="Mono, Stereo, and NC Jacks" height="384" width="512" /></p>
<h2>Jacks</h2>
<p align="left">These colourful images represent three <em>panel mount</em> Switchcraft jacks:</p>
<ul>
<li>mono (Switchcraft no. 11 on the left),</li>
<li>stereo (Switchcraft no. 12B in the middle), and</li>
<li>mono with  NC  (or <em>normally closed</em>) switch (Switchcraft 12A on the right).</li>
</ul>
<p>Following the colour scheme above, I have made the sleeve connection green and the tip connection red.</p>
<p align="left">The role of the silver part in this figure depends on the jack. For the (middle) stereo jack, the ring connection is silver. For the (right-hand) mono with NC switch, the <em>shunt </em>for the switch is silver.</p>
<p align="left">Each part of the jack has a solder lug where wires are usually connected. The tip lug is not always located in the same place. Other manufacturers than Switchcraft may use a completely different configuration of the solder lugs for each of these jacks. You can use the contintuity test of your DMM to figure out which lug goes with each plug connector.  Alternatively, you can figure this out visually.</p>
<p align="center"><img src="http://gaussmarkov.net/images/jacks2.bmp" title="Jack Layers" alt="Jack Layers" height="384" width="512" /></p>
<p align="left">These jacks are constructed in layers, with a single piece of metal comprising the lugs and the plug connectors. I have never taken one apart, but there must be some sort of insulation that separates these metal layers from the barrel that contacts the sleeve.  So you can just look from the side and see which lugs and connectors are paired.</p>
<p align="center"><img src="http://gaussmarkov.net/images/phonejacks_schem.png" title="Jack Schematic Symbols" alt="Jack Schematic Symbols" /></p>
<p align="left">Schematic symbols for these three jacks often look like these.  Layout symbols are similar.</p>
<p align="center"><img src="http://gaussmarkov.net/images/plugs2.bmp" title="Mono, Stereo, and NC Jacks" alt="Mono, Stereo, and NC Jacks" height="384" width="512" /></p>
<h2>Connections</h2>
<p align="left">Often mono plugs are mated to mono jacks and stereo plugs are mated to stereo jacks as shown above. Notice the position of the tip connection. The &#8220;click&#8221; that you feel when you plug into your guitar, stompbox, or amp is the (red) metal tab that contacts the tip snapping into the groove around the tip.  This holds the plug firmly in place until you pull it out. After repeated use, jacks must be replaced when metal fatigue occurs and the jack no longer grips the tip tightly.</p>
<p align="left">Also, compare the mono and stereo arrangements and you will see how a separate connection is made by the ring of the stereo plug  touching only the silver metal tab of the stereo jack. Below we will discuss a case where such a separate connection is not desired.</p>
<p align="left">When inserting a 1/4&#8243; phone plug into these jacks, the tip first contacts the grounded socket before reaching the tip connection at the end of its travel. The sleeve connection comes later. This initial contact between tip and ground without a grounded sleeve causes the pops and hum one hears as a cable connected to an on-line amp is plugged into a guitar.</p>
<p align="center"><img src="http://gaussmarkov.net/images/plugs3.bmp" title="Mono, Stereo, and NC Jacks" alt="Mono, Stereo, and NC Jacks" height="384" width="512" /></p>
<p align="left">The figure above shows how the mono jack with NC switch has a tip connection that is closed without a plug and open when a plug is inserted. This is useful in stompboxes like <a href="http://gaussmarkov.net/wordpress/circuits/b-blender/" title="Sean MacLennan's B Blender" target="_blank">Sean MacLennan&#8217;s B Blender</a>. His circuit provides an &#8220;effects loop&#8221; that is blended with the input signal. By using mono jacks with NC switches for the effects loop, a default connection is possible through the shunt lugs when nothing is plugged into the loop jacks.</p>
<p align="center"><img src="http://gaussmarkov.net/images/plugs4.bmp" title="Mono, Stereo, and NC Jacks" alt="Mono, Stereo, and NC Jacks" height="384" width="512" /></p>
<p align="left">This figure illustrates how a stereo jack is used as the input jack for a stompbox to switch the ground connection of a battery. The plug is, of course, a mono plug.  The ring part of the jack touches the sleeve of the mono plug. If the sleeve part of the jack is grounded as usual, then the mono plug grounds the ring connection. Without a plug, the ring connection is floating.</p>
<p align="left">So the battery&#8217;s negative terminal is wired to the ring solder lug of the stereo jack. When there is a mono plug in the jack, the negative battery terminal is grounded and electrons flow. Without the plug, the ground connection is broken. In this way, the battery is disconnected whenever the stompbox is not in use.</p>
<h2>Other Jacks</h2>
<p align="left">There are more elaborate jacks than these three. There are jacks with more rings, with more NC switches, and also with NO (<em>normally open</em>) switches. For examples, see the Switchcraft link listed below. Although these exotic jacks do not usually find their way into stompboxes, you will certainly encounter them in guitar amplifiers.</p>
<p align="left">The illustrations above picture &#8220;open frame&#8221; metal jacks.  There are also panel mount jacks that enclose the plug connections inside a plastic box. For example, see <a href="http://www.switchcraft.com/products/jack-90.html">these Switchcraft jacks</a>.  Such jacks are often used to insulate the sleeve connection from the enclosure. This can also be accomplished with open frame metal jacks using nylon washers.</p>
<p align="left">PCB mount jacks offer another possibility.  These are also enclosed and quite compact.  For an example of their application, see the design described in <a href="http://gaussmarkov.net/wordpress/parts/enclosures/a-nice-design-for-1590b-enclosures/" title="A Nice Design for 1590B Enclosures">A Nice Design for 1590B Enclosures</a>.</p>
<h2>References and Additional Resources</h2>
<ol>
<li><a href="http://www.neutrik.com/us/en/audio/203_411/Jacks_group.aspx" title="Neutrik Phone Jacks" target="_blank">Neutrik Jacks</a></li>
<li><a href="http://www.switchcraft.com/products/jack-85.html" title="Switchcraft Phone Jacks" target="_blank">Switchcraft Phone Jacks</a></li>
<li><a href="http://en.wikipedia.org/wiki/TRS_connector" title="Wikipedia:  TRS Connector" target="_blank">Wikipedia: TRS Connector</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/connectors/14-phone-jacks-and-plugs/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Wiring Up a 1590B</title>
		<link>http://gaussmarkov.net/wordpress/thoughts/wiring-up-a-1590b/</link>
		<comments>http://gaussmarkov.net/wordpress/thoughts/wiring-up-a-1590b/#comments</comments>
		<pubDate>Thu, 29 May 2008 20:50:19 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Connectors]]></category>
		<category><![CDATA[Enclosures]]></category>
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/thoughts/wiring-up-a-1590b/</guid>
		<description><![CDATA[
Wiring up the off-board components, particularly a 3PDT switch, can be confusing.  There are many good explanations of how to do it (see for example geofex.com, tonepad.com, and generalguitargadgets.com)  and this one adds to the pile by breaking down the logic of one of the more elegant layouts with a series of detailed [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_COMPLETE.bmp" title="1590B Wiring Picture" alt="1590B Wiring Picture" width="512" height="384" /></p>
<p align="left">Wiring up the off-board components, particularly a 3PDT switch, can be confusing.  There are many good explanations of how to do it (see for example <a href="http://geofex.com" title="R.G. Keen's GEOFEX.com" target="_blank">geofex.com</a>, <a href="http://tonepad.com" title="Francisco Peña's tonepad.com" target="_blank">tonepad.com</a>, and <a href="http://generalguitargadgets.com" title="J.D. Sleep's GeneralGuitarGadgets.com" target="_blank">generalguitargadgets.com</a>)  and this one adds to the pile by breaking down the logic of one of the more elegant layouts with a series of detailed figures.  I walk through the case where the audio jacks are not insulated from a metal enclosure, there is an LED to show when the circuit is on, and when the circuit is off there is simple by-passing with the circuit input grounded.</p>
<p align="left"><span id="more-116"></span>It seems simplest to start with the wiring for so-called true by-pass, a straight connection from the input jack to the output jack. The input jack is on the left and the output jack is on the right. They will be reversed to the usual placement when the stompbox is closed up and turned over.</p>
<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_TRUEBYPASS.bmp" title="True By-Pass Wiring with a 3PDT Switch" alt="True By-Pass Wiring with a 3PDT Switch" width="512" height="384" /></p>
<p align="left">The input jack pictured here is a stereo Switchcraft jack called the 12B. The output jack is  a mono Switchcraft called the 11. You can read a post about these jacks in <a href="http://gaussmarkov.net/wordpress/parts/connectors/14-phone-jacks-and-plugs/" title="1/4">1/4&#8243; Phone Jacks and Plugs</a>. The switch is a 3PDT Taiwan Blue. The picture shows</p>
<ol>
<li>a white wire from the tip lug of the stereo jack (on the right, for input) to the switch;</li>
<li>in one switch position, this will connect to the white wire that goes across the bottom of the face of the switch;</li>
<li> which will then connect to the white wire that runs from the switch to the tip lug of the mono jack (on the left, for output).</li>
</ol>
<p>So we have a simple connection from one tip lug to the other: <em>true by-pass.</em></p>
<p>In the other switch position, we want to connect the input lug to the input of the circuit and the output lug to the output of the circuit. These are added in the following image:</p>
<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_WET.bmp" title="Basic Circuit Switching" alt="Basic Circuit Switching" width="512" height="384" /></p>
<p align="left">The blue wire should be connected to the input pad of the circuit board.  The yellow wire  should be connected to the output pad of the circuit board, or to the middle lug of a level pot if one completes the circuit.  I am leaving the board out of these pictures for simplicity.  Any unconnected wires in this tutorial are supposed to connect somewhere on a circuit board.</p>
<p align="left">As it stands, we do not need the 3PDT switch because we are only using 2 poles, one for input switching and one for output switching.  The third (middle) pole can do the switching for an LED that lights up when the circuit is engaged (or not by-passed). For that we will also need a power supply, which we will get from a DC voltage supply.</p>
<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_LED.bmp" title="Adding an LED and DC supply" alt="Adding an LED and DC supply" width="512" height="384" /></p>
<p align="left">This image shows the LED wiring from another vantage point, with the wires for the guitar signal removed for clarity. The LED switching opens and closes the ground connection for the LED circuit. The ground for the circuit is the sleeve lug of the output jack.</p>
<ul>
<li>The DC jack has a direct wire to that lug: the green wire that runs all the way across the middle of the picture.</li>
<li>The LED also connects to that grounded lug through a resistor (2.2K for limiting current) and two green wires, one that goes from the LED to the switch and another that goes from the switch to the lug. Note that these two wires are connected when the switch is in the &#8220;not by-passed&#8221; position.</li>
</ul>
<p>Also note that in this particular setup, the sleeve lugs of both jacks are connected through the aluminum enclosure that holds them. The entire stompbox is grounded through the output cable. So the input sleeve lug is grounded by its connection to the output sleeve lug through the enclosure.</p>
<p>In setups with insulated jacks, one must make these connections with wiring.  You should still ground the enclosure in those cases because this improves the ability of the enclosure to shield the circuit from outside radio frequency (RF) signals.</p>
<p>Here is a close-up view of the DC jack connections:</p>
<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_DCJACK.bmp" title="DC Jack Wiring" alt="DC Jack Wiring" /></p>
<p align="left">The top lug is the positive power supply connection and the angled lower lug is the ground connection. We will use the third middle lug later when we hook up a 9V battery as an alternative power supply.</p>
<p align="left">The red wire is the positive power supply.  This colour is consistent with the leads found on most 9V battery snaps: red is positive and black is negative (or ground).  In these pictures, I am using green for ground because it shows up better.</p>
<p align="left">I prefer to use the DC jacks that are fastened with a nut on the outside of the enclosure and that is what is pictured in these figures.  DC jacks also come configured with the nut on the inside of the enclosure.   I find this inconvenient because it requires me to install the jack in the enclosure before I solder the wires to it.  As a result, if I want to remove the circuit from the enclosure then I must unsolder these wires. The input and output jacks, the 3PDT switch, and any pots all have their nuts on the outside.  If the DC jack does also, then one can remove the nuts and the whole circuit lifts out of the enclosure completely connected.</p>
<p align="left">Here is a close-up view of the output sleeve lug for ground connections:</p>
<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_GND.bmp" title="Wires Connecting to the Grounded Sleeve Lug" alt="Wires Connecting to the Grounded Sleeve Lug" width="512" height="384" /></p>
<p align="left">At this point, two wires are supposed to soldered to this lug. One wire is coming from the DC jack (not shown) above. The other wire is &#8220;flying in&#8221; from the switch.</p>
<p align="left">Here is an image of the switch wiring with all of the wires in place: input, output, and ground connections:</p>
<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_GNDIN.bmp" title="Power Supply Connections for the Board Added" alt="Power Supply Connections for the Board Added" width="512" height="384" /></p>
<p align="left">Note that there is an additional green wire. This is the short wire that connects the first (input) pole of the switch to the middle (ground) pole of the switch.</p>
<ul>
<li>When the switch is in the by-pass position, this short green wire connects the input of the PCB to ground.</li>
<li>When the switch is in the engaged position, this short green wire does not connect to anything.</li>
</ul>
<p>This additional wire feeds the stompbox circuit a quiet input signal when the circuit is by-passed.  That is the trickiest part of the switch wiring, making a nice use of that otherwise unused lug on the switch.</p>
<p align="left">Now we are ready for the circuit board.  Besides the input and output connections, the board needs the positive and ground connections which come from the same places as for the LED circuit: the positive lug of the DC jack and the sleeve lug of the mono output jack.</p>
<p align="center"><img src="http://gaussmarkov.net/images/1590B_SETUP_BRD.bmp" title="Wiring Ready for the PCB" alt="Wiring Ready for the PCB" width="512" height="384" /></p>
<p>Wires for those connections appear in the figure above.  Generally, it is good to run your positive supply lines next to ground lines.  This is true of PCB traces as well.  So I am showing the positive board supply wire running next to the ground wire for the DC jack.</p>
<p>I am not quite finished.  I still need to add the wiring for the battery.  It will take a while to make a figure for that, but in the mean time it is easy to describe. The red battery snap wire connnects to the remaining free lug on the DC jack. The black battery snap wire connects to the ring lug of the (stereo) input jack. That&#8217;s the obvious one facing up to the right of the tip connector. This battery snap hookup accomplishes two things:</p>
<ol>
<li>The battery negative terminal will be connected to ground only when there is a mono plug inserted into the input jack. In that event, the ring connector is in contact with the sleeve of the mono plug and a ground connection is made through the ground lug of the input jack.</li>
<li>The battery positive terminal will be disconnected to the LED and the board when there is DC plug inserted into the DC jack.</li>
</ol>
<p>Because of these properties, the battery will supply power when there is no alternative DC power supply and there is an input for the stompbox. Otherwise, the battery is preserved.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/thoughts/wiring-up-a-1590b/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Creating a PCB Image using Export</title>
		<link>http://gaussmarkov.net/wordpress/tools/software/eagle/creating-a-pcb-image-using-export/</link>
		<comments>http://gaussmarkov.net/wordpress/tools/software/eagle/creating-a-pcb-image-using-export/#comments</comments>
		<pubDate>Fri, 02 May 2008 04:53:15 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Circuit Boards]]></category>
		<category><![CDATA[Eagle CAD]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/tools/software/eagle/creating-a-pcb-image-using-export/</guid>
		<description><![CDATA[
If you want to etch a PCB with a layout in Eagle then you will need to create an image like this one to transfer your design. This brief tutorial explains how to set things up so that you can use the Eagle export  command.
Let&#8217;s say you are starting with this layout.  This [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><img src="http://gaussmarkov.net/images/eagle_export_image_5.png" title="Eagle PCB Image" alt="Eagle PCB Image" height="292" width="467" /></p>
<p>If you want to etch a PCB with a layout in Eagle then you will need to create an image like this one to transfer your design. This brief tutorial explains how to set things up so that you can use the Eagle <em>export  </em>command.<span id="more-115"></span></p>
<p align="left">Let&#8217;s say you are starting with this layout.  This is Joe Davisson&#8217;s <a href="http://www.diystompboxes.com/analogalchemy/sch/antiquity.html" title="Antiquity Fuzz">Antiquity Fuzz</a> from his Analog Alchemy site.</p>
<p align="center"><img src="http://gaussmarkov.net/images/eagle_export_image_1.png" title="Eagle Board Layout" alt="Eagle Board Layout" /></p>
<p align="left">First, change the background to white by entering the command &#8220;set palette white;&#8221; and then the command &#8220;window;&#8221; (or press function key F2 to refresh to the screen and see the change.  I get this:</p>
<p align="center"><img src="http://gaussmarkov.net/images/eagle_export_image_2.png" title="Eagle's White Palette" alt="Eagle's White Palette" height="325" width="528" /></p>
<p align="left">Next, display only the traces and pads by entering the command &#8220;display none bottom pad via;&#8221; to get something like this:</p>
<p align="center"> <img src="http://gaussmarkov.net/images/eagle_export_image_3.png" title="Display Only Traces and Pads" alt="Display Only Traces and Pads" height="324" width="528" /></p>
<p align="left">If you have any ground pour, remember to run the &#8220;ratsnest;&#8221; command.  For this layout, I ran the GND polygon all the way around the board so that I get</p>
<p align="center"><img src="http://gaussmarkov.net/images/eagle_export_image_4.png" title="Fill in any Ground Pour" alt="Fill in any Ground Pour" height="327" width="528" /></p>
<p align="left">Finally, enter &#8220;export image pcb.png monochrome 600&#8243; and you will create a .png format graphics file at 600DPI that looks like this</p>
<p align="center"><img src="http://gaussmarkov.net/images/eagle_export_image_5.png" title="PCB Transfer Image" alt="PCB Transfer Image" height="292" width="467" /></p>
<p align="left">The file will have the name <em>pcb.png</em> and it will appear in the same subdirectory as your board file. You can print this file with MS Paint or insert it into MS Word and it will print to scale.  This is true no matter what resolution you choose for your file.  For example, 300DPI works well for PnP Blue transfers to copper clad boards.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/tools/software/eagle/creating-a-pcb-image-using-export/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Slide Switch Tutorial</title>
		<link>http://gaussmarkov.net/wordpress/parts/connectors/slide-switch-tutorial-2/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/connectors/slide-switch-tutorial-2/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 23:54:24 +0000</pubDate>
		<dc:creator>stobiepole</dc:creator>
				<category><![CDATA[Connectors]]></category>
		<category><![CDATA[Enclosures]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/uncategorized/slide-switch-tutorial-2/</guid>
		<description><![CDATA[When building stomp boxes, slide switches have certain advantages over toggle switches. They are less expensive and more durable than toggle switches, which can easily get broken off by clumsy feet or by mishandling. But they can be trickier to fit, requiring a rectangular cavity to function correctly. Here&#8217;s a way to fit a slide [...]]]></description>
			<content:encoded><![CDATA[<p>When building stomp boxes, slide switches have certain advantages over toggle switches. They are less expensive and more durable than toggle switches, which can easily get broken off by clumsy feet or by mishandling. But they can be trickier to fit, requiring a rectangular cavity to function correctly. Here&#8217;s a way to fit a slide switch, using only a couple of simple tools.<span id="more-114"></span></p>
<p align="center">[[Show as slideshow]]
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/connectors/slide-switch-tutorial-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Op-Amps 4: Divided Negative Feedback</title>
		<link>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-4-divided-negative-feedback/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-4-divided-negative-feedback/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 19:58:13 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Op-Amps]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-4-divided-negative-feedback/</guid>
		<description><![CDATA[Simple negative feedback, connecting the output to the inverting input, makes an op-amp into a unity gain amplifier. In that setup, all of the output goes to the inverting input. If instead the amount of feedback is reduced, through a voltage divider, then the gain of the op-amp circuit becomes greater than one. This may [...]]]></description>
			<content:encoded><![CDATA[<p>Simple negative feedback, connecting the output to the inverting input, makes an op-amp into a unity gain amplifier. In that setup, all of the output goes to the inverting input. If instead the amount of feedback is reduced, through a voltage divider, then the gain of the op-amp circuit becomes greater than one. This may be the most common way op-amps are used for amplification in stompbox circuits. In addition, by adding some capacitors to the voltage divider, the gain also gets some tonal character that is the foundation of dozens of famous distortion and overdrive pedals (think Boss, Fulltone, Ibanez, Marshall, Proco, Voodoo Labs, &#8230;).<span id="more-104"></span></p>
<p>Because it keeps the op-amp circuit simpler, let&#8217;s work with a bipolar supply. <a href="http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-3-between-the-rails/#singlesupply" title="Single-Supply and Virtual Ground">Single-supply versions</a> require only straight-forward additions.</p>
<p>We are going to replace the negative feedback loop from the previous tutorial with a resistive <a href="http://gaussmarkov.net/wordpress/parts/resistors/resistors-in-series/#voltagedivider" title="Resistors in Series: The Voltage Divider">voltage divider</a>.  This arrangement is called <em>divided negative feedback</em>. Here is the basic circuit:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/divided%20negative%20feedback%20-%20bipolar%20-%20schem.png" title="Divided Negative Feedback schem" alt="Divided Negative Feedback schem" height="307" width="497" /></p>
<p align="left">Resistors  R1 and R2 make up the voltage divider. They have equal resistances, both 10K, so that the voltage at their junction will be half the voltage across R1 and R2 in series to ground. That means that the inverting input will see the output signal with half of its amplitude.  Starting with our usual source with amplitude 1V and frequency 800Hz, here is what we get:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/divided%20negative%20feedback%20-%20bipolar%20-%20plot.png" title="Divided Negative Feedback plot" alt="Divided Negative Feedback plot" height="307" width="497" /></p>
<p>The result is that the output signal is the input signal with twice its amplitude. Therefore, by reducing the amount of negative feedback (through the voltage divider), the op-amp amplifies the input signal by a factor greater than one (or <em>unity</em>).</p>
<p>In <a href="http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-2-hitting-the-rails/" title="Op-Amps 2: Hitting the Rails">Op-Amps 2: Hitting the Rails</a>, I describe how an op-amp with no feedback produces a square output signal because the output is on one supply rail or the other. In <a href="http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-3-between-the-rails/" title="Op-Amps 3: Between the Rails">Op-Amps 3: Between the Rails</a>, I describe how feeding the entire output signal back to the inverting input reduced the effective gain of the ciruit to unity. Divided negative feedback is between these two cases. Or said more carefully, divided negative feedback has both of these as special cases. If R1 has infinite resistance, then the signal will hit the rails. And if R1 has no resistance, then signal is buffered.</p>
<p>If R1 has enough resistance, this circuit will produce some output <em>clipping</em> because part of the output signal hits the supply rails. For example, if we increase R1 in the circuit above from 10K up to 100K then the output looks like this:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/divided%20negative%20feedback%20-%20bipolar%20-%20plot2.png" title="Plot of Output Clipping" alt="Plot of Output Clipping" height="307" width="497" /></p>
<p align="left">The peaks of the output sine wave are clipped, or trimmed, by the limits of the supply voltage. This clipping is heard as distortion and it is one of the sources of distortion in the stompboxes like <a href="http://gaussmarkov.net/wordpress/circuits/overdrive-250/" title="DOD Overdrive 250 Project" target="_blank">the DOD Overdrive 250</a>.</p>
<h2>Analysis</h2>
<p align="left">Before talking more about actual stompboxes, here is an analytical description of how this circuit works. If the op-amp&#8217;s gain is 200,000 then for small voltage levels so that output is not hitting the rails,</p>
<table class="eqn">
<tr>
<td><em>V</em><sub>out</sub> = 200,000 × (<em>V</em><sub>in+</sub> − <em>V</em><sub>in−</sub>)</td>
</tr>
</table>
<p align="left">where  <em>V</em><sub>out</sub> is the output voltage, <em>V</em><sub>in+</sub>  is the non-inverting input voltage, and <em>V</em><sub>in−</sub> is the inverting input voltage. The voltage divider in the feedback loop makes</p>
<table class="eqn">
<tr>
<td><em>V</em><sub>in−</sub> =</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>R</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>R</em><sub>1</sub> + <em>R</em><sub>2</sub></td>
</tr>
</table>
</td>
<td><em>V</em><sub>out</sub></td>
</tr>
</table>
<p align="left">where <em>R<sub>1</sub></em> and <em>R<sub>2</sub></em> are the values of resistors R1 and R2, respectively. Putting these two equations together gives a relationship between the source signal and the output signal:</p>
<table class="eqn">
<tr>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>V</em><sub>out</sub></td>
</tr>
<tr>
<td class="denominator">200,000</td>
</tr>
</table>
</td>
<td>= <em>V</em><sub>in+</sub> −</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>R</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>R</em><sub>1</sub> + <em>R</em><sub>2</sub></td>
</tr>
</table>
</td>
<td><em>V</em><sub>out</sub></td>
</tr>
</table>
<p align="left">In typical applications, 1/200,000 is negligible compared to <em>R</em><sub>2</sub>/(<em>R</em><sub>1</sub> + <em>R</em><sub>2</sub>). This means that we can treat the left-hand side as approximately zero, giving the approximate solution</p>
<table class="eqn">
<tr>
<td><em>V</em><sub>out</sub> ≅</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>R</em><sub>1</sub> + <em>R</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>R</em><sub>2</sub></td>
</tr>
</table>
</td>
<td><em>V</em><sub>in+</sub> = (1 + <em>R</em><sub>1</sub>/<em>R</em><sub>2</sub>) <em>V</em><sub>in+</sub></td>
</tr>
</table>
<p>so that <em>V</em><sub>out</sub> is a multiple bigger than one of <em>V</em><sub>in+</sub>. The larger the ratio <em>R</em><sub>1</sub>/<em>R</em><sub>2</sub> is the greater the gain is.</p>
<p>We can place a pot, wired as a variable resistor, in place of either  R1  or R2 to make the gain variable. Note that decreasing  R2 increases the gain so that if you want gain to increase for a clockwise turn you should have resistance decrease in that direction. R1 would be wired in the opposite way. Also, because the effect of R2 is nonlinear you might use a reverse log pot to compensate.</p>
<p>When R2 is made variable, it is common practice to add a fixed <em>stop resistor</em> in series with the pot to prevent the total R2 resistance from reaching zero ohms. Why this is a good idea is left as an exercise for the reader. <img src='http://gaussmarkov.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h2>Adding Caps to Shape Tone</h2>
<p>Often, in stompbox circuits that use divided negative feedback, a capacitor appears in parallel with R1 and another capacitor appears in series with R2. These capacitors are shaping the tone of this amplifier circuit. Except for single instead of split supply, here is the circuit for <a href="http://diystompboxes.com/pedals/schems/shakaboost.jpg" title="The Shaka Boost by Aron Nelson" target="_blank">Shaka Boost</a> by Aron Nelson (owner and founder of <a href="http://diystompboxes.com" title="diystompboxes.com" target="_blank">diystompboxes.com</a>):</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/divided%20negative%20feedback%20-%20bipolar%20-%20tone%20caps%20-%20schem.png" title="Divided Negative Feedback with Tone Caps" alt="Divided Negative Feedback with Tone Caps" height="314" width="497" /></p>
<p align="left">This schematic is drawn the way you will usually see this circuit. It does not emphasize that R1 and C1 are both in the voltage divider in parallel, though that is clear once it is pointed out. Also, note that while C2 usually appears at the junction of the voltage divider, the order of R2 and C2 could be reversed. Finally, the presence of C2 allows us to replace the ground connection at one lead of R2 with either V+ or V−. C2 will block any DC differences between the feedback loop and the voltage to which R2 connects. What is critical is that the voltage be constant. Capacitors respond only to the rate of change of voltage and that must be zero.</p>
<p>Consider the effect of C1, placed in parallel with R1. Capacitors attenuate AC signals more as frequency falls. C1 has the effect of making the R1 half of the voltage divider have more resistance for low frequencies. According to the analysis above, such resistance means more amplification. Therefore, C1 has the effect of boosting lows relative to highs.</p>
<p>C2, placed in series with R2, increases the resistance in the R2 half of the voltage divider as frequency falls and has the opposite effect of C1. With C1 removed, C2 emphasizes low frequencies at the inverting input and, therefore, causes the op-amp to attenuate low frequencies relative to high frequencies.</p>
<p>Fortunately, the effects of C1 and C2 do not cancel each other out.  Their nonlinearity causes the combined effect to be a mid-frequency hump.  Extreme lows and highs are both attenuated relative to the frequencies in between. Here is a plot of each effect alone, showing the amplitude of the output for each frequency.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/divided%20negative%20feedback%20-%20bipolar%20-%20tone%20caps%20-%20plot1.png" title="Plot of Amplitude versus Frequency" alt="Plot of Amplitude versus Frequency" height="314" width="496" /></p>
<p align="left">The green line plots amplitude when no C1 capacitor is present and the blue one when no C2 is present. Around a frequency of 1KHz, both amplitudes reach their peak at 11V. This is the gain we would expect from the circuit without capacitors. Using the formula for gain given above,</p>
<table class="eqn">
<tr>
<td>gain ≅</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>R</em><sub>1</sub> + <em>R</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>R</em><sub>2</sub></td>
</tr>
</table>
</td>
<td>=</td>
<td>
<table class="frac">
<tr>
<td class="numerator">10K + 1K</td>
</tr>
<tr>
<td class="denominator">1K</td>
</tr>
</table>
</td>
<td>= 11</td>
</tr>
</table>
<p align="left">So we see that around 1KHz, neither capacitor is having much effect. But at low frequencies C2 attenuates and at high frequencies C1 attenuates. With both C1 and C2 present, we get the combined effect shown in red below.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/divided%20negative%20feedback%20-%20bipolar%20-%20tone%20caps%20-%20plot2.png" title="Plot of Amplitude versus Frequency" alt="Plot of Amplitude versus Frequency" height="314" width="496" /></p>
<p align="left">This plot shows that at the extremes the combined effect equals the attenuation of one capacitor or the other and, of course, in the middle they are all the same. This combined effect is often called a <em>mid-frequency hump</em>. The range of frequencies near the maximum gain is called the <em>passband.</em></p>
<p>In <a href="http://gaussmarkov.net/wordpress/tools/software/ltspice/ltspice-analysis-and-the-dod-overdrive-250/">LTSpice Analysis and the DOD Overdrive 250</a> you can see similar results for that stompbox. There, you will also see that changing gain is linked to changing a corner frequency.</p>
<h2>More Analysis</h2>
<p>It is possible to work out formulas for some of the features of this circuit. <a href="http://gaussmarkov.net/parts/opamps/dnfcapmath.pdf" title="PDF Document" target="_blank">Divided Negative Feedback and Capacitors</a> provides a detailed description. To close this tutorial, here is a summary of the results.</p>
<p>First,  the frequency response plotted above for the Shaka Booster shows several general properties:</p>
<ul>
<li>the response is symmetric in log-frequencies around one maximum and</li>
<li>at the extremes the gain approaches unity.</li>
</ul>
<p>In addition, if the corner frequencies are far enough apart, then</p>
<ul>
<li>the lower and upper corner frequencies are approximately <em>f</em><sub>2</sub> = 1/(2π<em>R</em><sub>2</sub><em>C</em><sub>2</sub>) and <em>f</em><sub>1</sub> = 1/(2π<em>R</em><sub>1</sub><em>C</em><sub>1</sub>) respectively and</li>
<li>the maximum gain equals the no-capacitor gain 1 + <em>R</em><sub>1</sub>/<em>R</em><sub>2</sub> and occurs at the frequency <em>f</em><sub>0</sub>= √(<em>f</em><sub>1</sub><em>f</em><sub>2</sub>), the square root of the product of the two corner frequencies.</li>
</ul>
<p>For low gain levels, more accurate formulas for the corner frequencies are <em>f</em><sub>2</sub>′ = <em>af</em><sub>2</sub> and <em>f</em><sub>1</sub>′ = <em>f</em><sub>1</sub><em>/a</em> where<em> a</em><sup>2</sup> = 1 − 2/<em>g</em><sup>2</sup> and <em>g = </em>1 + <em>R</em><sub>1</sub>/<em>R</em><sub>2</sub> &gt; 2. The corner frequencies are &#8220;far enough apart&#8221; if</p>
<table class="eqn">
<tr>
<td>(1 − 1/<em>g</em><sup>2</sup>)</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>f</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>f</em><sub>1</sub></td>
</tr>
</table>
</td>
<td>≤ 1%</td>
</tr>
</table>
<p>The range of frequencies between these corner frequencies is the passband.</p>
<p>Note that the dependence of the corner frequencies on the values of the resistors may also affect the decision where to place the variable resistor. Making <em>R</em><sub>2</sub> variable makes the lower corner frequency rise with gain and making <em>R</em><sub>1</sub> variable makes the upper corner frequency fall with gain.  Aron chose to make <em>R</em><sub>1</sub> variable in the Shaka Booster whereas DOD chose to make <em>R</em><sub>2</sub> variable in the Overdrive 250.</p>
<h2>Examples</h2>
<p>In Aron&#8217;s Shaka Boost,</p>
<table class="eqn">
<tr>
<td><em>C</em><sub>1</sub> = 220pF = 220 × 10<sup>-12</sup>F,</td>
<td>&nbsp;</td>
<td><em>R</em><sub>1</sub> ≤ 25KΩ = 25 × 10<sup>3</sup>Ω,</td>
</tr>
<tr>
<td><em>C</em><sub>2</sub> = 10uF = 10 × 10<sup>-6</sup>F,</td>
<td>&nbsp;</td>
<td><em>R</em><sub>2</sub> = 1KΩ = 1 × 10<sup>3</sup>Ω,</td>
</tr>
</table>
<p align="left">and if we set <em>R</em><sub>1</sub> = 10K then</p>
<table class="eqn">
<tr>
<td><em>g</em> = 1 + <em>R</em><sub>1</sub>/<em>R</em><sub>2</sub> = 11</td>
</tr>
<tr>
<td><em>f</em><sub>2</sub> = 15.9Hz,</td>
<td>&nbsp;</td>
<td><em>f</em><sub>2</sub>′ = 15.8Hz,</td>
</tr>
<tr>
<td><em>f</em><sub>1</sub> = 72.3KHz,</td>
<td>&nbsp;</td>
<td><em>f</em><sub>1</sub>′ = 72.9KHz,</td>
</tr>
<tr>
<td><em>f</em><sub>0</sub> = √(<em>f</em><sub>1</sub> <em>f</em><sub>2</sub>) = 1073Hz.</td>
</tr>
</table>
<p align="left">Notice that with <em>g</em> = 11, the differences between <em>f</em><sub>1</sub> and <em>f</em><sub>1</sub>′ and between <em>f</em><sub>2</sub> and <em>f</em><sub>2</sub>′ are ignorable. Also</p>
<table class="eqn">
<tr>
<td>(1 − 1/<em>g</em><sup>2</sup>)</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>f</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>f</em><sub>1</sub></td>
</tr>
</table>
</td>
<td>= 0.02% &lt; 1%</td>
</tr>
</table>
<p>so that the corner frequency formulas are accurate for this case.</p>
<p align="left">If we increase the gain pot to 25K, then <em>f</em><sub>2</sub> will not change and <em>f</em><sub>1</sub> = 28.9KHz. I suspect that my hearing would not notice this large difference in the upper corner frequency because it is so high in both cases.</p>
<p align="left">If we turn the gain pot down to 2K, then <em>g</em> = 3,  <em>f</em><sub>1</sub> = 362KHz and <em>f</em><sub>1</sub>′ = 410KHz. There is a big difference in these frequencies, but they are so far out of the range of human hearing that this does not matter. So theory predicts that Aron&#8217;s Shaka Boost leaves the tone of the signal effectively unchanged over its entire range of gain.</p>
<p align="left">The DOD Overdrive 250 is a different story. For this circuit, the variable resistor is in the R2 position in series with a 4.7K stop resistor:</p>
<table class="eqn">
<tr>
<td><em>C</em><sub>1</sub> = 25pF = 25 × 10<sup>-12</sup>F,</td>
<td>&nbsp;</td>
<td><em>R</em><sub>1</sub> = 1MΩ = 1 × 10<sup>6</sup>Ω,</td>
</tr>
<tr>
<td><em>C</em><sub>2</sub> = 47nF = 47 × 10<sup>-9</sup>F,</td>
<td>&nbsp;</td>
<td><em>4.7K</em> ≤ <em>R</em><sub>2</sub> ≤ 505KΩ = 505 × 10<sup>3</sup>Ω,</td>
</tr>
</table>
<p align="left">and if we set <em>R</em><sub>2</sub> = 500K then we get the minimum gain and</p>
<table class="eqn">
<tr>
<td><em>g</em> = 1 + <em>R</em><sub>1</sub>/<em>R</em><sub>2</sub> = 3</td>
</tr>
<tr>
<td><em>f</em><sub>2</sub> = 6.8Hz,</td>
<td>&nbsp;</td>
<td><em>f</em><sub>2</sub>′ = 6.0Hz,</td>
</tr>
<tr>
<td><em>f</em><sub>1</sub> = 6.4KHz,</td>
<td>&nbsp;</td>
<td><em>f</em><sub>1</sub>′ = 7.2KHz,</td>
</tr>
<tr>
<td><em>f</em><sub>0</sub> = √(<em>f</em><sub>1</sub> <em>f</em><sub>2</sub>) = 208Hz.</td>
</tr>
</table>
<p align="left">The difference between <em>f</em><sub>1</sub> and <em>f</em><sub>1</sub>′ is appreciable this time, so <em>f</em><sub>1</sub>′ is preferred. Also</p>
<table class="eqn">
<tr>
<td>(1 − 1/<em>g</em><sup>2</sup>)</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>f</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>f</em><sub>1</sub></td>
</tr>
</table>
</td>
<td>= 0.09% &lt; 1%</td>
</tr>
</table>
<p>so that the corner frequency formulas are still accurate for this case. A passband from 6Hz&#8211;7.2KHz represents an audible cut in the high frequencies.</p>
<p>Based on separate simulations, we find that the op-amp starts to clip around  <em>R</em><sub>2</sub> = 30K, or about a 2/3 rotation, so that is a sensible place to check what happens for higher gains. Beyond this point, clipping of the signal invalidates the formulas for amplitudes. Changing  <em>R</em><sub>2</sub> to 30K increases <em>g</em> to 34.3, leaves <em>f</em><sub>1</sub> unchanged, and raises the lower corner frequency to 113Hz. Because the bass E string on a guitar has a frequency of 82Hz, this will also be clearly audible.</p>
<p>These figures are slightly misleading, but they tell the correct qualitative story.  When we check</p>
<table class="eqn">
<tr>
<td>(1 − 1/<em>g</em><sup>2</sup>)</td>
<td>
<table class="frac">
<tr>
<td class="numerator"><em>f</em><sub>2</sub></td>
</tr>
<tr>
<td class="denominator"><em>f</em><sub>1</sub></td>
</tr>
</table>
</td>
<td>= 2% &gt; 1%</td>
</tr>
</table>
<p>we just violate the requirement for accuracy. This implies that both capacitors have an influence in for the passband frequencies and that the maximum gain falls short of the no-capacitor gain by 2% which is still small.  To obtain more accurate information, one can use SPICE simulations, as illustrated in <a href="http://gaussmarkov.net/wordpress/tools/software/ltspice/ltspice-analysis-and-the-dod-overdrive-250/" title="SPICE Analysis of the DOD Overdrive 250" target="_blank">LTSpice Analysis and the DOD Overdrive 250</a>.</p>
<p><a href="http://gaussmarkov.net/wordpress/tools/software/ltspice/ltspice-analysis-and-the-dod-overdrive-250/" title="SPICE Analysis of the DOD Overdrive 250" target="_blank"></a>To summarize what these calculations show, the DOD Overdrive 250 cuts highs and cuts lows more as the gain is increased.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-4-divided-negative-feedback/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Op-Amps 3: Between the Rails</title>
		<link>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-3-between-the-rails/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-3-between-the-rails/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 05:22:26 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Op-Amps]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-3-between-the-rails/</guid>
		<description><![CDATA[Op-amp output hits the rails because op-amps are powerful amplifiers with gains in excess of 200,000. With a 9V single-supply, all it takes is an input voltage difference of 9V/200,000 = 45uV to hit the positive rail.  Guitar outputs are around one thousand times that magnitude. So how do you keep the output of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://gaussmarkov.net/parts/opamps/Railroad-Tracks.jpg" title="Between the Rails" alt="Between the Rails" align="right" height="180" width="135" />Op-amp output hits the rails because op-amps are powerful amplifiers with gains in excess of 200,000. With a 9V single-supply, all it takes is an input voltage difference of 9V/200,000 = 45uV to hit the positive rail.  Guitar outputs are around one thousand times that magnitude. So how do you keep the output of an op-amp between the rails?  You use <em>feedback</em>.</p>
<p align="center"><small>Photo credit: <a href="http://commons.wikimedia.org/wiki/Image:Railroad-Tracks-Perspective.jpg" title="Photo Credit" target="_blank">Mike Malak on WikiMedia Commons</a></small></p>
<p> <span id="more-101"></span></p>
<p style="clear: both">The simplest application of feedback is  shown below, where the inverting input is connected directly to the output, instead of a constant reference voltage like ground. This is called <em>negative feedback</em> because the negative of the output feeds back into the output itself. The effect is to attenuate output.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/negative%20feedback%20-%20bipolar%20-%20schem.png" title="Negative Feedback Schematic" alt="Negative Feedback Schematic" height="306" width="496" /></p>
<p align="left">In a plot of the input and the output for this circuit, one can only see one of the two because they lie in exactly the same place. In other words, the gain of this circuit is almost exactly unity.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/negative%20feedback%20-%20bipolar%20-%20plot.png" title="Negative Feedback Plot" alt="Negative Feedback Plot" height="279" width="496" /></p>
<p align="left">As mentioned above, the gain of an op-amp is at least 200,000. For the sake of argument, suppose the gain is exactly 200,000. In the absence of supply constraints, the behaviour of the op-amp is described completely by</p>
<table class="eqn">
<tr>
<td><em>V</em><sub>out</sub> = 200,000 × (<em>V</em><sub>in+</sub> − <em>V</em><sub>in-</sub>)</td>
</tr>
</table>
<p align="left">where  <em>V</em><sub>out</sub> is the output voltage, <em>V</em><sub>in+</sub>  is the non -inverting input voltage, and <em>V</em><sub>in-</sub> is the inverting input voltage. For small voltage levels, an op-amp will permit a voltage 200,000 times the difference in the two input voltages.</p>
<p align="left">This allowed voltage may exceed the available power supply and then, as described in the previous post, the output will hit a power rail.</p>
<p align="left">When there is negative feedback,</p>
<table class="eqn">
<tr>
<td><em>V</em><sub>out</sub> = <em>V</em><sub>in-</sub></td>
</tr>
</table>
<p align="left">as well. Putting these two equations together gives a relationship between the source signal and the output signal:</p>
<table class="eqn">
<tr>
<td><em>V</em><sub>out</sub> = 200,000 × (<em>V</em><sub>in+</sub> − <em>V</em><sub>out</sub>)</td>
</tr>
</table>
<p align="left"> or</p>
<table class="eqn">
<tr>
<td><em>V</em><sub>out</sub> =</td>
<td>
<table class="frac">
<tr>
<td class="numerator">200,000</td>
</tr>
<tr>
<td class="denominator">200,001</td>
</tr>
</table>
</td>
<td><em>V</em><sub>in+</sub> ≅  <em>V</em><sub>in+</sub></td>
</tr>
</table>
<p>so that <em>V</em><sub>out</sub> is almost exactly <em>V</em><sub>in+</sub>.</p>
<p>You might well ask what good this is. We start with <em>V</em><sub>in+</sub> and we end up with <em>V</em><sub>in+</sub>. The answer lies in understanding <a href="http://gaussmarkov.net/wordpress/thoughts/input-and-output-impedance/" title="Input and Output Impedance" target="_blank">input and output impedance</a>. The inputs of an op-amp are very high impedance which essentially means that the rest of the circuit is unaffected by their presence. The output of an op-amp is very low impedance and that essentially means that its output is affected only through its inputs. Apart from this, the rest of the circuit is typically irrelevant.</p>
<p>These properties are not shared, for example, by guitar pickups. Whatever you plug your guitar cable into, even your cable itself, can change the signal received from the pickups. So the benefit of the op-amp with negative feedback is that it can take a vulnerable guitar pickup signal and transform it into something invincible. <em>That</em> should sound good. <img src='http://gaussmarkov.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h2><a title="singlesupply" name="singlesupply"></a>Single Supply and Virtual Ground</h2>
<p>A single-supply version of this unity-gain circuit places the virtual ground half-way between ground and the positive supply so that the audio signal can swing equally in either direction. Using <a href="http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-2-hitting-the-rails/#virtualground" title="Virtual Ground">the same approach as in the preceding post</a>,</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/negative%20feedback%20-%20single%20supply%20-%20schem.png" title="Negative Feedback with Single Supply" alt="Negative Feedback with Single Supply" height="314" width="499" /></p>
<p align="left">with the resulting plot</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/negative%20feedback%20-%20single%20supply%20-%20plot.png" title="Negative Feedback with Single Supply" alt="Negative Feedback with Single Supply" height="314" width="499" /></p>
<p align="left">where once again the noninverting input is hidden behind the output signal.</p>
<p align="left">Let&#8217;s look at some applications of this circuit in actual stompboxes.</p>
<h2>This is a Buffer</h2>
<p>This single-supply op-amp circuit (without the load resistor) appears four times in <a href="http://gaussmarkov.net/wordpress/circuits/b-blender/" title="The B. Blender by Sean MacLennan" target="_blank">the B. Blender circuit designed by Sean MacLennan</a>.  It provides (voltage) <a href="http://gaussmarkov.net/wordpress/wp-admin/high-input-and-low-output%20impedance" title="Wikipedia: Buffer Amplifier" target="_blank">buffers</a> that keep two channels, one for an effects loop and one for the clean signal, separate until they are mixed together at the end of the circuit, where another buffer provides a low impedance output. <em>Buffer</em> is the name for amplifiers that have unity gain and that lower the output impedance of a signal path. Buffers are also called <em>voltage followers</em> because the output voltage is a copy of the input voltage.</p>
<p>In general, the components throughout a circuit influence the signal at any point. It is tempting to think of circuits as sequential, with the signal flowing in just one direction&#8211;from input to output&#8211;but this is often incorrect.  To give a simple example, putting an additional resistor in series with a resistive voltage divider changes the voltage at the junction of the divider, whether you put the resistor before the divider or after.</p>
<p>Considered in isolation, this op-amp buffer circuit is an exception: what&#8217;s happening at the output does not affect the non-inverting input without a route for feedback. So for audio, the op-amp buffer works as a backflow valve and prevents the signal from &#8220;backing up.&#8221; Returning to the divider example, placing this buffer in series with a voltage divider does not change the voltage produced by the divider. Indeed, this is a property exploited by another stompbox application.</p>
<h2>Decoupling Virtual Ground</h2>
<p>This buffer also appears in stompbox power supply circuits. <a href="http://gaussmarkov.net/wordpress/circuits/9v-electric-mistress/" title="The 9V Electric Mistress" target="_blank">The 9V Electric Mistress</a> uses it in place of <a href="http://gaussmarkov.net/wordpress/parts/capacitors/capacitors-4-low-pass-filters/#decoupling">a decoupling capacitor</a> to hold the virtual ground in the power supply steady. See the op-amp after the pair of 200K resistors, R2 and R3, in the upper left-hand corner of <a href="http://gaussmarkov.net/layouts/mwelecmiss/mwelecmiss-schem.png" title="9V Electric Mistress schematic" target="_blank">the schem linked here</a>. And <a href="http://gaussmarkov.net/wordpress/circuits/blues-driver/" title="The Blues Driver" target="_blank">the Blues Driver</a> uses both the capacitor and the buffer. See the <em>Vref op-amp</em> version in the project pdf file with the op-amp after the R25 and R26, a pair of 10K resistors, or R4 and R5 in the schematic available at <a href="http://www.freeinfosociety.com" target="_blank">freeinfosociety.com</a>:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/boss%20-%20bd-2%20-%20power%20supply.png" title="Buffer in Blues Driver power supply" alt="Buffer in Blues Driver power supply" height="363" width="474" /></p>
<h2>The Faucet Analogy</h2>
<p>An analogy between an op-amp and a water faucet seems helpful once again.  First, the pressure created in a hose by turning a water faucet highlights the difference between the input and the output. They are synchronized but they are not the same thing. The output is a power supply controlled by the input. In addition, a relatively small input force, turning the faucet, can result in a huge output force depending on the water supply pressure. Those features coincide with the high gain, low impedance characteristics of the op amp output.</p>
<p>Second, whatever happens to the water in the hose attached to the faucet, the water pressure (output) does not feedback on the faucet (input) unless special arrangements are made.</p>
<p>This analogy does not capture the high impedance of the inputs. Indeed, a lot of water faucets are very hard to turn and make your hand tired and sore. So such faucets <em>load down</em> the source (your hand) which is quite the opposite of op-amp inputs. They are like faucets that turn with the slightest breeze.</p>
<p>But that&#8217;s the problem with many analogies; they aren&#8217;t a substitute for understanding the real thing, just an aid. If you have questions about all this, please comment.  It will help improve what&#8217;s written here. And chances are, if you have the question then lots of other people do also.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-3-between-the-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Op-Amps 2: Hitting the Rails</title>
		<link>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-2-hitting-the-rails/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-2-hitting-the-rails/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 23:46:39 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Op-Amps]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-2-hitting-the-rails/</guid>
		<description><![CDATA[A first step in understanding op-amps, and amplification generally, is to see that op-amps are like a water faucet that controls the water pressure in a garden hose. In the simplest setups, the faucet alternates between completely closed and wide open. As a result, the output of the op-amp is either the lowest or the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://gaussmarkov.net/parts/opamps/water_faucet_rev.png" title="Water Faucet" alt="Water Faucet" align="right" border="0" height="164" width="192" />A first step in understanding op-amps, and amplification generally, is to see that op-amps are like a water faucet that controls the water pressure in a garden hose. In the simplest setups, the faucet alternates between completely closed and wide open. As a result, the output of the op-amp is either the lowest or the highest available voltage, in analogy with no water pressure or maximum water pressure in the hose.<span id="more-100"></span></p>
<p style="clear: both">An example of this idea is to tie the input with a minus sign, called the <em>inverting input</em>, to ground and to feed the input with a positive sign, called the <em>non-inverting input</em>, a sine wave. In the LTSpice simulation shown here, the non-inverting input is connected to an AC source with a 1V 800Hz sine wave. The op-amp is supplied by a 9V DC source with the positive terminal connected to the positive power pin and ground connected to the negative power pin.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator.png" title="Op Amp Comparator Circuit" alt="Op Amp Comparator Circuit" height="314" width="496" /></p>
<p>Just to be sure it&#8217;s clear, this schematic is equivalent to the next one, with a connection running explicitly from the power supply to the op-amp.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator_alt.png" title="Alternative Comparator Schematic" alt="Alternative Comparator Schematic" height="314" width="496" /></p>
<p align="left">The V+ label on both the 9V power supply V2 and the op-amp positive power pin take the place of running a connection. The ground symbols do the same thing. Such labels simplify a schematic by reducing the number lines that appear.</p>
<p align="left">Here is a plot of the input <em>in+</em> and the output <em>out</em> signals for this simulation:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator_plot.png" title="Comparator Simulation Plot" alt="Comparator Simulation Plot" height="314" width="496" /></p>
<p align="left">As indicated, the green curve is the <em>in+</em> sine wave with a 1V amplitude and an 800Hz frequency. The blue plot is the signal at<em> out</em> which jumps between 0V (ground) and 9V, the two polar values of the power supply to the op-amp. Whenever the sine wave voltage is negative, or below ground, the output is 0V, and whenever the sine wave voltage is positive then the output is 9V.</p>
<p align="left">This occurs in part because an op-amp responds only to the difference in the voltages at the two inputs.  The difference is calculated by subtracting the inverting input voltage from the non-inverting input voltage. In the present case the inverting input voltage is connected to ground so that the difference in voltages simplifies to be the non-inverting input voltage alone.</p>
<p align="left">So if we reversed the input connections, hooking the sine wave to the inverting input and ground to the non-inverting input, the op-amp would be responding to the negative value of the sine wave and the square wave would be inverted: when the sine wave voltage is positive then the output voltage would be 0V and when the sine wave is negative then the output voltage would be 9V.</p>
<p align="left">The other reason for this square-wave output is that the op-amp has an extremely sensitive output &#8220;faucet.&#8221; A very small positive difference in input voltages &#8220;turns the faucet&#8221; to the maximum voltage. And the opposite is also true: a very small negative difference in input voltages &#8220;turns the faucet&#8221; to the minimum voltage.</p>
<h2><a title="splitsupply" name="splitsupply"></a>Dual Polarity Power Supply</h2>
<p align="left">In the first example the minimum is 0V but things are symmetric if we introduce a <em>dual polarity</em>  (or <em>bipolar</em> or <em>split</em>) power supply:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator-bipolar-schem.png" title="Op Amp with Bipolar Power Supply" alt="Op Amp with Bipolar Power Supply" height="314" width="496" /></p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator-bipolar-plot.png" title="Plot of Op Amp with Bipolar Power Supply" alt="Plot of Op Amp with Bipolar Power Supply" height="314" width="496" /></p>
<p align="left">When the minimum voltage available is -9V then a negative voltage difference on the inputs produces an output of -9V. So the analogy with a water faucet does not extend to this case. Turning the faucet in opposite directions does not produce opposite directions of water pressure.</p>
<p align="left">Again, switching the inputs inverts the output:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator-inverting-schem.png" title="Inverting Comparator Schematic" alt="Inverting Comparator Schematic" height="314" width="496" /></p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator-inverting-plot.png" /></p>
<h2><a title="virtualground" name="virtualground"></a>Virtual Ground</h2>
<p align="left">It is possible to create a similar relationship with the original <em>single-supply</em> circuit. One creates a <em>virtual ground</em> between actual ground and the positive voltage supply at the inputs of the op-amp.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator-single-schem.png" title="Single-Supply Schematic" alt="Single-Supply Schematic" height="314" width="496" /></p>
<p align="left"><em>Vr</em> is the virtual ground in this circuit. A <a href="http://gaussmarkov.net/wordpress/parts/resistors/resistors-in-series/#voltagedivider" title="Resistors in Series: The Voltage Divider" target="_blank">voltage divider</a> places <em>Vr</em> at half the supply voltage <em>V+</em>. A 10uF <a href="http://gaussmarkov.net/wordpress/parts/capacitors/capacitors-4-low-pass-filters/#decoupling" title="Low Pass Filters: Decoupling Capacitors" target="_blank">decoupling capacitor</a> (C2) assists in keeping <em>Vr</em> steady. The capacitor C1 and the resistor R1 pull the signal up from alternating around ground to alternating around the virtual ground.  C1 acts as a <a href="http://gaussmarkov.net/wordpress/parts/capacitors/capacitors-2-dc-and-ac/#coupling" title="DC and AC: Coupling Capacitors" target="_blank">coupling capacitor</a> and preserves any difference in DC levels between the signal source and the non-inverting input. R1 sets the DC voltage level approximately at <em>Vr</em>. Here are the results:</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/comparator-single-plot.png" title="Single-Supply Plot" alt="Single-Supply Plot" height="314" width="496" /></p>
<p align="left">The source signal (blue) is cycling around ground as before but the non-inverting input (green) is cycling around  <em>Vr</em> (red). The inverting input is connected to <em>Vr</em> instead of ground.</p>
<p align="left">As a result, the voltage difference across the inputs is the same as the signal source. Now the output signal is on the positive power rail when the green sine wave is above the red line and on the ground power rail when the green sine wave is below the red line. The red line at 4.5V is playing the same role as ground in the bipolar supply circuit above.</p>
<p align="left">This virtual ground will be useful in the next post, which discusses output that stays between the power rails.</p>
<p align="left">In all of the circuits in this post, the output is on one power rail or the other.  Such op-amp circuits are called <em>comparators</em> because the output indicates whether one input voltage is greater than the other.  That is, one voltage is <em>compared</em> to another and the output is high for one outcome and low for the other.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-2-hitting-the-rails/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Op-Amps 1: Description</title>
		<link>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-1-description/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-1-description/#comments</comments>
		<pubDate>Mon, 24 Dec 2007 04:26:31 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Op-Amps]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/uncategorized/op-amps-1-description/</guid>
		<description><![CDATA[Appearance
Op-amps (operational amplifiers) come in an integrated circuit, or IC. The one pictured on the right is in a form called DIP-8, which is short for dual in-line package with 8 pins. &#8220;Dual in-line&#8221; refers to two lines of pins, in this case 4 on each side.  Each pin has a special function and [...]]]></description>
			<content:encoded><![CDATA[<h2>Appearance</h2>
<p><img src="http://gaussmarkov.net/parts/opamps/LM741.png" title="LM741 IC" alt="LM741 IC" align="right" />Op-amps (operational amplifiers) come in an integrated circuit, or IC. The one pictured on the right is in a form called DIP-8, which is short for <em>dual in-line package with 8 pins</em>. &#8220;Dual in-line&#8221; refers to two lines of pins, in this case 4 on each side.  Each pin has a special function and they are numbered from 1 to 8.  Often, there is a circle on the top of the case to show the location of pin 1.  Also the case is usually notched at the same end with half-circle cut-out. At least one of these two markings appear, but not necessarily both.<span id="more-99"></span></p>
<p>The manufacturer, its documentation, and the name of the chip are printed on the top. In this case, the leading symbol is the circular N logo of National Semiconductor and the name of the chip is LM741CN. The <a href="http://gaussmarkov.net/wordpress/circuits/overdrive-250/" title="DOD Overdrive 250 Project" target="_blank">DOD Overdrive 250</a> and the MXR Distortion Plus are popular examples of stompboxes built around this chip.</p>
<p>The names of chips are often abbreviated to their numbers, like 741. Different manufacturers may use different prefixes and suffixes while keeping the same numbers. For example, JRC produces the NJM741D. Although generally they can be used as functional substitutes, chips with the same numbers but different names are not necessarily identical. One of the characteristics that is often flagged with the suffix is the package or case of the IC. For example, National Semiconductor also manufactures the LM741H which is the 741 in an 8-pin &#8220;metal can.&#8221;</p>
<p><img src="http://gaussmarkov.net/parts/opamps/dip8-pinout.png" title="DIP-8 Pinout Diagram" alt="DIP-8 Pinout Diagram" align="right" />The numbering of the pins is always the same. With the notch or pin 1 marking at the top, count sequentially from pin 1 down the left side and then up the right side of the DIP. In other words, count counter-clockwise (CCW).</p>
<p>Op-amps can be soldered directly to the circuit board but often op-amps are seated in sockets instead. The sockets are soldered to the board, avoiding the risks of destroying the op-amp with too much heat.  Also, one can exchange op-amps easily to make a repair or to try an experiment (like on <a href="http://gaussmarkov.net/wordpress/tools/hardware/breadboard/" title="Breadboard Link" target="_blank">a breadboard</a>). A DIP-8 machine-pin socket by Mill-Max and a DIP-8 dual-leaf socket by AMP are shown below.</p>
<p><img src="http://gaussmarkov.net/parts/opamps/dual-leaf-dip-8.jpg" title="Dual-Leaf DIP-8 socket" alt="Dual-Leaf DIP-8 socket" align="right" height="200" width="220" /><img src="http://gaussmarkov.net/parts/opamps/machine-pin-dip-8.jpg" title="Machine-pin DIP-8 socket" alt="Machine-pin DIP-8 socket" align="left" height="200" width="200" /></p>
<p style="clear: both">These sockets also have notches like the op-amps so that even without the op-amp on the board its orientation is still clear.</p>
<h2>Symbols</h2>
<p>Basic op-amps are denoted on schematics by a simple triangle that usually points to the right.</p>
<p align="center"><img src="http://gaussmarkov.net/parts/opamps/op-amp.png" title="Op amp schematic symbol" alt="Op amp schematic symbol" /></p>
<p align="left">They have two inputs on the left-hand side, denoted by positive and negative signs, and a single output at the point on the right. The inputs are often shown in the opposite order.</p>
<p align="left">Above and below are power supply connections, with the positive supply above and the negative supply below.</p>
<p align="left">These directions are associated with typical audio  schematic layouts, where the input is on the left, the output is on the right, the positive power connections go up, and negative or ground connections go down. Often, when they are implicitly clear, the power connections are not shown (as on the right).</p>
<p align="left"> <img src="http://gaussmarkov.net/parts/opamps/op-amp-layout.png" title="Op amp layout symbol" alt="Op amp layout symbol" align="right" height="230" width="230" /> On circuit board layouts, one sees the outline of the IC package. The characteristic notch appears at the end where pin 1 is located. On gaussmarkov.net layouts, the pad for pin 1 is also square while all of the other pads are round.</p>
<h2 style="clear: both">Values</h2>
<p>Op-amps do not have a single salient characteristic like resistors and capacitors do. Op-amps are designed with various special tasks in mind so that they are particularly good in specific ways.  The design goals include gain, low noise, fast response, high input impedance,  and low output impedance.</p>
<p><img src="http://gaussmarkov.net/parts/opamps/dip8-pinout-741.png" title="741 pinout" alt="741 pinout" align="right" height="178" width="129" />DIP-8 op-amp ICs  may contain one or two op-amps. The 741 contains only one op-amp.  The 4558 that is found in tubescreamers has two and is often called a <em>dual op-amp</em>. You will also run into <em>quad op-amps</em> that contain 4 op-amps in a DIP-14 package. The pin assignments (or <em>pinout</em>) for the 741 can be described by drawing the op-amp into a pin diagram<br />
so that the two inputs are connected to pins 2 and 3, the output is connected to pin 6, the positive power supply to pin 7, and the negative power supply to pin 4.  Pin 8 serves no purpose. We will discuss pins 1 and 5 in a later note.</p>
<p><img src="http://gaussmarkov.net/parts/opamps/dip8-pinout-dual.png" title="DIP-8 Dual Op Amp Pinout" alt="DIP-8 Dual Op Amp Pinout" align="right" height="170" width="129" />Dual op-amps like the 4558 generally have the same pinouts so that their ICs can be interchanged in circuits that use them with sockets. This is a popular thing to try with stompboxes like <a href="http://gaussmarkov.net/wordpress/circuits/tubescreamer/" title="Tubescreamer">the tubescreamer</a>.  Op-amp A has inputs on pins 2 and 3 and output on pin 1 on one side while op-amp B has inputs on pin 5 and 6 and output on pin 7 on the other side.  The positive and negative power pins are 8 and 4, respectively.  On a schematic these op-amps would be labeled IC1A and and IC1B and the power supply pins for one would serve both.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/op-amps/op-amps-1-description/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Using a Fab House</title>
		<link>http://gaussmarkov.net/wordpress/parts/circuit-boards/using-a-fab-house/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/circuit-boards/using-a-fab-house/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 02:12:41 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Circuit Boards]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/uncategorized/using-a-fab-house/</guid>
		<description><![CDATA[ 
One of the moderators on Aron&#8217;s diystompboxes forum, Peter Snowberg, has repeatedly suggested using a &#8220;fab house,&#8221; or a PCB fabrication company, to make PCBs. There are lots of reasons for doing this, including convenience, accuracy, and less pollution.  I have been wanting to give this a try and waiting for the right [...]]]></description>
			<content:encoded><![CDATA[<p align="center"> <img src="http://gaussmarkov.net/images/olimex%20-%20electric%20miss%2002.jpg" title="Olimex board" alt="Olimex board" height="317" width="423" /></p>
<p align="left">One of the moderators on Aron&#8217;s <a href="http://www.diystompboxes.com/smfforum/index.php" title="diystompboxes.com" target="_blank">diystompboxes forum</a>, Peter Snowberg, has repeatedly suggested using a &#8220;fab house,&#8221; or a PCB fabrication company, to make PCBs. There are lots of reasons for doing this, including convenience, accuracy, and less pollution.  I have been wanting to give this a try and waiting for the right project to do it.  And I was not sure which company to try. Finally, I took the plunge by sending <a href="http://olimex.com/pcb/index.html" title="Olimex PCB manufacture" target="_blank">olimex.com</a> a smaller version of markusw&#8217;s <a href="http://gaussmarkov.net/wordpress/circuits/9v-electric-mistress/" title="9V Electric Mistress">9V electric mistress project</a> that I have been working on.<span id="more-90"></span></p>
<p align="left">Several things came together to push me over the brink. First, markusw mentioned that he had seen an Olimex board made by another forumite and thought highly of it. Another factor was that my project fit nicely as three copies onto a single small board as manufactured by Olimex.  Because Olimex will arrange the copies (they call it <em>panelization</em>) on the board for you and cut the board up into the individual boards (they call that <em>de-panelization</em>) all for free, I could get three boards for a fairly low price. The final reason was that I could easily go with a 2-sided board for not much more money and that helped to keep my version of markusw&#8217;s project small.</p>
<p align="left">To keep things inexpensive, you have to design within the specifications of Olimex, but that is not difficult.  The gaussmarkov Eagle libraries all use a 0.7mm drill which is one of the default sizes that Olimex uses, so meeting that requirement was trivial. The only extra work that I had to do was replace the off-board components often pictured in layouts with pads for each connection.  I am not sure yet what Olimex does with components that are positioned outside the perimeter of the board.</p>
<p align="left">One other detail, which will not be an issue next time, is that the text for the silkscreen printing of component placement on the component side needs to be 50mils high or the text may not show properly.  Olimex requires a 10mil width on the lines in the silkscreen layer.  So I just told them not to print the silkscreen layer and made that easy.  For the future, I am gradually working my way through the gaussmarkov libraries and increasing the text size from its current 40mil size.</p>
<p align="left"> Once I had the board ready to go, I only had to send Olimex the Eagle .brd file. I emailed it and the next day I received an email reply saying that I was good to go.  Olimex also checks to make sure your board meets their requirements. They gave me a final price, which had an extra $3.30 charge for drilling over 100 holes on a board. I did not count my holes ahead of time, but it was no surprise so that was fine. Then I faxed them my credit card to pay for it.</p>
<p align="left">Olimex promises a 3 to 5 working-day turnaround and they were finished my board after 5 days and shipped it immediately. I chose airmail delivery because I was not in a hurry. From Bulgaria to California, delivery took 8 days. And part way through that time, I got another email telling me that a package was on its way.</p>
<p align="left">As you can tell, communication was good. If you are chatty, don&#8217;t look for a conversation partner at Olimex. The email I got confirming shipping contained just one word: &#8220;shipped.&#8221; And be ready to learn that you made a mistake when you get your boards. I have a feeling they do <em>exactly</em> what you ask, even if you did not know <em>that</em> was what you were asking for. <img src='http://gaussmarkov.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p align="left">I have not populated my boards yet. But I am satisfied with the whole process and I will probably go with Olimex again when I attempt a rendition of the Deluxe Memory Man, our next two-sided project.  And I am thinking about including an Olimex-ready version of some projects in the Circuits section of this site.</p>
<p align="left">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/circuit-boards/using-a-fab-house/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>1590B Big Muff Build</title>
		<link>http://gaussmarkov.net/wordpress/parts/enclosures/1590b-big-muff-build/</link>
		<comments>http://gaussmarkov.net/wordpress/parts/enclosures/1590b-big-muff-build/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 03:33:01 +0000</pubDate>
		<dc:creator>gaussmarkov</dc:creator>
				<category><![CDATA[Enclosures]]></category>

		<guid isPermaLink="false">http://gaussmarkov.net/wordpress/parts/enclosures/1590b-big-muff-build/</guid>
		<description><![CDATA[
So dig this: probably the smallest Big Muff you&#8217;ll ever see.  Chris Gregory (stobiepole) decided to make an all carbon comp version using the Big Muff Pi (Triangle Version) layout.  This is a nice example of putting the PCB over the pots.  Look at Krister&#8217;s Pearl OC-07 Octaver Clone build for another [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><img src="http://gaussmarkov.net/images/chris%20gregory%20-%20bmp%20build%202.jpg" title="1590 Big Muff Pi Build" alt="1590 Big Muff Pi Build" height="360" width="480" /></p>
<p align="left">So dig this: probably the smallest Big Muff you&#8217;ll ever see.  Chris Gregory (stobiepole) decided to make an all carbon comp version using the <a href="http://gaussmarkov.net/wordpress/circuits/big-muff-pi-triangle-version/" rel="bookmark" title="Permanent Link to Big Muff Pi (Triangle Version)">Big Muff Pi (Triangle Version)</a> layout.  This is a nice example of putting the PCB over the pots.  Look at Krister&#8217;s Pearl OC-07 <a href="http://gaussmarkov.net/wordpress/circuits/octaver-clone/" rel="bookmark" title="Permanent Link to Octaver Clone">Octaver Clone</a> build for another example.  View the image in a new window to see a slightly larger version.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaussmarkov.net/wordpress/parts/enclosures/1590b-big-muff-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
