Fading LED (Capacitor Demo)

This circuit is live in Circuit Canvas. Open it to explore every part and wire, or make your own copy to change values, swap parts and build your own version. Free, right in your browser.

Press the button and the LED turns on. Let go, and instead of switching off, it slowly fades out over a few seconds.

Fading LED (Capacitor Demo) Schematic

While you hold the button, the battery charges the 1000 µF capacitor through R1 and lights the LED through R2. When you let go, the battery is disconnected, but the capacitor is still full of charge. It takes over and powers the LED, and the light slowly fades as the capacitor runs empty.

R1 (100 Ω) limits the current into the capacitor when you press the button. R2 (1 kΩ) limits the current through the LED.

Try swapping the 1000 µF capacitor for a 100 µF one. A smaller capacitor holds less charge, so the LED fades out much faster.

Fading LED (Capacitor Demo) Parts List

BAT1
9V
C1
1000 µF
D1
Red
R1
100 Ω
R2
1 kΩ
SW1

How to Build the Fading LED (Capacitor Demo)

The button connects the plus rail to R1. The capacitor sits across the center gap, between R1 and the minus rail. R2 and the LED form a second path from the same point down to minus.

Watch the capacitor’s direction: the stripe on its side marks the minus leg, and that leg goes to the minus rail. Connected the wrong way, it can get damaged. The LED’s long leg connects to R2.

Make it your own

Every circuit here is a live project in Circuit Canvas, not just a picture. Copy this one and change a value, swap a part or move it to a stripboard: the schematic and the breadboard layout are linked, so a part added to one appears in the other.

Or start from a blank canvas and draw your own circuit, with thousands of ready-made parts.