HELPPP using LED!

Thread Starter

cityhunter

Joined Mar 8, 2013
5
How to make one led on and the other off if they started to be in off state?
and if the input is logic 1, the green led will light but if input is logic 0, the red led will lit.

Thanks!
 

gerty

Joined Aug 30, 2007
1,305
A single pole double throw switch, center off, will do what you want but it must be switched manually. More info will get you a better answer.
 

thatoneguy

Joined Feb 19, 2009
6,359
How about 2 inverters (1 IC)?

Not near schematic software at the moment, but...

Input signal to inverter #1, inverter 1 acts as a buffer/amplifier.
Output of inverter 1 to LED, current limiting resistor, then ground. (On when input is low).
Output of inverter 1 to Input of Inverter 2.
Output of Inverter 2 to LED, current limiting resistor, then ground (On when input is High).
 

tshuck

Joined Oct 18, 2012
3,534
How about 2 inverters (1 IC)?

Not near schematic software at the moment, but...

Input signal to inverter #1, inverter 1 acts as a buffer/amplifier.
Output of inverter 1 to LED, current limiting resistor, then ground. (On when input is low).
Output of inverter 1 to Input of Inverter 2.
Output of Inverter 2 to LED, current limiting resistor, then ground (On when input is High).
How about 1 inverter? Or none, depending on what the input is capable of?

Input to the inverter, the output is connected to Vdd through a resistor and the red LED, and connected to ground through a resistor and the green LED.
 

Attachments

Top