The Operational Amplifier
Two inputs, absurd gain, one rule. Used raw, an op-amp is a comparator — the analog world's yes/no machine.
Builds on: 3.2 Transistors2.2 Voltage Dividers
The universal analog building block
One transistor amplifies (Lesson 3.2), but crudely — its gain drifts with temperature and part tolerance. The fix, born in the 1940s as room-heating vacuum-tube blocks inside analog computers and shrunk by the 1960s to dozens of transistors on a single chip, is the operational amplifier — so named because those computers used it to perform mathematical operations. Today an op-amp costs pennies and hides in everything analog: sensors, audio, power supplies, your multimeter.
The op-amp has two inputs and one rule:
It amplifies the difference between its non-inverting (+) and inverting (−) inputs by a gain so large it’s almost a caricature. A 0.1 mV difference asks for 10 V of output. And the inputs themselves draw essentially zero current — they only watch.
Used raw: the comparator
With gain that huge and no feedback, the output can’t sit anywhere in the middle — the tiniest input difference slams it against a supply rail. That makes a perfect comparator: put a reference voltage on one input (a voltage divider — Lesson 2.2 again) and a signal on the other, and the output is a clean digital verdict: above or below? Thermostats, battery-low warnings, night-lights: all comparators.
The chattering problem — and hysteresis
Real signals are noisy. As a slowly rising signal grazes the threshold, noise makes it cross back and forth dozens of times — the output chatters. The fix is hysteresis: make the switch-up threshold slightly higher than the switch-down threshold. Once the output flips high, the goalposts move down; noise inside the band changes nothing. A comparator with hysteresis is called a Schmitt trigger, and the idea is everywhere — it’s why your thermostat doesn’t rapid-fire the furnace at 20.0 °C, and (surprise) it’s exactly the ⅓/⅔ two-threshold trick your 555 timer has used all along.
Inside the 555 (Lesson 3.3) live two comparators watching ⅓ Vcc and ⅔ Vcc. The whole advanced course keeps unmasking parts you already trust.
⚡ Lab — Above or Below?
A comparator watching a wandering signal against your threshold.
- Slide Vref around and watch the output's duty change.
- Switch to the noisy signal with no hysteresis: chatter at every crossing.
- Engage the Schmitt band — the edges snap clean. Count the thresholds on the scope.