Comparator Simulator

Analyze op-amp comparator behavior with hysteresis

Configuration

Parameters

Input Peak (Vin)4.00 V
Reference (Vref)2.50 V
Hysteresis Width (VH)0.50 V

Output Thresholds

High Threshold

2.750 V

Low Threshold

2.250 V

Waveform Oscilloscope

Input (Vin) Output (Vout) Thresholds
5.0V2.5V0.0V

How Hysteresis Prevents Switching Noise

When a comparator has zero hysteresis, input signals carrying even millivolts of noise will cause the output to swing rapidly back and forth between High and Low as the signal crosses the reference voltage. This causes chattering and can damage logic gates or relay contacts downstream.

Hysteresis addresses this by introducing two separate switching points: the High threshold and the Low threshold. The output will only switch High once the input goes above the High threshold, and will not toggle Low again until the input falls completely below the Low threshold.