I have a question about how to control 2 LED's with only 1 ground output from a Micro.
I need the ability to turn 1 LED off while I turn on the second LED with the ground output from the Mirco.
Its like a basic blinker circuit, neither LED can be on at the same time.
The output from the control device is Ground with 250mA.
I'm only going for a two stage, where one LED is on at a time.
The supply voltage is 12v to the LED's, which will be on all the time.
One lamp will be on during normal state.
Then when the micro detects a signal it will turn that lamp off and turn the other one on.
I was trying to think of a way to do this, by tying the output to the ground of on lamp and to the 12v side of the other lamp.
Then when the micro output went to ground it would pull the 12v to ground on one lamp and turn off and the other would turn on since it had a ground signal.
I was thinking in terms of a few resistors and diodes might work for protection between the two circuits.
Here is my entry into the two LED derby: As long as you use LEDs with different Vf , this circuit relies on having the one with the higher Vf in the D1 position. When the logic pin is low, D2 shunts the current away from D1.
Is the transistor B-E junction supposed to be acting as a zener? If so, that makes a little more sense, but the breakdown voltage of a B-E junction is not specified or controlled by the manufacturer.