Design inverting Schmitt triggers with precision. Compute upper threshold VUT (switching high→low), lower threshold VLT (low→high), hysteresis width, and midpoint. Visualize the transfer characteristic on an interactive graph. Essential for noise‑immune comparator design, signal conditioning, and debouncing.
A hysteresis comparator (Schmitt trigger) uses positive feedback to create two distinct threshold voltages: an upper threshold VUT and a lower threshold VLT. In the inverting topology (input at the inverting terminal), when the input voltage rises above VUT, the output switches from high to low. When the input falls below VLT, the output returns from low to high. This eliminates oscillations and provides noise immunity – critical for real‑world environments with noisy signals or slowly varying inputs.
For an inverting Schmitt trigger (input at inverting terminal):
VUT = VREF · \frac{R_2}{R_1+R_2} + VOH · \frac{R_1}{R_1+R_2}
VLT = VREF · \frac{R_2}{R_1+R_2} + VOL · \frac{R_1}{R_1+R_2}
Hysteresis width ΔV = (VOH – VOL) · \frac{R_1}{R_1+R_2}
Midpoint Vcenter = (VUT + VLT)/2
The equations are derived by applying superposition at the non‑inverting input. The voltage at the non‑inverting pin is set by VREF and the output through the resistive divider R1–R2: V+ = VREF·R2/(R1+R2) + Vout·R1/(R1+R2). The comparator switches when the input voltage at the inverting terminal equals V+. Solving for the input voltage that causes switching yields the formulas above. The resistor divider factor for VREF is β = R2/(R1+R2). The hysteresis width increases with larger R1/R2 ratio, providing excellent noise rejection.
Otto H. Schmitt invented the circuit in 1934, and today hysteresis comparators are essential in sensor interfaces, zero‑crossing detectors, battery management systems, and switch debouncing.
| Application | VOH/VOL | VREF | R1, R2 | VUT / VLT | Hysteresis Width |
|---|---|---|---|---|---|
| 5V logic noise filter | 5V / 0V | 2.5V | 10k, 10k | 3.750V / 1.250V | 2.500V |
| 3.3V sensor interface | 3.3V / 0V | 1.65V | 10k, 10k | 2.475V / 0.825V | 1.650V |
| Narrow hysteresis (precision) | 5V / 0V | 1.8V | 2.2k, 100k | 1.869V / 1.761V | 0.108V |
| Wide hysteresis (large noise) | 5V / 0V | 2.5V | 47k, 10k | 4.561V / 0.439V | 4.122V |
| Bipolar comparator | +5V / -5V | 0V | 10k, 10k | 2.5V / -2.5V | 5.0V |
An audio peak detector requires clean switching without chatter. Using a comparator with hysteresis (VREF=1.5V, VOH=5V, VOL=0V, R1=22k, R2=10k): VUT = 1.5·(10/32) + 5·(22/32) ≈ 0.469 + 3.437 = 3.906V, VLT = 0.469 + 0 = 0.469V, ΔV = 5·(22/32) ≈ 3.437V. The calculator quickly optimizes thresholds; the interactive graph helps engineers verify the safety margin before PCB layout.
The ratio R1/(R1+R2) directly controls the hysteresis width: ΔV = (VOH – VOL)·(R1/(R1+R2)). For proper operation, VREF should be chosen between VOH and VOL (or the thresholds will be inverted). Typical resistor values range from 1kΩ to 1MΩ. The calculator assumes ideal comparator with infinite input impedance.