Teach Your Kid Electronics

Beginner · Project 3

Push-Button Light

Add a push button to your LED circuit so the light only comes on while you press it.

Build this only with an adult present. Before you start, read our safety notice and disclaimer.

Beginner⏱ About 15 min

🧰 What you need

  • 1×Half-size breadboardA board full of little holes with metal clips inside, so you can build circuits without soldering.
  • 1×3×AA battery holder with wire leadsHolds three AA batteries in a row and gives you a red (+) and black (−) wire.
  • 3×AA batteryA regular household battery. Each one gives 1.5 volts.
  • 1×220 Ω resistor — red, red, brown, goldOur go-to LED resistor. Colors: red, red, brown, gold.
  • 1×5 mm LED (any color) — any color worksA tiny light that only lets current flow one way. The long leg is +.
  • 1×Push button (tactile switch)A little button with 4 legs. It connects its two sides only while you press it.
  • 3×Jumper wire — red, blue and black if you have themA short wire with stiff ends that push into the breadboard.

✨ The finished project

A push button controlling an LED: battery, 220 ohm resistor, LED and push button in one loop ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 220 Ω +− AAAAAA3 × AA = 4.5 V+−
A push button controlling an LED: battery, 220 ohm resistor, LED and push button in one loop ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 220 Ω +− AAAAAA3 × AA = 4.5 V+−
Schematic: A push button controlling an LED: battery, 220 ohm resistor, LED and push button in one loop R1 220 Ω D1 LED S1 button + 4.5 V current
The finished build. This picture is generated from the circuit itself and checked by computer, so every leg is in the right hole.

🔣 New schematic symbols

This project’s schematic has some symbols you haven’t seen before. Here’s what they mean.

  • Push button

    A gap in the wire with a bar above it. Pressing the button pushes the bar down onto the two dots and closes the gap. Let go and the gap opens again.

Your LED from the last project stays on until you pull the batteries out. Real gadgets have switches: a doorbell, a flashlight, the buttons on a game controller. In this project you’ll add a push button, so the LED only lights while you’re pressing it.

What does a switch do?

Remember: electricity only flows around a complete loop. A switch is a little gate in the loop.

  • Switch open (not pressed): there’s a gap in the loop, so no current flows and the LED is off.
  • Switch closed (pressed): the gap is bridged, the loop is complete, and the LED is on.

That’s it! Every switch in the world, from the light switch on your wall to the keys on a keyboard, just opens and closes a loop.

Meet the push button

Your push button has 4 legs, but it only does one simple job. Inside, the legs are joined in pairs:

  • The two legs on one side are always connected to each other.
  • The two legs on the other side are always connected to each other.
  • When you press the button, a little metal disc joins the two sides together. Let go and a spring pops them apart again.

The button sits across the middle gap of the breadboard, with two legs in row e and two legs in row f. The always-connected pairs go across the gap, which means pressing the button joins column 17 to column 19.

Build it

This is the circuit from Light Up an LED with a button added in the path back to the battery. Like before, we connect the battery last.

  1. Red wire: connect T+10 (top red + rail, column 10) to a10.

  2. Resistor (220 Ω): one leg in b10, the other in b14.

  3. LED: long leg in e14 (the resistor’s column) and short leg in e15.

  4. Push button: press it gently into the board across the middle gap, with its legs in e17, f17, e19 and f19.

  5. Blue wire: connect a15 (the LED’s short-leg column) to a17 (the button’s first side).

  6. Black wire: connect a19 (the button’s other side) to T-19 (top blue − rail, column 19).

  7. Power: put 3 AA batteries in the holder. Push the red battery wire into T+1 (top red + rail, column 1) and the black one into T-2 (top blue − rail, column 2). The LED should stay off. Now press the button, and it lights up! 🎉

Follow the loop

Battery + → red wire → resistor → LED → blue wire → button → black wire → battery −.

When the button is up, the loop has a gap between column 17 and column 19, so nothing flows. Press it and the gap closes. Flip to the Schematic view of the diagram above: the button is drawn as a little bridge that gets pushed down onto the wire.

Not working?

  • LED is always on, even without pressing? The button is turned the wrong way, so its always-connected legs are joining columns 17 and 19 by themselves. Pull it out, turn it a quarter turn, and push it back in across the gap.
  • Never lights up? First check the LED’s long leg is in e14. Then check the blue and black wires land in the button’s columns (17 and 19), and that the button really is across the middle gap.
  • Still nothing? Take the button out and put a jumper wire from a17 to a19 instead. If the LED lights, the rest of your circuit is fine and it’s the button’s placement.

Try it!