EveryCircuit
Powering up...
Circuit
Public
Private
Unlisted
Save

Switching 2 LEDs with only 1 controller output

@Nig
12 years ago
https://everycircuit.com/circuit/5456033690419200
The left side simulates a microcontroller output. Sometimes there is only one controller pin left, but you need two pins for e. g. two LEDs. In this case you can use this trick. You can switch the output pin between high (+3.3V), low (0V) and tristate (high impedance). Now you can switch on the red or the green light. If you change between high and low quite fast, you can even switch both LEDs on. And now a question for our experts: Why don't the LEDs light, if the right switch is open (tristate)?
Comments
Post