Sub topic 9
The Voltage Follower as a Buffer
This chapter assumes you know Ohm's law, KCL, voltage dividers, and the two ideal op amp constraints from the previous chapters. Those constraints are zero input current and a virtual short between the input terminals when negative feedback is present. The voltage follower is the simplest op amp circuit, and it shows why those two constraints are useful.
The circuit
The input voltage connects to the non-inverting terminal (+). The output connects straight back to the inverting terminal (−). No resistors are needed.
Deriving the gain
Apply the analysis procedure from the earlier chapter.
- Check the feedback. The output connects to the inverting input. A rise in Vout raises V−, which reduces the differential input V+ − V−. This is negative feedback, so the output is not saturated and the virtual short applies.
- Apply the virtual short: V− = V+.
- Read the node voltages from the wiring. V+ = Vin. V− is wired directly to the output, so V− = Vout.
- Combine the results: Vout = V− = V+ = Vin.
The gain is exactly +1. KCL is not needed, because the only wire at the − node carries no current into the op amp and no resistor is connected there.
You can also get this result from the non-inverting amplifier, whose gain is 1 + Rf/Rg. For the follower, Rf = 0 (a plain wire) and Rg = ∞ (no connection). The gain is then 1 + 0 = 1.
Why a gain of 1 is useful
A gain of 1 looks pointless until you consider what the circuit does to impedances. The follower copies a voltage without drawing current from its source. The load current comes from the op amp's supply rails.
Consider a sensor modeled as a source Vs = 5 V with a series resistance Rs = 100 kΩ. It drives a load RL. Without a buffer, Rs and RL form a voltage divider:
Vload = Vs · RL / (Rs + RL)
With the follower between them, the + input draws no current. There is no drop across Rs, so V+ = 5 V. The output then holds 5 V regardless of RL, within the op amp's current limit.
| Load RL | Unbuffered Vload | Buffered Vload |
|---|---|---|
| 1 kΩ | 0.0495 V | 5.000 V |
| 10 kΩ | 0.4545 V | 5.000 V |
| 100 kΩ | 2.500 V | 5.000 V |
| 1 MΩ | 4.545 V | 5.000 V |
The buffer has no voltage gain, but it has power gain. The source delivers essentially zero power, and the load receives Vin²/RL. The extra power comes from the supply.
The ideal model summarizes this behavior with two properties:
- Infinite input resistance, because the input current is zero.
- Zero output resistance, because the output is a dependent voltage source that holds Vout = Vin whatever current the load takes.
Checking the numbers in code
The script below computes the unbuffered divider and the follower. The follower includes the finite open-loop gain correction and clips at the supply rails. For a finite gain A, the linear relation Vout = A(Vin − Vout) gives Vout = Vin · A/(1 + A). This agrees with the finite-gain formula for a non-inverting amplifier with an ideal gain of 1.
def loaded_voltage(vs, rs, rl):
"""Voltage across the load when the source drives it directly."""
return vs * rl / (rs + rl)
def follower_output(vin, a=None, v_neg=-15.0, v_pos=15.0):
"""Voltage follower output. a=None means infinite open-loop gain.
The result is limited to the supply rails."""
linear = vin if a is None else vin * a / (1 + a)
return max(v_neg, min(v_pos, linear))
vs, rs = 5.0, 100e3
for rl in (1e3, 10e3, 100e3, 1e6):
print(f"RL={rl:>9.0f} direct={loaded_voltage(vs, rs, rl):.4f} "
f"buffered={follower_output(vs):.4f}")
print(f"{follower_output(5.0, a=1e5):.5f}") # 4.99995
print(follower_output(20.0)) # 15.0 (saturated)The loop prints 0.0495, 0.4545, 2.5000 and 4.5455 for the direct column, and 5.0000 for every buffered value. The last two lines show a finite-gain error of 0.005 mV on 5 V, and a clipped output when the input exceeds the rail.
Worked example: a buffered divider
Suppose a 10 kΩ + 10 kΩ divider from a 10 V supply sets a reference of 5 V. A 1 kΩ load wired directly to the midpoint changes the divider. The lower leg becomes 10 kΩ ∥ 1 kΩ ≈ 0.909 kΩ, and the midpoint falls to 10 · 0.909 / (10 + 0.909) ≈ 0.833 V.
Now place a follower between the midpoint and the load. The + input draws no current, so the divider still sees an open circuit and stays at 5 V. The output holds 5 V across the 1 kΩ load and sources 5 mA. That current comes from the op amp, not from the divider.
Where the ideal model stops applying
The follower is the simplest circuit to analyze, but real devices still have limits. Check these before you trust the ideal result.
Output limits
The output cannot exceed the supply rails. With ±15 V supplies, an input of 20 V gives an output at or just below +15 V, as the code showed. In that case the feedback cannot restore V− = V+, so the virtual short no longer holds. Many general-purpose op amps cannot reach the rails and stop 1 V to 2 V short of them. Rail-to-rail output parts get within millivolts.
The output current is also limited, often to a few tens of milliamps. A 1 kΩ load at 5 V needs 5 mA, which is acceptable. A 50 Ω load at 5 V needs 100 mA, which a typical general-purpose op amp cannot supply. The output then sags and the follower's output resistance is no longer effectively zero.
Input range
The input voltage must stay within the op amp's input common-mode range. Some op amps misbehave when the input is within a volt or two of a supply rail. In some older bipolar designs, the output can even flip polarity. Check the datasheet when the signal runs near a rail.
Input bias current
Real inputs draw a small bias current, so the source is not completely unloaded. A 100 nA bias current through Rs = 100 kΩ drops 10 mV, which appears as an error at the output. With a source resistance this high, choose an op amp with FET or CMOS inputs, whose bias currents are in the picoampere range.
Finite open-loop gain and output resistance
The gain is A/(1 + A) rather than exactly 1. For A = 10⁵, the error is about 0.001%, negligible for most work. The closed-loop output resistance is approximately Ro/(1 + A), where Ro is the open-loop output resistance. For Ro = 75 Ω and A = 10⁵, that is under 1 mΩ at DC. Open-loop gain falls with frequency, so both figures get worse as the signal frequency rises.
Stability
The follower has 100% feedback, the maximum possible. This makes it the hardest unity-gain case for stability. Some op amps are not unity-gain stable and will oscillate in this circuit. A large capacitive load on the output can also cause ringing or oscillation. Check the datasheet for "unity-gain stable", and add a small series resistor (tens of ohms) at the output if the load is capacitive.
Common errors
- Swapping the inputs. Connecting the output to the + input gives positive feedback. The output latches at a rail, and the virtual short does not apply.
- Expecting gain. The follower has gain 1. Use it to isolate stages, not to amplify.
- Ignoring the load current. The source current is zero, but the load current still flows from the supply through the output stage.
- Using the buffer where a wire would do. If the source resistance is much smaller than the load, the divider error is already small. A buffer adds cost and noise without a benefit.
- Applying the virtual short at saturation. If Vin exceeds the rails, V− ≠ V+. Test for this before you trust the analysis.
Exercises
Exercise
A source with Vs = 2 V and Rs = 50 kΩ drives a 5 kΩ load. Find the load voltage (a) directly and (b) through an ideal voltage follower. In case (b), how much current does the source supply, and how much does the op amp output supply?
Show answer
(a) Vload = 2 · 5 / (50 + 5) = 0.1818 V. (b) The + input draws no current, so there is no drop across Rs and V+ = 2 V. The follower gives Vout = 2 V across the load. The source supplies 0 A. The op amp output supplies 2 V / 5 kΩ = 0.4 mA.
Exercise
A follower is powered from ±5 V supplies, and the input is a 7 V DC level. What does the ideal linear analysis predict, what actually happens, and why does the analysis fail?
Show answer
The linear analysis predicts Vout = 7 V. The output cannot exceed the +5 V rail, so it saturates at or below +5 V. The feedback cannot raise Vout to match V+, so V− ≠ V+ and the virtual short does not hold. The linear model is valid only while the output stays between the rails.
Exercise
A follower has open-loop gain A = 2 × 10⁴ and an input of 10 V. Find the output voltage and the percentage error.
Show answer
Vout = 10 · A/(1 + A) = 10 · 20000/20001 ≈ 9.9995 V. The error is 1/(1 + A) ≈ 1/20001 ≈ 0.005%.