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:
I'm having trouble understanding what's going on with the level and master controls of the Sunn Beta Lead. It looks like inverting op amps to me. What is the purpose of the diodes? And what are the 150R resistor and 2.2u capacitor doing as well as the 47p cap in the master control? Also, since this amp has two channels in parallel which are summed at the master control, I assume the input resistance is the two 27K resistors (R201 and R161) in parallel, so 13.5K?
sunn-beta.png
 
It would have been better if you had posted the entire schematic, but no worries, I found it on Electrotanya.
  1. Yes, those are inverting opamps.
  2. The diodes protect the opamps from someone plugging the wrong thing into the accessory jacks.
  3. The 150Ω resistors (R179, R199 & R203) are part of that protection and also decouple the opamp outputs from reactive loads that might make the opamps go unstable.
  4. The 2.2μF caps (C134, C145 & C147) provide DC blocking. Although the opamps are referenced to DC, opamps are not perfect and will have some DC offset on the outputs.
  5. The 47pF cap (C163) limits the high-freq gain to prevent RF oscillations.
  6. R181 & R201 lead to separate inputs (CHAN A & CHAN B). The input impedance at each channel is 27K. Since the CHAN A and CHAN B signals will be different, we do not parallel R181 & R201. If you are trying to calculate gain, you have to calculate the gain for each channel separately. Note that the reverb channel also feeds the Master channel via R232 & R233.
 
@Chuck D. Bones are the diodes (105-108)centering the opamp output on a virtual ground? Thats kinda how I see it...
Guessing to accommodate drifted/imperfect power supplies and maybe as a protecting in the event of a rail failure?
 
Nope.
First of all, the diodes are reverse-biased. For all normal operation, they are turned off. If they were flipped around so that they were forward biased, they'd effectively short the + and - rails together.

Those diodes clamp the opamp output to one diode drop beyond the rails in case someone does something stupid like connecting one of the accessory output jacks to the speaker output of a 100W amp. Some of the Thorpy FX pedals have diode clamp protection for the same reason. Look at The Dane & General Tso.

I feel like we're starting to drift off-topic here.
 
Back
Top