Op-amp
On this page
An operator at a water tank watches two gauges, the level wanted and the level now, and turns the inlet valve until the two read the same. An op-amp (operational amplifier) does this with voltages. It moves its output until its two inputs are equal, and two resistors decide what equal means, which sets the gain.
See it
A non-inverting amplifier has Rf = 9 kΩ and R1 = 1 kΩ. Its + input is at 0.2 V. What voltage is at its − input?
The op-amp is an LM358 on a single 5 V supply, so its output can reach only about 3.5 V. Below that limit, V− always equals V+. Push the output to the limit and the two inputs are no longer equal: the rules hold only while the output can still move.
The idea
An op-amp has two inputs, + and −, and one output. Alone, it multiplies the difference between its inputs by a very large number, so a share of the output is connected back to the − input. This is negative feedback: if the output is too high, the − input rises and pushes it down again.
With negative feedback, two golden rules hold. No current flows into the inputs. The op-amp moves its output until both inputs are at the same voltage.
In the non-inverting amplifier, Rf and R1 are a voltage divider that returns a share of the output to the − input. The op-amp raises its output until that share equals the input:
Vin is the voltage at the + input, Rf the feedback resistor from the output to the − input, R1 the resistor from the − input to 0 V
The gain is 1 or more: it cannot make a signal smaller. The output cannot go beyond the supply, and many op-amps cannot reach it.
One worked number
A sensor gives 0 to 0.3 V. You want 0 to 3.0 V for an analog input. R1 is 1 kΩ. Which Rf do you need, and what is the output when the sensor gives 0.25 V?
Show the worked solution, 3 steps
- Find the gain
3.0 V ÷ 0.3 V = 10.
- Find Rf
1 + Rf ÷ R1 = 10, so Rf ÷ R1 = 9 and Rf = 9 × 1 kΩ = 9 kΩ.
- The output at 0.25 V
0.25 V × 10 = 2.50 V. Check: the divider returns 2.50 × 1 ÷ 10 = 0.25 V to the − input, equal to the + input. The figure opens at this case.
The mistake to avoid
Check yourself
A non-inverting amplifier has Rf = 47 kΩ and R1 = 10 kΩ. The input is 0.5 V. What is the output?
A transmitter gives 0 to 10 V, and the controller input accepts 0 to 3.3 V. Someone plans a non-inverting amplifier to make the signal smaller. What do you tell them?
An LM358 on a 5 V supply has a gain of 20. The input is 0.25 V, so you expect 5.0 V at the output. You measure 3.5 V. Why?
Where you meet it
- Cold room temperature probesA thermistor or an RTD gives a small change of voltage, and an op-amp raises it to the range of the analog input.
- Load cellsA tank on load cells gives a few millivolts, and an instrumentation amplifier built from op-amps makes it usable.
- Current measurementCharge controllers and energy meters amplify the small voltage across a low resistance.
- Battery monitoringA follower between a divider and the analog input keeps the divider from being loaded.
- With negative feedback, an op-amp moves its output until its two inputs are equal, and no current flows into them.
- Non-inverting gain = 1 + Rf ÷ R1. It is never below 1.
- The output cannot pass its supply, and the LM358 on 5 V stops near 3.5 V.
- At that limit the rules no longer hold.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.