I am trying out a set of LM393 comparators as part of a switch mode power supply.
As a benchmark test for these comparators, I wired them to compare two potentiometers.
The idea was that if the left potentiometer (as pictured below) was set to a higher voltage than the right potentiometer, the output LED would turn off.
When the right potentiometer was higher than the left, the LED would trun on.
However, when I power the circuit, the LED stays off even when the left potentiometer is set to less than the right.
Here is the picture for the curcuit (the resistor shown is 220 ohms for the LED):
Its not obvious, which is why datasheets are there (hint: learn to read them!). Most comparators are open-collector, and the reason is probably so that they can work with a variety of supply voltages.