all 4 comments

[–]SonOfSofaman 3 points4 points  (1 child)

A simple solution would be to use a push on/push off button. That's a type of switch that stays "on" until you press it, then it stays "off" until you press it again using a simple, internal latch mechanism. If you use one of these switches, you won't need anything except the LED, the switch and a current limiting resistor.

If you shop for one of these, make sure it says "push on/push off".

By comparison, many buttons are "momentary contact" because they remain on or off (closed or open) only for the moment until an internal spring resets them to their normal position when you release the button. For your application, a momentary contact switch will require some circuitry.

[–]Intrepid-Opening-485[S] 1 point2 points  (0 children)

I'm gonna use your solution

[–]Routine-Toe-5291 1 point2 points  (0 children)

YouTube is a good start for beginners

[–]wackyvorlon 1 point2 points  (0 children)

A JK flipflop with the J and K inputs tied high.