How to Make Adjustable Flashing LED With 555 Timer
Blinking an LED is the “hello world” of electronics, but doing it with a 555 timer teaches you far more than doing it with a microcontroller. There’s no firmware to hide behind. Every millisecond of that blink is set by two resistors and a capacitor, and once you understand why, you can design an oscillator for anything — a metronome, a PWM dimmer, a tone generator, a turn-signal flasher.
The version we’re building adds one crucial upgrade over the textbook circuit: a potentiometer, so you can dial the flash rate from a lazy one-blink-per-second-and-a-half all the way up to a strobe fast enough to blur into a steady glow — without touching the wiring.
What you’ll end up with
| Spec | Value |
|---|---|
| Supply voltage | 4.5 V – 15 V (9 V battery is ideal) |
| Adjustable flash rate | ~0.67 Hz to ~10 Hz (1.5 s down to 0.1 s per blink) |
| Range shifting | Swap one capacitor for 0.07 Hz – 100 Hz |
| Current draw | ~10 mA average |
| Build time | 10–15 minutes on a breadboard |
| Cost | Under $3 in parts |
Part 1: How the 555 actually makes a square wave
Skip this if you just want to build. But if you read it, everything else in the article stops being magic.
What’s inside the chip
The NE555 is a small analog computer with five functional blocks:
- A voltage divider — three 5 kΩ resistors in series across the supply. (This is where the “555” name comes from.) It creates two fixed reference voltages: ⅓ Vcc and ⅔ Vcc. On a 9 V supply, that’s 3 V and 6 V.
- The lower comparator, watching the Trigger pin (pin 2) against the ⅓ Vcc reference.
- The upper comparator, watching the Threshold pin (pin 6) against the ⅔ Vcc reference.
- An SR flip-flop — a one-bit memory that the two comparators set and reset.
- A discharge transistor on pin 7, plus the output driver on pin 3. Both are controlled by the flip-flop.
The two rules that govern everything:
If pin 2 falls below ⅓ Vcc → flip-flop is SET → output goes HIGH, and the discharge transistor turns off.
If pin 6 rises above ⅔ Vcc → flip-flop is RESET → output goes LOW, and the discharge transistor turns on (pulling pin 7 to ground).
Astable mode: making the chip chase its own tail
The 555 has three operating modes — monostable (one pulse per trigger), bistable (a latch), and astable (no stable state — it oscillates forever). We want astable.
The trick to astable mode is one wire: connect pin 2 to pin 6. Now both comparators watch the same voltage. Then hang a capacitor (C1) from that node to ground, and charge it through resistors from the supply.
Here’s the loop the circuit runs, forever:
- Power on. C1 is empty at 0 V. Pin 2 sees 0 V, which is below ⅓ Vcc → output goes HIGH, LED lights, discharge transistor is off.
- Charging. With pin 7 disconnected internally, current flows from Vcc through R1, then through R2, into C1. The capacitor voltage climbs along an exponential curve.
- Upper threshold hit. C1 reaches ⅔ Vcc. Pin 6 notices → output flips LOW, LED goes dark, and the discharge transistor switches on, effectively grounding pin 7.
- Discharging. C1 now dumps its charge backwards through R2 into pin 7. Note that R1 plays no part here — it’s on the far side of pin 7, just quietly wasting a bit of current to ground.
- Lower threshold hit. C1 falls to ⅓ Vcc. Pin 2 notices → output flips HIGH again, discharge transistor switches off, and we’re back to step 2.
The capacitor voltage never goes below ⅓ Vcc or above ⅔ Vcc again after the first cycle. It just sawtooths between the two rails forever, and the output pin produces a clean square wave in step with it.
This is why R2 appears twice in the math. It’s in the charge path and the discharge path. R1 is only in the charge path.
A detail most tutorials skip
Because ⅓ Vcc and ⅔ Vcc are ratios of the supply, the timing is almost completely independent of supply voltage. Run this circuit from a fresh 9 V battery or a tired 6.5 V one and the flash rate barely budges. That’s a genuinely elegant piece of design, and it’s why the 555 has survived since 1972.
One exception: the very first cycle is longer than all the rest. C1 starts at 0 V and has to climb all the way to ⅔ Vcc, not just from ⅓ to ⅔. That first “on” period is about 1.1 × (R1 + R2) × C1. At slow settings you’ll actually see it.
Part 2: The math
Three formulas. That’s the whole design process.
LED ON time (output HIGH — capacitor charging through R1 + R2):
t_HIGH = 0.693 × (R1 + R2) × C1
LED OFF time (output LOW — capacitor discharging through R2):
t_LOW = 0.693 × R2 × C1
Total period and frequency:
T = t_HIGH + t_LOW = 0.693 × (R1 + 2 × R2) × C1
f = 1 / T = 1.44 / ((R1 + 2 × R2) × C1)
Duty cycle (percentage of the time the LED is lit):
D = (R1 + R2) / (R1 + 2 × R2)
Where does 0.693 come from?
It’s ln(2). A capacitor charging through a resistor takes RC × ln(2) seconds to cover half the remaining voltage gap — and by design, the 555’s window from ⅓ Vcc to ⅔ Vcc is exactly that: half of the remaining distance to the supply rail. So 0.693 isn’t a fudge factor, it’s the natural log of 2, and it will show up in every RC timing calculation you ever do.
The duty cycle limitation
Look hard at the formula for D. Since R1 and R2 are both positive numbers, (R1 + R2) is always larger than half of (R1 + 2×R2). A basic 555 astable can never go below 50% duty cycle, and can never quite reach it either. It’s always on longer than it’s off.
You can get close to 50% by making R2 much larger than R1 — which happens naturally in our circuit as you turn the pot up. There’s a one-diode fix for a true 50% split later in the article.
Part 3: Parts list
| # | Part | Value | Notes |
|---|---|---|---|
| U1 | Timer IC | NE555 or LM555 (DIP-8) | The TLC555 is a CMOS alternative — see the upgrades section |
| R1 | Resistor | 4.7 kΩ | ¼ W, yellow-violet-red-gold |
| R2 | Resistor | 4.7 kΩ | Do not omit this — it protects the chip |
| RV1 | Potentiometer | 100 kΩ linear | Any style: trimmer, panel pot, or thumbwheel |
| R3 | Resistor | 470 Ω | LED current limiter — see the sizing table |
| C1 | Electrolytic capacitor | 10 µF, 16 V+ | Polarized — orientation matters |
| C2 | Ceramic capacitor | 100 nF (marked “104”) | Supply decoupling |
| C3 | Ceramic capacitor | 10 nF (marked “103”) | Control-pin bypass |
| LED1 | LED | 5 mm, any colour | |
| — | Breadboard | 400-point (half size) | |
| — | Jumper wires | ~8 | |
| — | Power | 9 V battery + clip, or bench supply | |
| — | 8-pin DIP socket | optional | Recommended if you’ll solder this later |
Total: roughly $2–3 if you’re pulling from a starter kit, and every one of these parts is in every starter kit.
Sizing R3 for your LED and supply
A common mistake is to reuse “470 Ω” without thinking. Here’s the real formula:
R3 = (V_OUT − V_F) / I_LED
The catch: on a bipolar NE555, the output pin does not swing to the full supply voltage. It typically lands about 1.7 V below Vcc when sourcing current. That’s a big deal on a 5 V supply.
| Supply | Actual pin-3 HIGH | LED colour (V_F) | Target current | Calculated R3 | Use |
|---|---|---|---|---|---|
| 9 V | ~7.3 V | Red / yellow (2.0 V) | 15 mA | 353 Ω | 470 Ω (safe, ~11 mA) |
| 9 V | ~7.3 V | Green (2.2 V) | 15 mA | 340 Ω | 390 Ω |
| 9 V | ~7.3 V | Blue / white (3.2 V) | 15 mA | 273 Ω | 330 Ω |
| 5 V | ~3.3 V | Red / yellow (2.0 V) | 10 mA | 130 Ω | 150 Ω |
| 5 V | ~3.3 V | Blue / white (3.2 V) | — | — | Won’t light — use a TLC555 |
When in doubt, go bigger. A too-large resistor gives you a dim LED; a too-small one cooks it.
Part 4: The schematic
If you’d rather work from a connection list than a drawing — which is honestly easier on a breadboard — here it is as a netlist:
| From | To | Via |
|---|---|---|
| Pin 1 (GND) | Ground rail | wire |
| Pin 8 (VCC) | +9 V rail | wire |
| Pin 4 (RESET) | +9 V rail | wire (or jumper across to pin 8) |
| +9 V rail | Pin 7 (DISCHARGE) | R1 — 4.7 kΩ |
| Pin 7 (DISCHARGE) | Pot terminal | R2 — 4.7 kΩ |
| Pot wiper | Pin 6 (THRESHOLD) | wire |
| Pin 6 (THRESHOLD) | Pin 2 (TRIGGER) | wire — this is what makes it astable |
| Pin 6 / 2 node | Ground rail | C1 — 10 µF, + leg to pin 6 |
| Pin 5 (CONTROL) | Ground rail | C3 — 10 nF |
| Pin 3 (OUTPUT) | LED1 anode (long leg) | R3 — 470 Ω |
| LED1 cathode (short leg) | Ground rail | wire |
| +9 V rail | Ground rail | C2 — 100 nF |
The 555 pinout, for reference
Hold the chip with the notch (or dot) at the top-left. Pin 1 is bottom-left of that notch; numbering runs counter-clockwise.
| Pin | Name | Role in this circuit |
|---|---|---|
| 1 | GND | Ground |
| 2 | TRIGGER | Tied to pin 6; watches for the ⅓ Vcc floor |
| 3 | OUTPUT | Drives the LED |
| 4 | RESET | Tie to Vcc. Left floating, the chip may never oscillate |
| 5 | CONTROL | Bypassed to ground with 10 nF for noise immunity |
| 6 | THRESHOLD | Watches for the ⅔ Vcc ceiling |
| 7 | DISCHARGE | The internal transistor that empties C1 |
| 8 | VCC | +supply |
Pin 4 is the single most-forgotten connection in 555 circuits. It’s active-low reset. Leave it floating on a noisy breadboard and you’ll get a circuit that works, then doesn’t, then does. Tie it high and forget about it.
Part 5: Building it on a breadboard
Step 1 — Set up the rails
Insert the 555 straddling the centre channel of the breadboard. This is not optional; if you lay it along one side, opposite pins short together through the internal strips. With the notch facing left, run a red jumper from the battery + to the top rail and a black one from battery − to the bottom rail.
Step 2 — Power the chip
- Wire pin 1 → ground rail.
- Wire pin 8 → +V rail.
- Wire pin 4 → +V rail. A short jumper diagonally from pin 4 across to pin 8’s row works fine.
Step 3 — Make it astable
Run a short jumper from pin 2 to pin 6. They’re on the same side of the chip with pin 5 between them; jump around, not through. This single wire is the difference between an oscillator and a one-shot.
Step 4 — Install the timing capacitor
Put C1 (10 µF) from the pin 2/6 node to the ground rail. The longer leg (+) goes to the pin 6 side; the short leg with the stripe goes to ground. Backwards, an electrolytic will either behave erratically or eventually vent.
Step 5 — Build the timing resistor chain
- R1 (4.7 kΩ) from the +V rail to pin 7.
- R2 (4.7 kΩ) from pin 7 to an unused row.
- The potentiometer from that unused row to pin 6.
Pot wiring matters. A pot has three terminals. You want it acting as a variable resistor (rheostat), so use one outer terminal plus the middle wiper. Best practice: also jumper the unused outer terminal to the wiper. That keeps the third leg from floating and picking up noise, and means the circuit still behaves sanely if the wiper ever loses contact.
If you wire the two outer terminals instead, you’ll have inserted a fixed 100 kΩ and the knob will do nothing. This is the #1 build error for this circuit.
Step 6 — The bypass capacitors
- C3 (10 nF) from pin 5 to ground. Pin 5 taps directly into the internal ⅔ Vcc reference. Any noise there jitters your timing. Ceramics aren’t polarized, so orientation is free.
- C2 (100 nF) across the +V and ground rails, physically close to the chip. The 555’s output stage briefly conducts through both transistors at every transition, yanking a spike of current from the supply. Without this cap, that spike shows up as a glitch on the rail — and on a slow-blinking circuit, it can cause double-triggering.
Both are technically optional. Both take five seconds. Install them.
Step 7 — The output
- R3 (470 Ω) from pin 3 to a free row.
- LED anode (long leg) to that same row, cathode (short leg, flat side of the case) to the ground rail.
Step 8 — Check before you connect power
Run through this list before the battery goes on:
- Is the notch on the left and the chip straddling the channel?
- Pin 1 to ground, pin 8 to +V, pin 4 to +V?
- Pin 2 jumpered to pin 6?
- C1’s positive leg toward pin 6?
- R1 between +V and pin 7 (not between +V and pin 6)?
- Pot using an outer terminal and the wiper?
- LED long leg toward the resistor?
Now connect power. Turn the pot slowly from one stop to the other. You should see the LED go from a steady 1.5-second heartbeat to a rapid flicker.
Part 6: What each component controls
This is the part worth internalizing, because it turns the build into a design tool.
| Component | Affects ON time | Affects OFF time | Practical role |
|---|---|---|---|
| C1 | ✅ | ✅ | Coarse range. Scales both times equally. 10× the capacitance = 10× slower. |
| R2 / RV1 | ✅ | ✅ | Fine speed control. Your knob. Also pushes duty cycle toward 50%. |
| R1 | ✅ | ❌ | Adds ON time only. Raising it makes flashes longer, not more frequent. |
| R3 | ❌ | ❌ | Brightness only. Doesn’t touch timing. |
| C2, C3 | ❌ | ❌ | Stability only. |
Worked numbers for the circuit as built
With R1 = 4.7 kΩ, C1 = 10 µF, and R2 = 4.7 kΩ + the pot setting:
| Pot position | Effective R2 | ON time | OFF time | Period | Frequency | Duty |
|---|---|---|---|---|---|---|
| 0% (fully CCW) | 4.7 kΩ | 65 ms | 33 ms | 98 ms | 10.2 Hz | 67% |
| 25% | 29.7 kΩ | 238 ms | 206 ms | 444 ms | 2.3 Hz | 54% |
| 50% | 54.7 kΩ | 412 ms | 379 ms | 791 ms | 1.3 Hz | 52% |
| 100% (fully CW) | 104.7 kΩ | 758 ms | 726 ms | 1.48 s | 0.67 Hz | 51% |
Two things to notice. First, at 10 Hz your eye will barely resolve individual flashes — it’ll look like a fast flicker, which is exactly right. Second, watch the duty cycle column: it starts lopsided at 67% and settles toward 51% as the pot dominates R1. That’s the formula from Part 2 playing out in front of you.
Changing the range with one capacitor
Same resistors, different C1:
| C1 | Fastest (pot at 0%) | Slowest (pot at 100%) | Feels like |
|---|---|---|---|
| 1 µF | 102 Hz | 6.7 Hz | Buzzing / fast strobe |
| 4.7 µF | 21.7 Hz | 1.4 Hz | Strobe to visible blink |
| 10 µF | 10.2 Hz | 0.67 Hz | The sweet spot — general purpose |
| 47 µF | 2.2 Hz | 0.14 Hz (7 s) | Slow beacon |
| 100 µF | 1.0 Hz | 0.07 Hz (15 s) | Very slow pulse |
Put a small toggle or slide switch between two capacitors and you’ve built a proper two-range instrument: coarse range on the switch, fine adjustment on the knob.
Part 7: Verifying it works as designed
With nothing but your eyes and a phone: set the pot to the slow end, start a stopwatch, count 20 flashes, stop. Divide. If you count 20 flashes in 30 seconds, that’s 0.67 Hz — right on target.
With a multimeter: many meters have a Hz range. Put the red probe on pin 3 and black on ground and read the frequency directly. You can also check DC voltage on pin 3 — at 50% duty it should read roughly half of Vcc, because the meter is averaging the square wave.
With an oscilloscope: this is where the circuit really pays off as a teaching tool. Probe pin 3 for the square wave, then probe pin 6. On pin 6 you’ll see the exponential sawtooth, and you can measure the peaks: they should sit at exactly ⅓ and ⅔ of your supply voltage. On 9 V, that’s 3.0 V and 6.0 V. Seeing those two numbers on screen is the moment the whole chip clicks.
Expect some error. Electrolytic capacitors are commonly ±20% tolerance, and cheap ones drift further with age and temperature. If you measure 0.8 Hz instead of the calculated 0.67 Hz, your capacitor is almost certainly the culprit, not your math. Measure the actual capacitance if your meter supports it and recalculate — the formula will match closely.
Part 8: Upgrades and variations
A. Two LEDs that alternate
Add a second LED and resistor from the +V rail down to pin 3, with the cathode facing pin 3. Now LED2 lights when the output is LOW (the 555 sinks current through it), while LED1 lights when the output is HIGH. Only one is ever on. Instant railroad-crossing effect, for the cost of two components.
B. True 50% duty cycle
Place a small signal diode (1N4148) in parallel with R2, with the anode at pin 7 and the cathode at the pin 6 side. Now the charging current bypasses R2 through the diode:
t_HIGH ≈ 0.693 × R1 × C1
t_LOW ≈ 0.693 × R2 × C1
Set R1 = R2 and you get an even on/off split. (It won’t be perfect — the diode drops ~0.6 V — but it’s close.)
C. Independent ON and OFF times
Extend the idea in B: use two pots, each with its own steering diode pointing in opposite directions, so the charge path and discharge path are separately adjustable. Now one knob sets flash duration and the other sets the gap between flashes. This is how you build a realistic aircraft strobe: a very short bright pulse with a long dark pause.
D. Driving something bigger than one LED
The NE555’s output is rated to about 200 mA, but pushing it there makes the chip hot and drags the output voltage down badly. For an LED strip, a relay, or a buzzer, use pin 3 to drive a transistor instead:
- Put a 1 kΩ resistor from pin 3 to the base of a BC547 or 2N2222 NPN transistor.
- Emitter to ground, load between +V and collector.
- If the load is inductive (relay, motor), add a flyback diode across it, cathode to +V.
For higher currents, swap in a logic-level MOSFET like an IRLZ44N and skip the base resistor (add a 10 kΩ gate pulldown).
E. Use a CMOS 555
The TLC555 or LMC555 is a drop-in pin-compatible replacement with real advantages:
- Runs from as little as 2 V, so it works on a single LiPo or two AAs.
- Output swings nearly rail-to-rail — which solves the “blue LED won’t light on 5 V” problem from the resistor table.
- Draws about 1/50th the supply current, so battery life goes from days to months.
- Far smaller current spikes at transitions, so much less supply noise.
The trade-off: it can only source ~10 mA, so you’ll want a transistor for anything beyond one modest LED.
F. Pot taper
Frequency is inversely proportional to resistance, so a linear pot makes the fast end feel cramped — most of the audible/visible change happens in the first quarter of the rotation. If you’re putting this in an enclosure with a real knob, a reverse-log (type C) taper gives a much more even-feeling sweep.
G. Modulating pin 5
Instead of bypassing pin 5 with C3, feed it a varying voltage from another pot or an audio signal. You’re now moving the ⅔ Vcc threshold in real time, which frequency-modulates the output. Push the frequency up into audio range with a 100 nF timing capacitor and you’ve got a basic siren.
Part 9: Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| LED never lights | Chip inserted backwards | Notch to the left; pin 1 at the bottom-left |
| Pin 4 (RESET) floating or grounded | Tie pin 4 firmly to Vcc | |
| LED reversed | Long leg toward R3, short leg toward ground | |
| Dead battery / rails not connected | Measure between pins 8 and 1 — should read full Vcc | |
| LED on solid, no blink | Pin 2 not connected to pin 6 | Add the jumper — this is the astable connection |
| C1 open, missing, or way too small | Verify value; try 47 µF to make the blink unmistakable | |
| Rate is simply too fast to see | Turn the pot the other way | |
| LED dim and steady | C1 installed backwards | Reverse it — + toward pin 6 |
| Frequency above ~50 Hz | Persistence of vision; slow it down | |
| Blinks, but erratically | No decoupling cap | Add C2 (100 nF) across the rails near the chip |
| Loose breadboard connection | Reseat component legs; trim any bent-over leads | |
| Pin 5 left floating in a noisy environment | Add C3 (10 nF) to ground | |
| Knob does nothing | Pot wired across its two outer terminals | Use one outer terminal plus the wiper |
| Pot in the wrong branch | It must be in series with R2 between pins 7 and 6 | |
| Chip gets hot | Inserted backwards | Power off immediately and check orientation |
| R1 missing or too small | R1 should never go below ~1 kΩ | |
| Pin 7 shorted to ground | Trace the R1 connection | |
| Rate is off from calculation | Electrolytic tolerance (±20% typical) | Measure C1 and recalculate; the formula is fine |
| Resistor tolerance stacking | Use 1% metal-film resistors if precision matters |
Two design rules that prevent most hardware damage
Never let the resistance between pin 7 and the capacitor reach zero. That’s why R2 (4.7 kΩ) sits in series with the pot instead of the pot going straight to pin 6. With the pot at its stop, R2 still limits the discharge current. Without it, C1 would dump its full charge straight into the discharge transistor with nothing in the way — a current spike that will eventually kill the chip.
Keep R1 above ~1 kΩ too. While the discharge transistor is on, R1 has Vcc on one end and a saturated transistor on the other. At 1 kΩ and 9 V, that’s 9 mA of continuous waste heat during every OFF period. Below that, it gets worse fast.
At the other extreme, don’t go above roughly 1–3 MΩ total. The capacitor’s own leakage current starts to rival the charging current, and the circuit becomes unreliable — sometimes refusing to oscillate at all.
Frequently Asked Questions
Can I run this from 5 V USB?
Yes. The NE555 works from 4.5 V up. Just resize R3 using the table in Part 3, and be aware that blue and white LEDs may not have enough headroom on a bipolar 555 at 5 V.
How long will a 9 V battery last?
The bipolar NE555 draws roughly 3–6 mA on its own, plus around 7 mA average for the LED at ~50% duty. Call it 10–13 mA. A decent alkaline 9 V holds about 550 mAh, so you’re looking at 40–55 hours of continuous flashing. Switch to a TLC555 and that jumps to several hundred hours.
Can I use a 556?
Yes — the NE556 is two 555s in one 14-pin package, with a shared supply and ground. Useful when you want to build variation A or C without two chips. The pinout is different, so check the datasheet.

Author
Alex Klein is an electrical engineer with more than 15 years of expertise. He is the host of the Electro University YouTube channel, which has thousands of subscribers.
