Sub topic 2
The non-inverting amplifier: Vout = (1 + Rf/Rg) Vin
This chapter assumes you know Ohm's law, Kirchhoff's current law, the voltage divider, and the virtual short of an ideal op amp. The virtual short means negative feedback forces the two inputs to the same voltage while the inputs draw no current.
Deriving the gain
The input signal goes to the positive (+) input. Feedback resistor Rf connects the output back to the negative (-) input, and Rg connects that input to ground.
The virtual short makes the negative input equal to Vin. The current through Rg is therefore I = Vin / Rg. Because the op amp input draws no current, the same current flows through Rf. The voltage across Rf is I × Rf = Vin × Rf / Rg, so the output is:
Vout = Vin + Vin × Rf / Rg = (1 + Rf/Rg) Vin
The gain is always at least 1, and it depends only on the resistor ratio.
The voltage follower as a buffer
If Rf is 0 ohms (a wire) and Rg is removed (open), the gain becomes 1 + 0 = 1. The output then copies the input voltage. This circuit is a voltage follower. It does not amplify voltage, but it isolates the source from the load.
Input and output impedance
The + input draws almost no current, so the source sees a very high input impedance. An inverting amplifier with Rin = 1 kΩ, by contrast, presents 1 kΩ to the source. Negative feedback also lowers the output impedance to a small fraction of the op amp's open-loop value.
| Configuration | Gain | Input impedance seen by source |
|---|---|---|
| Non-inverting | 1 + Rf/Rg | Very high |
| Voltage follower | 1 | Very high |
| Inverting | -Rf/Rin | Rin |
def noninverting_gain(rf, rg):
return 1 + rf / rg
print(noninverting_gain(9e3, 1e3)) # 10.0
print(noninverting_gain(0, 1e3)) # 1.0 (voltage follower)Exercise
Exercise
Rf = 18 kΩ, Rg = 2 kΩ, and Vin = 0.5 V. What is Vout, assuming the output stays within the supply rails?
Show answer
Gain = 1 + 18k/2k = 10. Vout = 10 × 0.5 V = 5 V.