-1
\$\begingroup\$

I want to build a circuit with multi AND logic which may trigger different LED by different combination of switch

Here is my thought:

schematic

simulate this circuit – Schematic created using CircuitLab

So when I press 1,2,4 it will trigger one LED and 1,3,4 for another
But I don't know how to achieve this since it might trigger both LED with those combination

So how can I have different switch combination to trigger different LED but with same switches?

\$\endgroup\$
  • \$\begingroup\$ Press sw2 and sw5 means both lights on, 3 and 4 no function \$\endgroup\$ – Solar Mike Aug 8 '17 at 10:50
  • \$\begingroup\$ You press 1,2,4 ... Where is 1? \$\endgroup\$ – Bart Aug 8 '17 at 10:58
  • \$\begingroup\$ Oops sorry plus one to all the numbers to match the switch \$\endgroup\$ – Andrew Young Aug 8 '17 at 11:01
  • \$\begingroup\$ The polarity of your battery is reversed. If it is not a typo, when you apply the voltage to the LEDs you could fry them. Most common LEDs have a max reverse voltage of about 6V~8V. \$\endgroup\$ – Lorenzo Donati supports Monica Aug 8 '17 at 11:36
  • 3
    \$\begingroup\$ You should edit the question, not fix it in the comments. \$\endgroup\$ – Bart Aug 8 '17 at 11:50
2
\$\begingroup\$

So when I press 1,2,4 it will trigger one LED and 1,3,4 for another

This circuit should do it:

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
  • \$\begingroup\$ How about if I also want to achieve 1,2,3? \$\endgroup\$ – Andrew Young Aug 8 '17 at 11:02
  • 2
    \$\begingroup\$ @AndrewYoung that is different question. Here I gave you answer to original question. It is unclear what you want to achieve. I would use microcontroller for more complex combinations. \$\endgroup\$ – Chupacabras Aug 8 '17 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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