Other Parts Discussed in Thread: LM393
Hi Jian
I'm using the alternative part LM393 and I'm having a similar problem with the switching functionality.
even when the VIN is less by 300mV than Vref the comparator is switching output state.
Here is the case:
Vref (Pin 3) is set to 2.530v
Vin (Pin 2) is switching the output to LOW as soon as its 2.324v which is 200mV less than what Vref is set to.
The comparator is supplied by 3.3v
the reference voltage is generated through a simple voltage divider circuit.
Any idea why this is happening?