Single switch circuit to turn on/off an LED

ledswitches

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

Best Answer

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?