Opamps for Dummies - part 2

Chuck D. Bones

Circuit Wizard
Part 2 deals with the topic of how opamps are used in pedal circuits.

There are four basic building blocks made from opamps and used in pedals. Buffer; Amplifier; Limiter; Filter.

We'll use examples from the Friedman BE-OD since it contains all four building block types.

Here's a unity gain buffer. We use negative feedback from the output (pin 1) to the inverting input (pin 2) to control the gain. Since we have 100% feedback, the gain is unity. We use a buffer when we need a building block with high input impedance, low output impedance, flat frequency response and 0dB gain. It does essentially the same thing as an emitter follower or source follower. In this example, it buffers Vref.

1695683354142.png
Next we have a non-inverting amplifier. It too has a high input impedance, low output impedance and flat frequency response, but the gain is greater than unity. Assuming the opamp has very high open-loop gain, the gain of this circuit is 1+R5/R4 = 2.773 = 8.86dB. The signal is not invertered, i.e. the phase of the output signal is the same as the input signal. The gain of a non-inverting amplifier can never be less than unity (0dB).

1695683120252.png
We can build an inverting amplifier like this. The gain is -(R15+Rtrim)/R14. The gain is negative because the amplifier inverts the signal. If the input moves in the positive direction, the output moves in the negative direction. The gain of an inverting amplifier can be greater or less than unity. The input impedance of an inverting amplifier is equal to R14. We have to take this into account when we design circuits using inverting amplifiers.

1695683495880.png

We can make a limiter by putting diodes in the feedback loop. This is a non-inverting limiter. It shows up in many distortion circuits, such as the Tube Screamer. When the diodes start to turn on, they increase the amount of feedback which decreases the gain. The larger the signal, the more the diodes limit the signal swing at the output. The gain varies throughout the waveform, which distorts the signal. Non-inverting limiters have a built-in clean bleed because the output signal is the sum of the voltage between pins 6 and 7 plus the input signal. The limiting is slightly softer because of this and as a result there are more dynamics.

1695683980205.png

We can also make an inverting limiter, like this. Inverting limiters do not normally have a clean bleed, unless we deliberately put one in. R12 serves that purpose because no matter how much the diodes conduct, R12 keeps the instantaneous gain from going to zero. If R12 was zero, the compression would be extreme and there would be very little dynamics. Sometimes that's what we want.

1695684207214.png

Finally, we have an example of an active filter. This is actually a form of bandpass filter, but it's tuned to make the boost in the bass region.

1695684521604.png

We can also make inverting filters and the Baxandall tone stack is an example of that.

Something all of the circuits have in common is a DC path from the + input to Vref and a DC path from the - input to the output. This biases the opamp such that the output is centered at Vref.

One question that comes up is how do we select component values? Gain is set by resistor ratios and cutoff freq is set by the product of capacitance and resistance. There are practical limits to the resistor values. Make the resistances too small and the feedback circuit loads down the output. Make the resistances too large and the output won't be centered at Vref. An ideal opamp has zero DC current flowing in or out of the + and - inputs. A real opamp has DC current flowing thru the input pins. That current is called bias current. Opamp manufacturers endeavor to keep the bias currents small and equal, but they are never zero or perfectly balanced. The nominal bias current in an MC1458 is typically 80nA. 80nA flowing in a 1M resistor produces an 80mV voltage drop. Not too bad and it doesn't eat enough headroom to worry about. Put in a 10M resistor and now the voltage is nearly 1V. In this way, the bias currents cause the opamp's output to not be centered at Vref. If it's off a little bit, no problem. The typical bias current in an LM833 is 500nA. Put that thru a 1M resistor and we get a 500mV offset. That is consuming headroom and we certainly don't want to go any higher than 1M. FET-input opamps such as TL072, LF351, CA3130, to name a few, have bias currents measured in pA. The typical bias current in a TL072 is 20pA. That makes a 20uV offset in a 1M resistor. This means we can use very high resistor values with FET-input opamps and not have to worry about bias current effects.

Real opamps don't have infinite gain. If we try to make a very high gain amplifier, the opamp's limited open-loop gain comes into play. My rule of thumb is don't go over 60dB (1000x) in a single stage. I usually keep the max gain to 46dB (200x). If you need more than that, then make the gain in stages. That's what Friedman, Revv and Diezel do in their pedals. The effect of limited gain and bandwidth are very apparent in the Rat. With DIST dimed, the high freq gain would top out over 71dB (3,450x). In reality, it peaks out around 65dB and falls off rapidly above 800Hz because the opamp's open-loop gain falls off as frequency goes up.

I think that's enough for now. Questions?
 
Don't go crazy with super-high gain or resistors over 1M and most opamps will do fine. Some of the lower caste opamps (LM741, LM358) are noisy and that can be a problem in high gain circuits. TL072 is my go-to opamp because they're inexpensive, easy to come by, low noise and have very good DC specs. Unless I am exploiting specific performance characteristics in a particular part #, I consider most opamps to be interchangeable.
 
Nobody has time for this, make it into a 1 minute tiktok video. :rolleyes:

Nah, joking aside, I think this could be very helpful for a lot of people, good writeup without going too science-y.


Some of the lower caste opamps (LM741, LM358) are noisy and that can be a problem in high gain circuits.

I wouldn't generalize it like that, as noise is sort of the product of a bunch of different things (proper power filtering, low pass filters, where you place a gain stage in a circuit, etc.). However, I see that we have to generalize a little, as usually "it depends" isn't an answer people are looking for.

Anyway... Specifically in Rats I always find that TL071s are more noisy than the "lower caste" op amps as they have more top end, which translates to more high end hiss/noise. The LM358 is a special beast as it needs extra pull-up resistors to NOT introduce crossover distortion, which can sound pretty shitty, unless you run it at high enough gain so it doesn't matter. Still I find those low slew rate op amps to be rather cool for more more sludgy distortion!
 
when I say "noise," I mean random noise, aka hiss. Comes from electrons rattling around in the crystal lattice.

RF pickup, hum and oscillation are undesirable, but are not noise in the engineering sense.
 
Comes from electrons rattling around in the crystal lattice.
But electrons rattling the crystal lettuce are where the Dumble toan is at.

TBH though, I rarely find specific op amps to make that big of a difference in noise other than what I described. Also I've seen pretty much every popular op amp described as noisy in online discussions so I stopped giving a crap and started just using my ears.
 
when I say "noise," I mean random noise, aka hiss. Comes from electrons rattling around in the crystal lattice.

RF pickup, hum and oscillation are undesirable, but are not noise in the engineering sense.
I think i found my Signature sentence. Thank you for the write-up. Now Op amps are crystal clear for me.
 
Last edited:
Back
Top