I have very basic knowledge of electronics.

I am looking for a circuit which can turn ON/OFF an LED from a single switch.

  • If the LED is OFF and the switch is pressed (even if not released) then the LED should turn ON.

  • If the LED is ON and the switch is pressed (even if not released) then the LED should turn OFF.

A switch can be a push to ON switch but turns OFF when released. It is not like a toggle switch.

Thanks in advance

  • \$\begingroup\$ What parts are available to you? Would a D-Flip Flop work? \$\endgroup\$ – Tyler Oct 21 '15 at 2:29
  • \$\begingroup\$ Hi Tyler, I have 555 timer IC but can get other items as well. Just need a really simple solution to achieve this. \$\endgroup\$ – Amit Kumar Oct 21 '15 at 2:34
  • 1
    \$\begingroup\$ Your solution is right here. It's called a "Soft Latching" power switch. Check it out \$\endgroup\$ – ezra_vdj Oct 21 '15 at 4:12
  • \$\begingroup\$ @ezra_vdj If the button is not released then the circuit will oscillate; the LED will flash. \$\endgroup\$ – CharlieHanson Oct 21 '15 at 11:35
  • \$\begingroup\$ @CharlieHanson If it's good enough for Dave Jones I'd say it's good enough. All depends on project, cost, who's using it etc though, you feel? \$\endgroup\$ – ezra_vdj Oct 21 '15 at 11:41

This one is fairly simple: -

enter image description here

Each time you press the button, the output latches in the opposite sense to what it previously was. Lots of good ideas.

Picture stolen from this stack exchange question: Make a Latching Relay using SPDT Relays

Is this question all but identical?

| improve this answer | |
  • \$\begingroup\$ Thanks Andy. The circuit looks OK but will not fit my project as I have to manage multiple LEDs. May be 10 or something. Do you have any suggestion? \$\endgroup\$ – Amit Kumar Oct 21 '15 at 23:34
  • \$\begingroup\$ Here is my exact requirement. electronics.stackexchange.com/questions/196598/… \$\endgroup\$ – Amit Kumar Oct 22 '15 at 0:09
  • \$\begingroup\$ I have answered this question for a single channel. Just step and repeat for multiple channels. I don't see the problem unless, of course, you have changed your mind about what you want. \$\endgroup\$ – Andy aka Oct 22 '15 at 9:21
  • \$\begingroup\$ I haven't changed my mind. I was looking for a circuit with less number of components. However, your answer seems to be more accurate than others. Thanks for your help. \$\endgroup\$ – Amit Kumar Oct 22 '15 at 23:26

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.