Electronic comparator 2026-11-05
An electronic comparator is an electrical circuit that converts the ordering of two input electric potential differences into an output state. For the usual non-inverting convention, the output is high when and low when . Unlike a linear amplifier, an electronic comparator deliberately makes a threshold decision; its output does not report how large the input difference is. A sensor signal can therefore become a pulse marking the instant it crosses a reference.
Real threshold decisions have an input offset voltage and a finite propagation delay. The permitted input range and the output drive also matter: an open-drain output needs a pull-up resistor, whereas a push-pull output drives both states. The manufacturer’s inverting example explicitly includes the pull-up resistor and explains how input offset voltage, resistor tolerances and internal hysteresis affect the thresholds.[ref]
With a single threshold, a slowly varying input plus electrical noise can cause repeated transitions. A Schmitt trigger adds hysteresis: the threshold depends on the existing output state. For an illustrative non-inverting design, suppose the output switches high on a rise through and low on a fall through . At , either output is possible, depending on the preceding input. The interval is deliberate memory of the last state, rather than an ambiguous instantaneous comparison. Positive feedback can produce this behavior; the cited design derives the two thresholds from the feedback resistor network.[ref]
A useful bench demonstration applies a slow triangular input with a small superposed ripple and displays both input and output on an oscilloscope. Record the rising and falling switching levels separately. Repeated transitions near one level demonstrate noise sensitivity; distinct rising and falling levels demonstrate hysteresis. The time between an input crossing and the output transition measures propagation delay, a different quantity from the separation between the two thresholds.
Range-switching hysteresis uses different thresholds for changing from a more sensitive instrument range to a less sensitive one and for changing back. Within the intervening interval, the current range is retained. The selected range therefore depends on the previous state as well as the present measurement indication. This prevents small fluctuations near a single boundary from repeatedly triggering gain ranging.
A concrete electronic analogue is an electronic comparator with two switching thresholds. The primary circuit example specifies upper and lower thresholds of and and explains why one threshold can produce unwanted transitions with a noisy or slowly changing input. Those are comparator circuit values, not specifications for an autoranging measurement instrument.[ref]
For an original two-range current measurement, let denote high sensitivity and low sensitivity. Use an input-current estimate , expressed on the same calibrated scale in either range. Switch when , switch when , and otherwise keep the previous state. The hysteresis interval has width .
Starting in , the indication sequence selects . A single threshold at would instead select and switch at every step after the first. At a steady underlying with bounded readout fluctuations of , neither boundary is crossed; either previous range remains selected.
The thresholds should lie within the usable overlap established by range-overlap calibration. If the two ranges give inconsistent current estimates, a switch can itself move the indication across the opposite threshold and create a cycle. The comparison must therefore use the corrected measurand estimate, not identical raw output voltages from different gains.
Hysteresis is not temporal averaging and does not ensure that the new reading has settled. Reserve headroom for a rapidly rising input, reject readings during the required settling time, and verify that the less sensitive range still meets its noise-limited detection threshold. An input that jumps beyond the current range can cause amplifier clipping before the controller reacts, even when its two-threshold rule is correct.
Schmitt trigger 2026-11-05
A Schmitt trigger is a threshold circuit with hysteresis: its switching level depends on its current output state. An input rising through an upper threshold causes one transition, whereas an input falling through a lower threshold causes the reverse transition. Between the thresholds, the circuit retains the state reached previously. This makes a Schmitt trigger useful for turning a slowly varying or noisy signal into clean transitions, rather than repeatedly switching whenever noise crosses a single reference level.[ref]
A simple inverting implementation puts the signal on the negative input of an electronic comparator. Connect its positive input to output through a resistor and to a reference through a resistor . Neglecting comparator input current, Kirchhoff's current law gives
For ideal high and low output levels , the input switches on a rise at and on a fall at . Thus the separation of the switching thresholds is
The output feeds back so as to reinforce its new state: after a rising input makes the output low, the positive-input threshold falls too.
For illustrative values , , , and , the thresholds are and . At an input of , the output can be either high or low, depending on the preceding trajectory. These chosen numbers describe the ideal circuit above, not a particular device specification.
An oscilloscope demonstration applies a slow triangular input with a small ripple and records input and output together. Compare the rising and falling transition levels, and then reduce the threshold separation to see when the ripple produces additional transitions. In a real circuit, input offset voltage, resistor tolerances, output loading and any internal hysteresis change the thresholds. An open-drain output also requires a pull-up resistor; its load must be included in the feedback calculation.[ref]