Circuit Bytes · Episode 43 · Analog · Op-amps
Op-amp amplifiers
Negative feedback tames an op-amp's huge gain. Feed the output back to the minus input through two resistors and the op-amp drives its output until both inputs match, so a non-inverting amplifier has a gain of 1 + R f ÷ R g, set by the resistors, not the chip.
The problem: too much gain
Last episode, the op-amp on its own multiplied the difference between its inputs by a huge gain, often 100,000 or more. Even a tiny input difference slammed the output to its supply limit. That's great for a comparator, but useless if you want a clean, bigger copy of a signal.
The fix: negative feedback
Run a wire from the output back to the minus input, through two resistors: R f (feedback) from the output to the minus input, and R g from the minus input to ground. Those two resistors form a voltage divider, so the minus input sees a fixed fraction of the output. Now, if the output gets too high, the minus input rises and pulls it back down; if it's too low, the opposite happens. The op-amp settles where both inputs match.
The gain formula
Feed the signal into the plus input. For the minus input to match it, the output has to be bigger by exactly the divider's ratio:
gain = 1 + R f ÷ R g
A worked example
With R f = 9 kΩ and R g = 1 kΩ: 1 + 9 ÷ 1 = 10. So 0.1 V in gives 0.1 V × 10 = 1 V out, and the output wave is a ten-times-bigger copy of the input, the same way up (that's why it's called non-inverting).
Why it's precise
The chip's own gain barely matters any more, as long as it's very high. The resistors set the gain, so it is as accurate as they are: 1% resistors give about 1% gain accuracy. Swap one resistor and you get a different gain.
Try it yourself
Pick two resistors and work out the gain with gain = 1 + R f ÷ R g. With R f = 4 kΩ and R g = 1 kΩ, the gain is 1 + 4 = 5, so 0.2 V in gives 1 V out. With R f = 47 kΩ and R g = 10 kΩ, the gain is 1 + 4.7 = 5.7. Notice that with no feedback resistor at all (R f = 0) the gain is exactly 1: that's a voltage follower, or buffer.
Good to know
- The All About Circuits textbook calls the resistors R2 (feedback) and R1 (to ground) and writes the gain as
A_V = R2 ÷ R1 + 1; R f and R g are common alternative labels. - The output still can't swing past the supply voltage, so a big gain with a big input will still clip.
- Real op-amps have less gain at high frequencies, so the formula holds best for slower signals like audio.
- The inverting amplifier, which feeds the signal into the minus input instead, has gain
−R f ÷ R inand flips the signal upside down. - Battery or low-voltage supplies only; leave wall wiring to a licensed electrician.
Answer to the comment question
A non-inverting amplifier uses a nineteen-kilohm feedback resistor and a one-kilohm ground resistor. What's the gain? 20. gain = 1 + R f ÷ R g = 1 + 19 ÷ 1 = 20, so 0.1 V in would give 2 V out.
Test your knowledge
Quick quiz: Op-amp amplifiers
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- All About Circuits, "Divided Feedback": non-inverting gain = R2 ÷ R1 + 1; the open-loop gain barely matters
- All About Circuits, "Negative Feedback": the output adjusts until the inputs match
- All About Circuits lab, "Non-inverting Amplifier": the output rises to a multiple of the + input
- All About Circuits, "An Analogy for Divided Feedback": the lever picture of the divider
Video transcript
How can two resistors set exactly how much a signal gets amplified?
Last time, the huge gain slammed the output to its limit. The fix is feedback.
Connect the output back to the minus input through two resistors. Now the op-amp adjusts its output until both inputs match.
Feed the signal into the plus input, and the gain is one plus the feedback resistor divided by the ground resistor.
Nine kilohms and one kilohm: one plus nine is a gain of ten. Point one volts in, one volt out.
Now the resistors set the gain, not the chip, so it's precise. That's a non-inverting amplifier.
A non-inverting amplifier uses a nineteen-kilohm feedback resistor and a one-kilohm ground resistor. What's the gain? Comment your answer below!
That's your byte.