# Schmitt Trigger

Here’s another simple, common, and powerful circuit. The Schmitt trigger, named after its inventor (Otto H. Schmitt), is a system with one output and one input that uses positive feedback. We implemented our Schmitt trigger with an op amp and two resistors, but numerous other implementations exist.

## Behavior

Let’s find out how the Schmitt trigger behaves by analyzing it with the 3-state-based ideal op amp model. Recall the regions:

- Region 1: in which
- Region 2: in which
- Region 3:

And note from the circuit diagram that and .

#### Region 1:

In this region, . The circuit enforces , so

.

Plugging this back into the region 1 boundary conditions, we find that region 1 holds if

.

#### Region 2:

Following the identical procedure for region 1 we arrive at the boundary conditions

.

#### Region 3:

Plugging in and :

## Input/Output Plot

The plot above shows how these conditions manifest when . Our input/output curve is no longer a function! For a given , there could be up to three values of .

How do we know which value will take? The current value of will depend on its past value. Say starts at . As decreases, it passes , at which point there are three possible values of – three possible equilibrium states of the circuit. But the circuit is stable at its current equilibrium, and has no reason to change the output. So the output remains at until passes . At this point, there is only one possible value of – .

The vertical lines on the plot show where the output voltages will transition from low to high or high to low, with the arrows indicating the direction. The area between the lines is called the *hysteresis band*, as the value of in this band is determined by its value before entered the band. The value of changes the width of the hysteresis band – a larger will make it wider and a smaller will make it thinner. At , this circuit essentially becomes an inverting comparator with the non-inverting input tied to Ground.

This explanation doesn’t cover the case where and both start at . Following our earlier reasoning, it might make sense to think that if the circuit starts in equilibrium 3, it will stay there for as long as it can (as long as is in the hysteresis band). However, because of the positive feedback, equilibrium 3 is *unstable*. Any noise that disturbs the inputs of the op amp will cause to diverge, bringing the circuit to either equilibrium 1 or 2. In the real world, there will always be some noise, so equilibrium 3 is never seen in practice. In many Schmitt trigger input/output curves, this diagonal line is not even drawn (but it does exist, and it will show up in simulations!).