Parameters

Set the two limits and the initial output. The hysteresis width is the distance between the limits.

Try it

Move the input slowly up and down. The output only changes when the input reaches one of the limits.

Output

Changing a parameter restarts the hysteresis from the initial output.

Switching to 1 at the upper limit Switching to 0 at the lower limit Current input and output