I need a circuit in which a green LED will turn on only when the voltage is in between 1V - 3V. The voltage may change within the range of 0V - 5V. Can anyone help me with this task?
Last edited:
DO YOU KNOW VOLTAGE DIVIER?How would the circuit scheme look like if you used a comparator?
Yes, but I don't know how to ensure that there is a minimum of 1V and a max of 3V in the system. I don't know how to make sure that the LED works only in that area.
There is a random amount of voltage always flowing between 0V and 5V
Are you sure about this?Yes that is a comparator but you need a window comparator
![]()
The voltages at the top and bottom of R3 define the window. In the example above, the LED is on when the In is above the voltage at the bottom of R3 but below the voltage at the top of R3.
For your case run the thing from the 5 volt power supply.
Is that enough for you to get started?
Ah! And I knew this, too. But simply forgot. Apologies to Dick.It is not clear what the supply rails are for the LM339, but it might interest some to know that the output is open collector.
by Robert Keim
by Jake Hertz
by Jake Hertz