Opamps for Dummies - part 1

Chuck D. Bones

Circuit Wizard
I had a request to give a basic primer on opamps. What does an opamp do? What's the difference between them? Why do builders use certain opamps? Which ones have the most mojo? Can I sub X for Y?

In part 1 I'll give a basic overview

First off, let's talk about what an opamp is. The most basic opamp has five terminals. The positive power rail, the negative power rail, the inverting input, the non-inverting input, and the output. The output voltage is the voltage difference between the inverting input (-) and the non-inverting input (+) multiplied by a very large gain. With an ideal opamp, that gain is infinite. In a real-world opamp, the gain is usually above 100,000. Many are around a million. Opamps were originally developed to be basic building blocks in an analog computer.

An ideal opamp has these characteristics:
infinite gain
infinite bandwidth - it can amplify all frequencies
infinite slew rate - the output can change as fast as the inputs
infinite input impedance
zero offset voltage - when the difference between the + and - inputs is zero, the output is exactly half-way between the power supply rails
zero bias current - no current flows in or out of the + and - pins
zero noise
infinite power supply rejection - hum or noise on the power rails does not affect the output
zero distortion
zero output impedance
infinite output current capability
the output can swing all the way to the power supply rails
the inputs will work correctly as long as they are greater than or equal to the negative power supply rail and less than or equal to the positive power supply rail

Most of these requirements cannot be met by a real opamp, but many opamps get pretty damned close. Close enough for building pedals. :cool:

The first opamps were built with vacuum tubes. They were not great and people started making them from silicon bipolar transistors instead. As soon as integrated circuit technology became commercially viable, opamps were made that way. With each technology advancement, opamps came closer to ideal.

The earliest use of an opamp in a pedal was the MXR Distortion+. It used a 741. The 741 was a cheap and plentiful general-purpose opamp. The biggest shortcoming of the 741 was noise. The 741 is a single opamp; there's one in a package. The 4558 is basically a dual 741. Pretty much the same design, same specs, except there are two on a die. The 4558 became the go-to dual opamp for low-cost consumer electronics, including guitar pedals.

Precision circuits required opamps with much better specs. Lower noise, lower offset voltage, higher input impedance, etc. One of the best solutions for this demand was the BiFET opamp. Chip manufacturers figured out how to put JFETs and BJTs on the same die. The input stage was JFETs and the rest was bipolar transistors. One of the earliest affordable JFET opamps was the LF351. Today, the JFET opamp of choice is the TL072.

The TL072 and 4558, appear in probably 90% of the opamp pedal circuits you'll come across. But there are a few other desirable opamps.

This brings us to the LM308. I've written about this guy on other pages in this forum. If you're going to run an opamp into saturation, this is one of the best choices out there. Unfortunately, they have been out of production for many years. You can find 'em on eBay and sometimes more reputable outlets, but they can be pricey. There are alternatives, but they don't always sound as good and you'll have to decide that for yourself. People like to talk about slew-rate and how the LM308's slow slew-rate is the source of the sweet tones. It may well be true, but I think there are other forces at play. The same mechanism that limits an opamp's slew rate also limits it's bandwidth - it's ability to amplify high freq signals. If we dime the DIST knob in the Rat, the LM308 runs out of gain just below 1KHz. Everything above that is diminished. There are far fewer harsh harmonics. Things that happen inside an opamp when it saturates are not well characterized (or in many cases, not at all) in the datasheet. Finding opamps that saturate in a way that sounds good is pretty much a matter of luck. Some people sub an OP-07 for am LM308. They don't sound the same to me in a Rat or similar circuit, but you'll have to decide for yourself. Opamps with external compensation (CA3130, LM301, LM308, NE5534, to name a few) allow the designer to dial-in the slew-rate & bandwidth with an external capacitor. That does not necessarily mean they can be made to sound the same. There are also "programmable" opamps that use an external resistor to control operating current, bandwidth & slew-rate. The MC3476 is one such beast. It sounds very good as a sub for the LM308 in a Roger Mayer Voodoo-1. It does not work well in a Rat.

Now let's talk about "audio-grade" opamps. These were designed specifically to meet the demands of high-end audio equipment. LM833, NE5532, OPAx134 are examples. They offer wide bandwidth and very low noise and distortion. This high performance comes at a price. These opamps typically consume more power (usually not a concern unless you're running on batteries) and they can be more expensive. Counterfeit OPA2134s are available on eBay, so beware. Putting a low-distortion opamp in a dirt pedal makes no sense to me, but some people do it.

