Pushbuttons are useful components for controlling circuits, collecting input, detecting bumps, and more. Maybe you’ve pulled one out of an old electrical device or even bought some, and are wondering how to use a pushbutton. The four legs can be confusing at first, as can other things. Check out this post to find out how to use it!
Now let’s get straight to the point. The most complicated part is that there are four legs. As in the picture below, the legs on the top and bottom of the pushbutton are connected together.
To hook it up to a circuit, connect one wire from the battery pack to one leg of an LED or other actuator (buzzer, motor, etc.) Connect the other leg of the LED or actuator to one of the top legs of the pushbutton, as in the diagram. Last of all, connect the other leg of the pushbutton to the other battery pack wire.
The LED should turn on when you push the button. If it doesn’t work, try switching the LED’s legs around.
That’s all! Thanks for reading, and have fun!