Teaching guide for the module

Op-Amp: Teacher's Guide

A guide to using the Op-Amp simulator in the classroom to teach the operational amplifier in inverting and non-inverting configuration, the ideal comparator, and the comparator with hysteresis (Schmitt trigger). Virtual short and saturation shown as observable facts, not formulas. Designed for technical high school teachers (years 4–5, Electronics/Systems).

Module: Op-Amp · Two instrument tabs: AMP (inv/non-inv) · COMPARATOR (ideal & Schmitt)


Physics behind it

An operational amplifier is an active component with three signal pins (+, , Vout) and two supply pins (±Vcc). In its ideal model it has infinite differential gain, infinite input impedance and zero output impedance. Its usefulness emerges from feedback: connecting the output back to the inverting input via a resistor network produces an amplifier with finite, predictable gain, depending only on resistor ratios.

The fundamental principle is the virtual short: in the linear region, the op-amp adjusts its output so that . There is no physical connection between the two inputs — the feedback enforces equality. When the op-amp can no longer maintain it (because the required gain would push past ), it enters saturation: the output clamps at the supply rails (in practice for non-rail-to-rail op-amps like the µA741) and deviates from .

Without feedback (or with positive feedback), the op-amp becomes a comparator: the output is always saturated, high or low depending on the sign of . Adding a small fraction of positive feedback yields the comparator with hysteresis (Schmitt trigger), where the switching thresholds and are distinct: the output flips low when exceeds and flips high when it drops below . This gap makes the comparator immune to noise.


Key concepts

  • Virtual short: in linear region with negative feedback, . A consequence of infinite gain, not a physical wire.
  • Inverting gain: . Negative sign means the signal is inverted.
  • Non-inverting gain: . Always positive, always .
  • Voltage follower: special case with , so . Used as an impedance buffer.
  • Saturation: clamped at , with (non-rail-to-rail).
  • Ideal comparator: without feedback, is or based on the sign of .
  • Schmitt thresholds: (inverting topology). The gap is the hysteresis width.

How to use it in class

Opening: the virtual short as a fact. Open the AMP tab in Inverting mode with default values (, , , ). Show the schematic: is grounded so it is , and is also — but not because it is wired to ground! The feedback drives to precisely to force . Move and watch stay locked at while tracks: this is the virtual short seen as a fact.

Build-up: saturation. Still in Inverting, raise above . The operating point in TRANSFER stops at the knee: refuses to go below . The schematic reacts: a "SATURATION" badge appears, turns amber. The feedback has "broken" — and are no longer equal. In the SCOPE, applying a sinusoid larger than the threshold reveals output clipped flat at the rails.

Deepening: the voltage follower. Switch to Non-Inverting. Bring to : the gain drops to , the output exactly tracks the input. This is the voltage follower — a high-impedance buffer, essential to drive loads without loading the source.

Heart of the lesson: comparator and hysteresis. Switch to the COMPARATOR tab, Inverting, Hysteresis OFF, Triangle source, , . The scope shows a clean triangular input and a clean square wave output: the output flips precisely when crosses . The TRANSFER shows a vertical step.

Now raise the Noise slider to . Without hysteresis, the output begins to chatter on the threshold: noise multiplied by infinite gain produces dozens of unwanted fast transitions around the zero crossing. This is the didactic problem that precedes the solution.

Toggle Hysteresis ON. The schematic changes: and appear, the positive feedback resistors. On the scope, the two thresholds and separate, and the chatter disappears: noise is no longer enough to bring back across the return threshold. The TRANSFER forms the classic hysteresis rectangle. The teacher can say: "this is why real-world sensors use Schmitt triggers".

Closing: sizing the network. Vary and : the ratio controls the hysteresis width. More expected noise calls for wider gaps.


Real-world examples

  • Audio pre-amplifiers. Non-inverting with adjustable gain via potentiometer on .
  • Mixers and attenuators. Inverting with multiple in parallel, one per channel.
  • High-impedance sensor buffers. Voltage follower for thermistors, photodiodes, condenser microphones.
  • Threshold detectors. Comparator with hysteresis in thermostats, level sensors, PIR motion detectors.
  • Square-wave generators. Schmitt trigger as bistable element in relaxation oscillators.
  • Clock cleanup. Schmitt at the input of logic gates to clean up noisy signals before the active edge.

Discussion questions

  1. Why does the virtual short "work" if there is no physical wire between the two inputs?
  2. What happens to in saturation, and why does it no longer equal ?
  3. In an inverting amplifier with , what gain do we get? And in the non-inverting with the same values?
  4. Why is a comparator without hysteresis unsuitable for noisy signals?
  5. In a Schmitt trigger, what changes if we double keeping fixed? And if we halve it?

Related modules

  • Ohm's Law: the feedback network is a resistor network — calculating uses voltage dividers and KCL.
  • Filters: combining op-amps with capacitors yields active filters (Sallen-Key, Multiple Feedback).
  • Logic Gates: the Schmitt trigger is the bridge between the analog world and a digital input.

Ready to try it in your classroom?

Open the simulator →

No download. Works in the browser.