0
\$\begingroup\$

How can I control 2 LEDs?

Requirement is:

  • Position 1: LED1 is ON
  • Position 2: LED2 is ON
  • Position 3: LED1 and LED2 both ON

Preferably using only 1 switch (not the DPDT ON-ON-ON switch).

\$\endgroup\$
4
  • 3
    \$\begingroup\$ So which kind of switch is acceptable, and how much circuitry you allow between switch and LEDs? What kind of LEDs you mean? \$\endgroup\$
    – Justme
    Commented Aug 20, 2023 at 12:49
  • \$\begingroup\$ Just to add: what voltage source(s) is available? \$\endgroup\$ Commented Aug 20, 2023 at 12:53
  • \$\begingroup\$ Please edit your post to include a datasheet link for the switch you have in mind. \$\endgroup\$
    – Transistor
    Commented Aug 20, 2023 at 12:56
  • \$\begingroup\$ (ON-ON-ON switch speciality shop?) \$\endgroup\$
    – greybeard
    Commented Aug 20, 2023 at 22:50

4 Answers 4

5
\$\begingroup\$

A single-pole, 3-position rotary switch may be used.

enter image description here

\$\endgroup\$
2
\$\begingroup\$

here's one way: use the switch to bypass the LEDs.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
1
2
\$\begingroup\$

Here is a way to do it with diodes and an on-off-on toggle switch with the center position 'off' and dedicated to D2 on.

Both D5 and D6 are optional but help even out the brightness. D6 helps match the brightness of D1 and D2 if they are both the same type and the resistors are the same. D5 helps match the brightness of the two situations in which D1 is 'on'.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
1
\$\begingroup\$

A slightly different approach:

schematic

simulate this circuit – Schematic created using CircuitLab

Another idea uses logic gates. I might show that as well, if I can design it. This would be best done with a PLD or a microcontroller.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.