Using DPDT Switch To Control All Three Colors Of An RGB LED

eblc1388

Joined Nov 28, 2008
1,542
When the switch is up ("auto" for my project), I would like to light the blue LED.

When the switch is in the center position ("off" for my project), I would like to light the red LED.

When the switch is down ("manual on" for my project), I would like to light the green LED.
This reminded me of a similar setup I have done years ago, where there are only RED, GREEN and bi-color R/G LED for sale. I have chosen to use a bi-color LED in my setup but I did it with a twist.

I use the bi-color LED to give two brightness levels.

When the toggle switch is in 'center-off' position, the control signal does not reach the relay and LED just indicate the MCU output logic in low brightness.

When the toggle switch is in AUTO or MANUAL_ON(TEST), LED indicates relay state at full brightness.

In all modes, LED will be off if link to remote relay is broken or relay coil failed open.

I have already forgotten how I did that. :eek:
 
Top