Electronic components: Buttons

By

An introduction to push buttons in electronics: how they close a circuit only while pressed, how to place one across a breadboard, and light a LED with it.

~~~

One useful component in our circuits is a button, also called a push button or tactile button.

It connects two parts of a circuit when the button is pressed. As soon as the button is released, the circuit is open and the current can’t circulate.

This makes it different from a switch. A switch keeps its state after you let it go. A button is momentary: it only conducts while your finger holds it down. That’s what you want for things like “turn on the LED while I press”, or later, for sending input to an Arduino.

Here’s a typical button:

Black tactile push button component with four metal pins on wooden surface

Close-up view of black tactile push button showing the square body and pin arrangement

How are the pins connected?

The button has 4 pins, but electrically there are only 2 sets of connections that can be closed at the same time. The connections are on the pins that are curved in the same way:

Push button with blue arrows indicating the two pairs of connected pins on opposite corners

Pins in the same pair conduct all the time, pressed or not. They’re internally joined. Pressing the button is what connects one pair to the other.

If you’re not sure which pins belong together, set a multimeter to continuity mode and touch two pins. If it beeps without pressing the button, those two pins are on the same pair.

Placing the button on a breadboard

There’s one way to use this component in a breadboard, and it’s to put it in the middle:

Push button placed correctly across the center divider of a white breadboard

and there’s just one way to add it, you can’t go wrong. The pin spacing only fits across the center gap:

Push button inserted into breadboard straddling the center gap between the two sides

Side view of push button properly seated across the breadboard center divider

Then you can create a connection between 2 rows in the same part of the breadboard, like this:

Complete circuit on breadboard with push button, red LED, resistor, and red jumper wires

Overhead view of breadboard circuit showing button, LED, resistor connected with red jumper wires

In the above circuit, the LED will turn on only when the button is pressed:

Breadboard circuit with glowing red LED showing the button is pressed and completing the circuit

A common mistake

If you skip the breadboard and solder or clip wires directly to the pins, it’s easy to pick two pins that are already connected. The circuit is then always closed, and the LED stays on no matter what you do with the button.

The fix is the continuity test above: pick two pins that only conduct while the button is pressed.

On the breadboard, straddling the center gap avoids the problem entirely, because the gap forces the two sides of the circuit onto different pairs. That’s why we place the button there.

Tagged: Arduino · All topics
~~~

Related posts about electronics: