I thought the diode stack was cute, but I knew someone would go to all-resistors to get higher noise immunity.
Here is a circuit from another thread that lets you alternate between two LEDs with only one open collector or open drain transistor and one current limiting resistor. For low current LEDs, the LM358 or LM324 car drive the LED cathodes directly. For higher currents, an appropriate N-channel MOSFET works well as shown.
Also, if the opamp outputs are the wrong logic polarity, you can swap the inputs to get what you need. For the amber channel it is a simple swap. For the r/g channel there are more circuit changes, but it still is doable with the same component count.
ak

Here is a circuit from another thread that lets you alternate between two LEDs with only one open collector or open drain transistor and one current limiting resistor. For low current LEDs, the LM358 or LM324 car drive the LED cathodes directly. For higher currents, an appropriate N-channel MOSFET works well as shown.
Also, if the opamp outputs are the wrong logic polarity, you can swap the inputs to get what you need. For the amber channel it is a simple swap. For the r/g channel there are more circuit changes, but it still is doable with the same component count.
ak

Attachments
-
6.4 KB Views: 0