Analog Circuits

Schmitt Trigger Explained: How Hysteresis Cleans Up Noisy Signals

How a Schmitt trigger uses two thresholds and hysteresis to clean up noisy signals, with op-amp formulas, a worked example and practical uses.

On this page
  1. Short answer
  2. Why a plain comparator chatters
  3. Hysteresis: two thresholds
  4. Op-amp Schmitt trigger with worked numbers
  5. Ready-made Schmitt inputs (74HC14)
  6. Uses: cleaning slow edges, debouncing (with a caveat), oscillators
  7. Tips

Short answer

A Schmitt trigger is a comparator with hysteresis. It uses positive feedback to set two switching thresholds, one for a rising input and one for a falling input. Between those thresholds the output keeps its current state. This stops small wobbles or noise near a single threshold from making the output flip back and forth.

Why a plain comparator chatters

A plain comparator has one threshold. If a noisy signal wanders around that level, the output switches each time the noise crosses it. A slowly changing signal, such as a sensor ramping up, can produce a burst of rapid switching at the crossing point.

A Schmitt trigger solves this by making the rising and falling thresholds different.

Hysteresis: two thresholds

Consider an input that starts low and rises:

  • The output stays low until the input passes the upper threshold (UTP). Then the output switches high.

Now consider the same input falling from high:

  • The output stays high until the input drops below the lower threshold (LTP). Then the output switches low.

The gap between the two thresholds is the hysteresis. Noise smaller than that gap cannot change the output. The lab convention for UTP and LTP is that UTP is where the output switches from high to low as the input rises, and LTP is where it switches from low to high as the input falls. Check the convention your datasheet or course uses.

Op-amp Schmitt trigger with worked numbers

One common op-amp version applies the input to the inverting input and sends positive feedback to the non-inverting input through a divider:

  • R1 runs from the output to the non-inverting input.
  • R2 runs from the non-inverting input to ground.

With the output swinging between +Vsat and −Vsat, the thresholds are approximately:

  • UTP = +Vsat × R2 / (R1 + R2)
  • LTP = −Vsat × R2 / (R1 + R2)
  • Hysteresis width = UTP − LTP = 2 × Vsat × R2 / (R1 + R2)

Worked example. Take R1 = 100 kΩ, R2 = 10 kΩ and Vsat = ±10 V. Then R2 / (R1 + R2) = 1/11, so:

  • UTP ≈ +0.91 V
  • LTP ≈ −0.91 V
  • Hysteresis ≈ 1.8 V

Real op amps do not reach the supply rails exactly, so use the actual output swing from your datasheet for more accurate numbers. Thresholds with a reference other than 0 V shift by that reference.

Ready-made Schmitt inputs (74HC14)

Logic families include Schmitt-trigger inputs. The 74HC14 is a hex inverting Schmitt trigger: six inverters, each with hysteresis. It is a convenient way to clean up a slow or noisy digital-level signal without building the op-amp version. Check the datasheet for the threshold levels at your supply voltage.

Uses: cleaning slow edges, debouncing (with a caveat), oscillators

  • Cleaning slow or noisy edges. A sine wave or a slow ramp goes in, and a crisp square wave comes out.
  • Switch debouncing. A mechanical switch bounces for a few milliseconds when pressed. A Schmitt trigger combined with a small RC filter can reduce the bounce. It does not replace a proper debounce design for every switch, so check the timing for your switch.
  • Oscillators. A Schmitt trigger with a resistor and capacitor forms a simple relaxation oscillator. The capacitor charges and discharges between the two thresholds, which sets the frequency. The 555 timer article uses a similar two-threshold idea.

Tips

  • Choose the resistor ratio first, then check the thresholds with the actual output swing.
  • Add a bypass capacitor across the supply pins of the op amp or logic chip.
  • For a steadier output, keep the feedback resistors reasonably low in value, so the feedback is not affected by input bias current.
  • Test with a slow ramp and a noise source. On a scope, you should see the output change only when the input crosses the right threshold.
  • For background on the comparator itself, see op amp comparator circuits.

The complete guide to analog circuits

Amplifier and Signal Circuits: Feedback Amplifier Types Explained
Read the guide

Keep exploring

Guides from other topics

All topics →