22. Operational amplifiers
Operational amplifiers, known as op-amps, are exceedingly useful integrated circuits. In fact, Horowitz and Hill refer to them as the “perfect part.” In this lesson, you will get an introduction to op-amps and learn how to use on as a non-inverting amplifier.
Op-amps with feedback
An op-amp is an active (meaning externally powered with a DC power source) integrated circuit that has two inputs and one output. The difference between the two inputs is amplified with very high gain. Because of the high gain op-amps are almost always used with feedback.
Op-amps are powered by a positive and negative voltage source,
There are a few “rules” to keep in mind about op-amps used in feedback loops.
The gain is huge (typically
- ).The inputs draw very small current (typically of order picoamps).
The output tends to make the voltage difference zero.
Rule (3) follows from rules (1) and (2), which we demonstrate below. To quickly think about op-amps, it is useful to keep these rules of thumb in mind.
We will apply op-amps to active filters, such as Sallen-Key filters, in a future lesson, and we will see other applications of op-amps in the next one. For now, we will explore the use of an op-amp in a non-inverting amplifier, which is simpler to analyze, and the analysis provides insight.
A non-inverting amplifier
Consider the circuit below in which we connect an op-amp with feedback to a voltage divider.
Note that we have labeled a point
Thinking intuitively about the circuit, imagine
To figure out how much
Since the op-amp drives
which means that the op-amp amplifies the input by a factor of
Of course, this only works within a given range of input and output voltages. The maximum
A more detailed look
It may seem unsatisfying that we used the “rules” to derive the above result. We could also do the analysis using Kirchhoff’s laws. The op-amp takes the differential input,
Because negligible current goes through the op-amp,
Thus, we have
Rearranging this expression gives
Unless we choose hugely disparate values of the resistors, e.g.,
Thus,
The gains cancel! This means that the input-output relationship of the op-amp is independent of the gain. We get the same result as we did above by applying rule 3,
A unit gain amplifier
Consider the following circuit.
This looks kind of funny. We take the output of the op-amp and put it right back in the inverting input without using a resister of capacitor. What is this doing? It makes more sense if we compare this circuit to the non-inverting amplifier. We see that our circuit is actually a non-inverting amplifier with
This circuit is an example of an emitter follower (sometimes just called a follower), so named because the output is emitted, following an input. Importantly, the output has very low impedance, much lower than typical input impedance. As a result, the output is isolated from the input due to the large impedance difference. Unit gain amplifiers are quite useful to stabilize input signals prior to measuring them.
Thinking exercise 7: Another amplifier
What is the relationship between
The circuit in this exercise is very important. Be sure you read the answer to this thinking exercise at the end of this lesson.
Dual op-amps
We have LF412CP dual op-amps. A dual op-amp has two op-amps in the same integrated circuit. The pinout for this component is shown below.
Note that both of the op-amps share the same power source (Vcc+ and Vcc–).
When using this component, it is important to note the small circular indentation on the top. This is used to orient you so you know which pin is which.
The component is laid out as a dual inline package (DIP). The groove in the middle of your solderless breadboard is there for DIP support. You should mount the component across the groove. When you do so, none of the pins of the component are connected to each other, and you then can connect the pins to the necessary components of the circuit.
Do-it-yourself exercise 10: Demonstration of noninverting amplification
Build the circuit below, taking into account the following considerations.
Power the dual op-amp with your 5 V PowerBRICK.
Do not connect the outputs of the op-amps to A0 and A2 right now. Do that after you upload your sketch.
Write an Arduino sketch to use the MCP4725 DAC to send one volt as input to the first op-amp and to send the outputs of the first and second op-amp to pins A0 and A2, respectively. Prior to plugging in pins A0 and A2 and uploading the sketch, what values to you think they will read?
Now plug in A0 and A2, upload the sketch, and see what values pins A0 and A2 read using the Serial Monitor. Hint: You may want to put a delay between opening the serial connection and reading and writing the results to make sure everything is ready to go for serial communication.
Answer to inverting op-amp thinking exercise
We will use the simple rules of op-amps. First, the voltage difference is close to zero, giving
from which we have
The minus sign means that the output voltage is of opposite sign as the input voltage. This circuit is therefore referred to as an inverting amplifier. This is one of the most widely used op-amp-based circuits. When