Lastly, let's discuss the LM386. It's not exactly an opamp, although it shares some of an opamp's characteristics. The LM386 is a power amplifier designed to deliver up to 0.8W to a speaker load. They are also useful as a headphones amp. Somewhere along the line, somebody tried using one in a guitar pedal. Lo and behold, they sound pretty good when overdriven. EQD puts two of them in the Acapulco Gold. The SVDS wireless receiver uses one as the output amplifier. The SoloDalls Storm, which replicates the tone of the SVDS, also uses one. Brian Wampler put one in the front-end of the Velvet Fuzz. I put one in the Biggus Dickus. The LM386 is not interchangeable with regular opamps.

Coming up in part 2: How do opamps work in pedal circuits?
 
Last edited:
This is cool info, thank you.

I've had some recent trouble subbing higher end opamps in chorus circuits designed around 4558 and not taking into account the different power requirements. Looking forward to part 2.
 
I realized I was getting ahead of myself on part 2. Before we talk about why pedal builders use certain opamps and subbing, we need to look at how opamps work in pedal circuits. There will be a little math, but nothing complicated.
 
Last edited:
There will be a little math, but nothing complicated.
You should be fine then. [rim-shot]

Thank you (again) for breaking down engineer-level stuff to guitar-speak. It makes a HUGE difference. I recall seeing a formula in the datasheets of the examples above [ external compensation via capacitance ], but interpreting the result in terms of guitar-pedal was not clear. So I used my ear instead.

is it me or is the value nearly always close to 30p ? :ROFLMAO:
 
What happens at other value capacitance?
Would varying it (up/down) along with the gain offer any advantage?
Sorry…thinking with my fingers…
 
The short answer is that slew rate & bandwidth go down when Ccomp is increased. I'll discuss it further in part 2. In the meantime, you can take a look the datasheets for CA3130 or LM308. There are graphs of open-loop gain vs freq that show how the bandwidth changes with different values of Ccomp.
 
The real beauty of mojo is that you need not bother with actually knowing stuff like Chuck does. Mojo is the science based on things like rarity and age. If you can use something which is old, rare, inconveniently large and preferably unstable it will undoubtedly sound better. And even if it seems to sound worse or even much the same then only the better players or those in the know can hear that it's actually better.
 
The real beauty of mojo is that you need not bother with actually knowing stuff like Chuck does. Mojo is the science based on things like rarity and age. If you can use something which is old, rare, inconveniently large and preferably unstable it will undoubtedly sound better. And even if it seems to sound worse or even much the same then only the better players or those in the know can hear that it's actually better.
To some extent mojo also relies on the ability to describe the product in very subjective terms that translate a sound into a different sense. Like talking about the texture of the distortion or the temperment of the sustain in a circuit. Sniffing the cork usually results in describing the personality and growing conditions of the wine rather than how it tastes. The real world oddity that embodies this best is probably synesthesia.
 
The real beauty of mojo is that you need not bother with actually knowing stuff like Chuck does. Mojo is the science based on things like rarity and age. If you can use something which is old, rare, inconveniently large and preferably unstable it will undoubtedly sound better. And even if it seems to sound worse or even much the same then only the better players or those in the know can hear that it's actually better.

At the same time just because you know electronic science stuff, doesn't mean you know what is actually "better" or that you can scientifically explain why something "is better" or sounds better. Lots of things in guitar pedal design sometimes just don't make sense, simulate wrong in software while they actually work IRL, and datasheets won't tell you how IC X or diode Y will sound in a specific circuit.

Not saying at all knowing the science behind it isn't important or at the very least beneficial (just like music theory for writing music). It's good to know how stuff works, but sometimes fuck around and find out helps you break some preconceived notions (op amp X is noisy, high input impedance is always better, misbiasing gain stages is bad, ...)

Sometimes I get the feeling people in some of the forums and Facebook groups just simulate and theorize, and don't actually build, listen and compare... Which I think is just the other end of relying on stuff to sound good because it's old and rare.
 
The LM386 is a bit of a one-trick pony IMHO. Brian Wampler uses an LM386 as one of the input stages in the Velvet Fuzz. Most of the time, it acts as a linear gain stage. It only clips with high-output pickups and/or aggressive playing. That's the only time I've seen one used effectively as a low-gain distortion stage.
 
Back
Top