Teach Your Kid Electronics

Beginner · Project 9

Glow That Fades

Use a capacitor, a tiny electric bucket, to make an LED fade out slowly after you let go of the button.

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

Beginner⏱ About 20 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×Push button (tactile switch)A little button with 4 legs. It connects its two sides only while you press it.
  • 1×100 Ω resistor — brown, black, brown, goldA small resistor. Colors: brown, black, brown, gold.
  • 1×470 Ω resistor — yellow, violet, brown, goldColors: yellow, violet, brown, gold.
  • 1×4700 µF capacitor (can-shaped)A big can that stores charge like a tiny rechargeable bucket. The striped leg is −.
  • 1×5 mm LED (any color) — red fades the longestA tiny light that only lets current flow one way. The long leg is +.
  • 3×Jumper wireA short wire with stiff ends that push into the breadboard.

✨ The finished project

A fading light: push button, 100 ohm resistor, 4700 microfarad capacitor, 470 ohm resistor and LED ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 4700µF 100 Ω 470 Ω +− AAAAAA3 × AA = 4.5 V+−
A fading light: push button, 100 ohm resistor, 4700 microfarad capacitor, 470 ohm resistor and LED ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 4700µF 100 Ω 470 Ω +− AAAAAA3 × AA = 4.5 V+−
Schematic: A fading light: push button, 100 ohm resistor, 4700 microfarad capacitor, 470 ohm resistor and LED + 4.5 V button 100 Ω 4700 µF 470 Ω red LED
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.

  • Capacitor

    A straight plate (+) and a curved plate (−) with a gap between them. It stores a little electricity, like a tiny bucket that fills and empties. Its size is in microfarads (µF).

So far, every light you’ve built goes out the instant you break the loop. In this project the LED keeps glowing for a few seconds after you let go and then fades away slowly, like a sunset. The secret ingredient is a capacitor.

Meet the capacitor

A capacitor is like a tiny bucket for electricity. Connect it to a battery and it fills up with charge (stored-up electricity). Disconnect the battery and the charge stays inside, ready to flow back out through whatever is connected to it.

Capacitors come in many sizes, measured in microfarads (µF). Ours is 4700 µF, a pretty big bucket! Big can-shaped ones like ours are polarized: they have a + leg and a − leg, just like an LED, so they must go in the right way round.

Build it

  1. Red wire: T+3 (top red + rail, column 3) to a3.

  2. Push button: across the middle gap, legs in e3, f3, e5 and f5.

  3. 100 Ω resistor: b5 to b10. It keeps the rush of current gentle when the capacitor fills up.

  4. Capacitor: + leg (no stripe) in e10, the striped − leg in e9. Bend the legs if they’re far apart.

  5. Black wire for the capacitor: a9 to T-9 (top blue − rail, column 9).

  6. 470 Ω resistor: a10 to a14. It sits in the top row, so leave room for it.

  7. LED: long leg in e14, short leg in e15.

  8. Black wire for the LED: a15 to T-15 (top blue − rail, column 15).

  9. Power: battery red wire into T+1, black into T-2. Hold the button for 2 seconds, then let go and watch the glow fade. 🌅

What’s happening?

While you hold the button, the battery does two jobs at once: it fills the capacitor and lights the LED (about 4.4 mA).

When you let go, the battery is cut off, but the capacitor is full! It now acts like a little battery itself, pushing its stored charge through the 470 Ω resistor and the LED. As it empties, its push gets weaker and weaker, so the LED gets dimmer and dimmer until it goes out, after about 5 seconds.

Flip to the Schematic view to see the two paths: one fills the capacitor, the other empties it through the LED.

Not working?

  • LED lights but goes out instantly when you let go? The capacitor isn’t connected. Check its + leg is in column 10 (the same column as the end of the 100 Ω resistor), and its − leg column has the black wire.
  • Nothing lights at all? Check the LED’s long leg and the button placement, just like in Push-Button Light.
  • Capacitor getting warm? Unplug the battery right away and check the stripe. It’s probably in backwards.

Try it!