Circuit Bytes · Episode 42 · Analog · Op-amps
What an op-amp is
An op-amp has a plus input, a minus input and one output, and it multiplies the difference between its inputs by a huge gain. Without feedback even a tiny difference drives the output to its supply limit, which makes it a comparator.
Two inputs, one output
An op-amp is a small chip, often in an eight-pin package, drawn in schematics as a triangle. On the flat side are two inputs: the non-inverting input (+) and the inverting input (−). The point of the triangle is the output. It also has two supply pins, often labeled +V and −V, which power it and set how high and low the output can go.
It amplifies the difference
An op-amp doesn't care about either input on its own. It looks at the difference between them and multiplies it by its open-loop gain: output = gain × (V+ − V−). That gain is huge, commonly 100,000 to over 1,000,000 at low frequencies. It varies a lot from part to part and falls at higher frequencies, so real designs don't rely on its exact value.
Hitting the limit
With a gain of 100,000, a difference of just 1 mV would ask for 1 mV × 100,000 = 100 V. The output can't go past its supply, so it slams to the limit instead, and usually stops a little short of the supply voltage unless the chip is a "rail-to-rail" type. This is called saturation, or clipping.
The comparator
Used like this, with nothing feeding the output back to the inputs, an op-amp becomes a comparator. It answers one question: is plus higher than minus? If yes, the output goes high, near the top supply. If no, the output goes low, near the bottom supply. It turns a smooth, wobbly input into a clear yes or no.
How a night light can tell it's dark
Feed a light sensor's voltage to the minus input and a fixed "set level" to the plus input. In daylight the sensor voltage is above the set level, so the output stays low and the lamp is off. When it gets dark, the sensor voltage drops below the set level, plus becomes higher than minus, the output goes high and the lamp turns on. (This is a simplified example: many real night lights use simpler circuits, and a real comparator design usually adds a little hysteresis so the lamp doesn't flicker right at the threshold.)
Try it yourself
Use output = gain × (V+ − V−) and remember the output can't pass its supply. An op-amp with a gain of 100,000 runs on a ±12 V supply. If V+ is 50 µV above V−, the ideal output is 100,000 × 0.000050 V = 5 V, inside the supply, so that's what you get. Now make the difference 0.5 mV: 100,000 × 0.0005 V = 50 V, which is past 12 V, so the output just sits at its limit, a little under 12 V. Finally swap the inputs so V− is higher: the output swings to the negative limit instead.
Good to know
- The "+" and "−" are names for the two inputs, not a promise that one is positive and one is negative.
- Open-loop gain is huge but not precise; the next episode shows how negative feedback tames it into a dependable amplifier.
- Dedicated comparator chips switch faster than general-purpose op-amps, so they're the usual pick for fast yes/no decisions.
- Real op-amps have a small input offset voltage (often more than a few microvolts), so tiny differences won't give the "ideal" answer exactly.
- Battery and low-voltage circuits only; leave wall wiring to a licensed electrician.
Answer to the comment question
An op-amp has a gain of 100,000. Its inputs differ by 20 microvolts. Ideally, what's the output voltage? 2 volts. 20 µV = 0.000020 V, and 100,000 × 0.000020 V = 2 V. That's inside a typical supply range, so the output isn't clipped. It's "ideally" because real op-amps have offset voltages that are often bigger than 20 µV.
Test your knowledge
Quick quiz: What an op-amp is
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- All About Circuits textbook, Designing Analog Chips, "Comparators": a comparator is essentially an op-amp without feedback
- All About Circuits lab, "Voltage Comparator": an open-loop op-amp tells which of two voltages is larger
- All About Circuits technical article, "Characteristics of Operational Amplifiers": two inputs, one output, very high open-loop gain
- All About Circuits textbook, Vol. III Semiconductors, chapter 8, "Negative Feedback": why open-loop gain needs taming (next episode)
Video transcript
What makes the op-amp the most useful chip in analog electronics?
An op-amp, short for operational amplifier, has two inputs, plus and minus, and one output.
It multiplies the difference between its inputs by a huge gain, often a hundred thousand or more.
Even one millivolt of difference wants to become a hundred volts. The output can't pass its supply, so it slams to the limit.
Used like this, it's a comparator: is plus higher than minus? Yes, output high. No, output low.
That's how a night light can tell it's dark.
An op-amp has a gain of one hundred thousand. Its inputs differ by twenty microvolts. Ideally, what's the output voltage? Comment your answer below!
That's your byte.