Bad Circuit Modelling Episode 4: Op Amps

Jatin Chowdhury
5 min readJan 11, 2020

--

So far in this bad circuit modelling series, we’ve been assuming that any op amps in our circuits are perfect, ideal components. Today, we’re going to flip that paradigm, and assume that all of the components in our circuit are ideal except for the op amps. In this writing, we’ll examine the popular Texas Instruments LM741 op amp, but the same principles could be applied to any similar op amp.

As usual, this article can also be read as a Jupyter Notebook.

Op Amp Limitations

There are a lot of ways to look at op amps in a non-idealized way. For instance, op amps are themselves made up of components including resistors, capacitors, transistors, and diodes. It would be possible to develop a model of non-ideal op amps based exclusively on the non-ideal behaviors of these internal components, however this would prove to be quite complex, and given the vast experience of engineers and circuit designers working with op amps as isolated components in and of themselves, in this article, we’ll focus on op amps as holistic, indivisible components.

In circuit design we usually assume that op amps have zero input current, infinite input impedance, and zero output impedance. While the LM741 does allow a tiny bit of input current (~80 nA), and does not have perfect impedance characteristics, these imperfections are usually negligible for audio circuits. Further, op amps have a “slew rate” that limits their behavior at extremely high frequencies, much lower than the frequencies we typically work with in audio circuits.

In this article, we’ll focus on two main aspects of non-ideal op amps: the effects of temperature and aging on the op amp’s bandwidth and noise characteristics.

Circuit Analysis

As usual, we’ll start with our circuit: the Sallen-Key lowpass filter.

Sallen-Key Lowpass Filter Circuit

Once again, the filter cutoff frequency and Q value are as follows:

And again, we’ll design our filter for fc=1 kHz, and Q=2; C=4.7 nF, R=33.8 kOhms, R2=1.5 kOhms, and R1=1 kOhms.

Sallen-Key Lowpass Filter Frequency Response

Op Amp Temperature Dependence

In 2002, NASA released an interesting paper documenting the effects of extreme temperatures on Op-Amp performance. While the paper examines the now defunct OP181 op amp, we can scale their results to apply to the LM741. Most notably, the paper finds that the op-amp displays a temperature-bandwidth dependence described by the following chart.

Adapted from a 2002 NASA Paper

We can approximate this bandwidth limitation as a first-order lowpass filter, with cutoff frequency dependent on the operating temperature. Let’s take a look at the distribution of the cutoff frequencies as a function of temperature.

Now we can fit this data to a curve, in this case we’ll use a binding function.

After scaling the data to be appropriate for the LM741, we get something like the following:

where T is the temperature in Kelvin, and fc is the cutoff frequency in kHz.

Then we can add the following frequency response to the ideal frequency response of the lowpass filter.

Op Amp Aging

R.G. Keen has a wonderful article about op amp aging. Essentially as op amps grow old, and are subjected various sorts of “zaps”, they begin to develop a noise characteristic, and lose a bit more of their bandwidth. The noisep power should rise with age, with a characteristic similar to the chart shown below.

From my own personal experience, I’ve found that as op amps get old and start to fail, they tend to display a distortion characteristic similar to the well-known “dropout” nonlinearity (shown below).

Implementation

To help demonstrate the audible effects of the non-ideal op-amp, I‘ve implemented a model of the Sallen-Key lowpass filter with variable temperature and aging parameters, to show how the imperfections explained above affect the overall sound of the filter. The implementation is done as a VST/AU plugin, made using JUCE/C++. Source code for this implementation is available on GitHub, and a video demo can be seen below.

Finally…

Thanks for reading through the latest episode of Bad Circuit Modelling! I may do another article at some point examining the non-ideal aspects of a diode, but for the next little while be focused on compiling all of the imperfections discussed in this series so far into a single circuit-model, so definitely stay tuned for that! In the meantime, definitely checkout my other series in Complex Nonlinearities, I’ve got a few new ideas in that area that should be taking shape pretty soon. Onward!

--

--

Jatin Chowdhury
Jatin Chowdhury

No responses yet