Skip to Content
Circuitera

LM393 dual voltage comparator

Wire the LM393’s open-collector outputs and add hysteresis when a slow sensor signal crosses a noisy threshold.

LM393 dual voltage comparator photograph
DOV-1X - National Semiconductor LM393N on printed circuit board-9800.jpg by Raimond Spekking · CC BY-SA 4.0. Resized and encoded as WebP without cropping.

What the output does

The LM393 compares two input voltages. Its open-collector transistor can pull the output down; an external pull-up establishes the released high level.

Source: Texas Instruments

Threshold circuit

Connect a reference to one input and the conditioned sensor signal to the other. Check the common-mode range even if both voltages are within the power rails. The pull-up resistance affects rise time and sink current.

Source: Texas Instruments

Preventing chatter

Small amounts of positive feedback can create distinct rising and falling thresholds. This can keep a slowly changing signal from repeatedly toggling the output when noise nudges it across a single threshold.

Source: Texas Instruments

Specifications

ParameterValue or conditionSource
ComparatorsTwo independent devicesTexas Instruments
Output topologyOpen collector with external pull-up required for a defined highTexas Instruments

Compatibility and practice

Use an output pull-up and check input common-mode range at both pins.

Sources and datasheets