Key Engineering Takeaways
- •A Voltage Comparator compares two input voltages (V_+ and V_-) and outputs a digital HIGH or LOW based on which is larger.
- •If Non-Inverting input (V_+) > Inverting input (V_-), Output saturates to positive power rail (HIGH).
- •If Non-Inverting input (V_+) < Inverting input (V_-), Output drops to ground / negative rail (LOW).
- •Noisy analog signals near the switching threshold cause rapid jitter/chatter; solved by adding Positive Feedback Hysteresis.
- •Dedicated comparators like the LM393 feature Open-Collector outputs requiring an external pull-up resistor, allowing safe level shifting between 3.3V and 12V systems.
- • Voltage Dividers and Analog sensor basics
- • LM393 Dual Comparator or LM358 Op-Amp
- • 10kΩ Potentiometer (Threshold)
- • LDR Photoresistor
- • 10kΩ Resistors
- • LED and Breadboard
What is a Voltage Comparator? The 1-Bit Decision Maker
Op-Amp Open-Loop Working: Inverting vs Non-Inverting Inputs
Adding Positive Feedback Hysteresis (Schmitt Trigger)
Frequently Asked Questions
Why do dedicated comparators like the LM393 have open-collector outputs?
An open-collector output uses an internal NPN transistor whose collector is left floating. This allows you to pull the output up to any voltage (e.g., 3.3V for an ESP32 or 12V for a relay), regardless of the comparator’s own supply voltage.