Skip to content
UPEEC

Comparators and Schmitt Triggers

Compare two voltages and output a clean high/low decision, with hysteresis to reject noise.

Easy
Comments 0

A comparator outputs high when V+>V−V_+ > V_- and low otherwise. Dedicated comparators (LM393, open-collector) are faster than op-amps used open-loop.

A slowly changing or noisy input causes the output to chatter around the threshold. Hysteresis, from positive feedback, creates two thresholds:

VTH−VTL≈R1R1+R2(VOH−VOL)V_{TH} - V_{TL} \approx \frac{R_1}{R_1 + R_2}(V_{OH} - V_{OL})

This Schmitt trigger switches cleanly once, then needs the input to move back past the other threshold. Uses: zero-crossing detection, battery-low alarms, cleaning up sensor and button signals.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.