Skip to content
RFrftools.io
General

Schmitt Trigger Calculator

Calculate non-inverting Schmitt trigger threshold voltages and hysteresis band for comparator circuits with positive feedback.

Loading calculator...

Formula

VTH±=Vref±Vhyst2V_{TH\pm} = V_{ref} \pm \frac{V_{hyst}}{2}

Reference: Horowitz & Hill, "The Art of Electronics" 3rd ed.

VccSupply voltage (V)
R1Lower voltage divider resistor (kΩ)
R2Upper voltage divider resistor (kΩ)
R3Feedback resistor (kΩ)

How It Works

Schmitt trigger calculator computes threshold voltages and hysteresis width for noise-immune digital signal conditioning — essential for sensor interfacing, debouncing, and waveform shaping. Embedded engineers, digital designers, and control system engineers use this to convert noisy analog signals into clean digital transitions. Per Horowitz & Hill 'Art of Electronics' (3rd ed., p.231), a Schmitt trigger is a comparator with hysteresis, switching high at V_TH+ and low at V_TH-. The 74HC14 provides inverting Schmitt triggers with fixed hysteresis of ~0.9V at 5V supply (30% of Vcc) and ~0.5V at 3.3V supply. For adjustable hysteresis, use comparators with positive feedback resistors. Typical applications include converting sine waves to square waves, cleaning up slow edges, and eliminating switch bounce.

Worked Example

Design an op-amp-based non-inverting Schmitt trigger with Vcc = 5V, V_TH+ = 3.5V, V_TH- = 1.5V, centered at 2.5V. Hysteresis = 2V. Using LM393 open-drain comparator with 10kΩ pull-up. Resistor divider R1-R2 sets center threshold; positive feedback R3 adds hysteresis. For V_center = 2.5V: R1 = R2 = 10kΩ. Hysteresis equation: V_hyst = V_swing × R_parallel / R3 where V_swing = 5V and R_parallel = 5kΩ. R3 = 5V × 5kΩ / 2V = 12.5kΩ — select 12kΩ (E24 series). Verify: V_hyst = 5V × 5kΩ / 12kΩ = 2.08V (4% error acceptable). V_TH+ = 2.5V + 1.04V = 3.54V, V_TH- = 2.5V - 1.04V = 1.46V.

Practical Tips

  • For logic-level signals, use 74HC14 — six inverting Schmitt triggers in one package, hysteresis = 0.3×Vcc (900mV at 5V), propagation delay 15ns typical per TI datasheet
  • Calculate feedback resistor: R_fb = R_equivalent × (V_out_swing / V_hysteresis); larger R_fb produces smaller hysteresis
  • For battery-powered applications, 74LVC14 operates down to 1.65V supply with 90mV-800mV hysteresis (scalable with Vcc)

Common Mistakes

  • Using resistor ratios without accounting for comparator output impedance — open-drain outputs require pull-up resistor factored into calculations; push-pull outputs can be ignored
  • Setting hysteresis too wide for the application — excessive hysteresis delays response and may miss valid signal transitions; size hysteresis to 2-3× expected noise level
  • Ignoring temperature drift — threshold voltages drift with resistor temperature coefficients (100ppm/°C typical); use matched resistor networks for critical applications

Frequently Asked Questions

A comparator with built-in hysteresis that requires different input voltages to switch high (V_TH+) versus low (V_TH-). This creates a 'deadband' that ignores noise between thresholds. Per ON Semiconductor application note AN-848, this eliminates output oscillation when input hovers near a single threshold.
Input signals with noise or slow transitions cause comparators without hysteresis to oscillate rapidly at the threshold. A 100mVpp noise signal crossing a 2.5V threshold can cause thousands of transitions per second. With 200mV hysteresis, only one clean transition occurs per valid signal crossing.
A Schmitt trigger IS a comparator — specifically one with hysteresis. Standard comparators (LM339, LM393) have single threshold and require external positive feedback to add hysteresis. ICs labeled 'Schmitt trigger' (74HC14, 40106) have internal hysteresis requiring no external components.
V_hyst > 2× peak-to-peak noise + comparator offset + threshold drift. For 50mVpp noise with ±5mV comparator offset and ±10mV temperature drift: V_hyst > 100mV + 10mV + 20mV = 130mV. Add 50% margin: design for 200mV. Excessive hysteresis delays detection — balance noise immunity vs. response speed.

Shop Components

As an Amazon Associate we earn from qualifying purchases.

Resistor Kit (1%, E24)

Precision 1% thin-film SMD resistor assortment, 0402 package

Ceramic Capacitor Kit

MLCC ceramic capacitor assortment in 0402 package

Solderless Breadboard

Full-size breadboard for circuit prototyping

Related Calculators