Comparator Hysteresis (Schmitt Trigger) Calculator
Calculate comparator hysteresis trip points for Schmitt trigger circuits, upper and lower threshold voltages, and design resistor values for a desired hysteresis percentage
Formula
How It Works
Comparator hysteresis calculator computes upper and lower threshold voltages for noise-immune switching — essential for signal detection, zero-crossing circuits, and level conversion. Embedded systems engineers, sensor interface designers, and power electronics engineers use this to prevent oscillation when input signals cross the threshold slowly or with superimposed noise. Per Horowitz & Hill 'Art of Electronics' (3rd ed., p.231), hysteresis creates a deadband where the comparator ignores small input variations, requiring the input to exceed V_TH+ to switch high and drop below V_TH- to switch low. The hysteresis voltage V_hyst = V_TH+ - V_TH- should exceed peak-to-peak noise by at least 2× for reliable switching. Standard comparators (LM339, LM393) require external resistors to set hysteresis; integrated Schmitt triggers (74HC14) have fixed hysteresis of 0.4-0.9V depending on supply voltage.
Worked Example
Design a 3.3V comparator circuit with 100mV hysteresis centered at 1.65V for a battery voltage monitor using LM393. Required: V_TH+ = 1.70V, V_TH- = 1.60V, V_hyst = 100mV. Using positive feedback topology: R1 (input divider) = 10kΩ, R2 = 10kΩ establishes V_ref = 1.65V. For 100mV hysteresis with Vout swing = 3.3V: R_fb = R_parallel × (V_out / V_hyst) = 5kΩ × (3.3V / 0.1V) = 165kΩ. Select 160kΩ (E24 series). Actual hysteresis = 3.3V × 5kΩ / 160kΩ = 103mV. With 50mVpp noise on input, this provides 2× noise margin — signals crossing threshold trigger clean output transitions without chattering.
Practical Tips
- ✓For 5V systems, 74HC14 provides 0.9V hysteresis with no external components — ideal for debouncing and signal conditioning at digital logic levels
- ✓Calculate feedback resistor: R_fb = R_eq × (V_swing / V_hyst) where R_eq = R1||R2 of input divider; larger R_fb = smaller hysteresis
- ✓Open-drain comparators (LM339) require pull-up resistor; push-pull comparators (TLV3201) don't — check output type on datasheet
Common Mistakes
- ✗Setting hysteresis narrower than input noise — results in multiple output transitions (chatter) during single input crossing; hysteresis should exceed 2× peak-to-peak noise
- ✗Using op-amps as comparators — op-amps have recovery delays of 1-100μs when output saturates; dedicated comparators (LM339, LM393) recover in 100-300ns
- ✗Ignoring comparator propagation delay — LM339 has 1.3μs delay; for high-speed applications, use MAX942 (80ns) or LT1016 (10ns) per Linear Technology selection guide
Frequently Asked Questions
Shop Components
As an Amazon Associate we earn from qualifying purchases.
Related Calculators
General
Op-Amp Gain
Calculate op-amp voltage gain, gain in dB, −3 dB bandwidth, and input impedance for inverting, non-inverting, and differential amplifier configurations.
General
BJT Bias Point
Calculate BJT voltage divider bias Q-point including collector current, base voltage, VCE, power dissipation, and operating region
Power
Voltage Divider
Calculate voltage divider output voltage, current, Thévenin impedance, and power dissipation from Vin, R1, and R2. Ideal for bias networks and level shifting.
General
Ohm's Law
Calculate voltage, current, resistance, and power using Ohm's Law. Enter any two values to solve for the remaining two quantities.