Shop by category
Shop all componentsAnalog circuits
Inverting connection: the output goes low when the input rises above the upper threshold and returns high when it falls below the lower threshold. Use a rail-to-rail op-amp or a comparator with a pull-up resistor.
V upper = (Vref × R2 + V high × R1) ÷ (R1 + R2)V lower = (Vref × R2 + V low × R1) ÷ (R1 + R2)Hysteresis = (V high − V low) × R1 ÷ (R1 + R2)5 V output swing, 2.5 V reference, R1 = 10 kΩ, R2 = 100 kΩ: thresholds are 2.73 V and 2.27 V, a hysteresis of 0.45 V. Noise smaller than that cannot make the output chatter.
A plain comparator flickers when a slow or noisy signal hovers near its threshold. A Schmitt trigger adds positive feedback so that the threshold moves slightly each time the output changes, giving two thresholds and a dead band in between.
It is the standard way to clean up slow sensor signals such as light levels, thermistor readings and push-button edges. The LM393 comparator has an open-collector output, so add a pull-up resistor to the output supply.
The gap between the turn-on and turn-off thresholds. It stops the output flickering when a slow or noisy input sits near one threshold.
For slow signals like LDRs, thermistors or buttons, or long noisy wires feeding a digital input.
Increase the feedback resistor ratio R1 ÷ (R1 + R2) in the calculator.
V upper = (Vref × R2 + V high × R1) ÷ (R1 + R2); V lower = (Vref × R2 + V low × R1) ÷ (R1 + R2); Hysteresis = (V high − V low) × R1 ÷ (R1 + R2).
5 V output swing, 2.5 V reference, R1 = 10 kΩ, R2 = 100 kΩ: thresholds are 2.73 V and 2.27 V, a hysteresis of 0.45 V. Noise smaller than that cannot make the output chatter.
Geekobot builds that use it include Dark detector with an LM358 comparator and LM358 comparator with two knobs. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators