Back to Blog
Electronics

Inside the 555 Timer: Build One, Then Make an LED Flash

11 min read
NevilLabs 2D grid canvas with the NE555 Timer guide panel open beside a 555 timer rebuilt from five NPN transistors, a three-resistor divider and external timing parts

Most people meet the 555 timer as a black box with eight legs. Copy a schematic, add two resistors and a capacitor, and an LED blinks. It is so dependable that hardly anyone asks what is going on inside the package (easy to overlook, because the inside is where the real lesson is).

So this post goes the other way round. First we open the box, using the blocks the NE555 guide in NevilLabs asks you to rebuild from discrete transistors. Then we do the timing maths properly and hit a twist that catches a lot of students out: the guide's circuit oscillates at about 138 Hz, and an LED switching at 138 Hz doesn't look like it is flashing at all. Fixing that takes one capacitor, one resistor and a careful read of the datasheet.

What You Will Learn

  • What the divider, comparators, flip-flop and discharge transistor inside a 555 each do
  • How the astable circuit charges a capacitor through two resistors and discharges it through one
  • Where the 0.693 comes from, and how R1, R2 and C set the frequency and duty cycle
  • Why the basic astable circuit can't give a duty cycle below 50%
  • Why an LED switching at 138 Hz looks steadily lit
  • How to size an LED resistor from the datasheet's output voltage rather than the supply voltage

What a 555 Actually Does, in Plain Words

Strip away the pin names and a 555 does one thing: it watches a voltage and flips its output when that voltage crosses one of two thresholds. In the astable (free-running) circuit, that voltage belongs to a capacitor. The chip lets it charge to two-thirds of the supply, switches its output low and drains it to one-third, then switches high and starts again (TI NE555 datasheet). The output is a rectangular wave, and the capacitor voltage is a sawtooth with curved sides.

It is also a design that refuses to retire. Hans Camenzind designed it in 1970 while consulting for Signetics, IEEE Spectrum's Chip Hall of Fame dates the part to 1971, and TI revised its NE555 datasheet as recently as March 2026. Camenzind's own textbook, Designing Analog Chips, is free to download and has a chapter on timers and oscillators.

The Four Blocks Inside the Package

The Three-Resistor Divider

Three equal resistors (5 kΩ each in the guide) run from VCC to ground and make two references, 2VCC/3 and VCC/3: 6 V and 3 V on the guide's 9 V supply. Because the references and the capacitor's charging both scale with the supply, the timing doesn't depend on the supply voltage (TI NE555 datasheet). The upper tap also comes out on pin 5, the control voltage pin.

Two Comparators

One comparator checks the threshold pin (pin 6) against 2VCC/3, and the other checks the trigger pin (pin 2) against VCC/3. In the astable circuit both pins sit on the timing capacitor. A comparator is just an amplifier with so much gain that its output is either fully on or fully off (an amplifier with very strong opinions). Here is exactly when each one switches. The threshold comparator turns fully ON when pin 6 rises above 2VCC/3 (6 V on the guide's 9 V supply), and that resets the flip-flop. It stays fully OFF for anything below 6 V. The trigger comparator turns fully ON when pin 2 falls below VCC/3 (3 V), and that sets the flip-flop. It stays fully OFF for anything above 3 V. While the capacitor sits between 3 V and 6 V, both comparators are OFF, so nothing changes. That is why the capacitor ramps up and down smoothly in the plot further down, and only the moment it touches 6 V or 3 V makes the output flip.

The Flip-Flop

The comparators set and reset a latch, an SR flip-flop, which remembers which threshold was crossed last. That memory is the whole trick. Between 3 V and 6 V neither comparator asks for a change, so the flip-flop holds its state, giving two clean switching points instead of chatter around one.

The Discharge Transistor and the Output

When the flip-flop resets, the output goes low and a transistor from pin 7 to ground switches on, draining the capacitor. When the output goes high, that transistor switches off and charging resumes. Pin 3 is a buffered copy of the flip-flop's state, and on the bipolar NE555 it can sink or source up to 200 mA (TI NE555 datasheet).

Block diagram of a 555 timer: three equal resistors dividing the supply into one-third and two-thirds references, two comparators feeding an SR flip-flop, a discharge transistor on pin 7 and an output buffer on pin 3, with all eight pins labelled
Inside the 555: a divider sets two thresholds, two comparators watch them, a flip-flop remembers the last one crossed, and a transistor empties the capacitor.

Rebuilding the 555 in NevilLabs

The NE555 guide in NevilLabs (in the IC Building & Test Guides library: intermediate, about 120 minutes, simulated with the Spice simulation in NevilLabs) runs in your browser with nothing to install, and turns that diagram into work for your own hands. Its bill of materials is five 2N2222 NPN transistors, three 5 kΩ divider resistors, the timing parts (R1 = 10 kΩ, R2 = 47 kΩ, C = 100 nF) and a 9 V source. The guide opens in a panel beside the 2D grid canvas and runs through eight sections: Overview, Target IC Pinout, Bill of Materials, Wiring Instructions, Simulation Configuration, Expected Results, Custom Symbol Creation and Symbol Test Circuit.

The simulation is a transient analysis, and the run in the plot below covers 100 ms, about fourteen cycles, with the output and the capacitor on the graph. On the capacitor you are looking for a curved sawtooth between roughly 3 V and 6 V. For how this analogue engine sits next to digital logic, see our post on multi-domain simulation.

NevilLabs 2D grid canvas showing a 555 timer wired from five NPN transistors, three 5 kilohm divider resistors, a 9 volt source and 10 kilohm, 47 kilohm and 100 nanofarad timing parts, with the guide panel open on Wiring Instructions
The guide's discrete 555 on the grid, with the guide panel open beside it.

The last two sections turn an exercise into a part. In the Custom Symbol Creator you name the symbol NE555, map its eight pins onto nodes of your build and save it, and it appears under Custom Symbols in the component sidebar. Place it in a new circuit and the netlist carries your transistor-level build into the Spice simulation as a subcircuit (.subckt). The final section drops it into the classic astable circuit and asks you to confirm the frequency lands within ±5% of the discrete build's 138 Hz. Rebuilding a part you would normally buy, then using it as a black box, is experiential learning in its plainest form.

The Timing Maths, Done Properly

Here is where the 0.693 comes from. While the output is high, the capacitor charges through R1 and R2 from VCC/3 towards VCC, and the 555 stops it at 2VCC/3. The gap to VCC has halved, and an RC circuit halves its gap in the natural logarithm (2) ≈ 0.693 time constants. While the output is low, it discharges through R2 alone from 2VCC/3 to VCC/3: another halving. For the guide's values:

  • High time: t_high = 0.693 × (R1 + R2) × C = 0.693 × 57 kΩ × 100 nF ≈ 3.95 ms
  • Low time: t_low = 0.693 × R2 × C = 0.693 × 47 kΩ × 100 nF ≈ 3.26 ms
  • Period: T = t_high + t_low ≈ 7.21 ms
  • Frequency: f ≈ 1.44 / ((R1 + 2R2) × C) = 1.44 / (104 kΩ × 100 nF) ≈ 138.5 Hz
  • Duty cycle (fraction of time high): (R1 + R2) / (R1 + 2R2) = 57 / 104 ≈ 55%

The 1.44 is just 1/0.693, rounded (using the natural logarithm (2) exactly gives 138.7 Hz, a difference that vanishes next to component tolerance). The supply voltage appears nowhere, and the duty cycle can't fall below 50%, because the high time includes R1 and the low time doesn't. You can't make R1 zero either: when the discharge transistor turns on, R1 is all that sits between the supply and ground.

One thing the formulas hide: the first high period is longer, because the capacitor starts at 0 V rather than VCC/3. With the guide's values it takes natural logarithm (3) ≈ 1.1 time constants, about 6.26 ms. You can see it at the left of the plot below: the capacitor climbs from 0 V to 6 V before the output's first fall, then settles into the 3 V to 6 V rhythm.

Transient simulation plot from the NevilLabs NE555 guide showing the timing capacitor voltage ramping up and down between about 3 and 6 volts, overlaid with the rectangular output voltage switching high and low over a 100 millisecond run, about fourteen cycles
The astable rhythm over 100 ms: the capacitor ramps between VCC/3 and 2VCC/3 while the output switches at each threshold.

Read the time axis and the run agrees with the formulas. Consecutive rising edges of the output sit about 7.2 ms apart, which is 138 Hz. The output stays high for about 4.0 ms and low for about 3.2 ms, a duty cycle near 55%. The capacitor swings between about 3 V and 6 V, and the output between about 0 V and 8.5 V. Measure it yourself: pick two rising edges, subtract their times and take the reciprocal.

The Twist: 138 Hz Doesn't Flash

Put an LED on pin 3 of a 555 running at these values and you'll see a steady glow, a little dimmer than on DC. It is switching 138 times a second, and your visual system averages it. Research on the critical flicker fusion rate (the rate above which a flickering light looks steady) reports limits of around 50 to 90 Hz (Davis, Hsieh and Lee, Scientific Reports).

Even that has a caveat. The same paper notes that fast eye movements (saccades) let people notice modulated LEDs at much higher rates, and it found flicker artefacts above 500 Hz on displays with sharp edges. Flick your eyes past a 138 Hz LED and you may catch a dotted trail.

Turning It Into a Visible LED Flasher

Change One Capacitor

Keep R1 and R2 and swap the 100 nF capacitor for 10 µF, a hundred times larger. Every time in the cycle scales by the same factor:

  • Frequency: f ≈ 1.44 / (104 kΩ × 10 µF) ≈ 1.38 Hz, about 83 flashes a minute
  • High time: 0.693 × 57 kΩ × 10 µF ≈ 0.40 s
  • Low time: 0.693 × 47 kΩ × 10 µF ≈ 0.33 s

A 10 µF part will almost certainly be an aluminium electrolytic, which is polarised: negative lead to ground, or it leaks and the timing drifts.

Size the LED Resistor From the Datasheet, Not the Supply

The tempting sum is (9 V − 2 V) ÷ 12 mA ≈ 580 Ω, which assumes pin 3 rises all the way to the supply. On a bipolar NE555 it doesn't. TI's datasheet gives 13.3 V typical from a 15 V supply at 100 mA, a drop of about 1.7 V that varies with load (TI NE555 datasheet). I budget about 1.5 V, so the output sits near 7.5 V on 9 V.

Then it's Ohm's law across the resistor (Scherz and Monk, Practical Electronics for Inventors): (7.5 V − 2.0 V) ÷ 12 mA ≈ 460 Ω, so use the standard 470 Ω for about 11.7 mA. If the real drop is anywhere from 1 V to 1.7 V, the current stays between roughly 11 and 13 mA, comfortable for a typical 5 mm red LED such as Kingbright's WP7113ID (1.9 V typical at 10 mA, 30 mA maximum DC current).

With the LED from pin 3 to ground, it lights for the 0.40 s high time. Wire it from VCC into pin 3 instead and the 555 sinks the current, lighting the LED for the 0.33 s low time. The low level sits near ground (0.1 V typical at 10 mA on 15 V, per the datasheet), so that version wants about 560 Ω. To take a circuit like this off the breadboard, our post on one circuit's path from breadboard to PCB walks through the route.

Bench Realities of a 555 Astable: Tolerance, Decoupling, Duty Cycle

The formulas give you three significant figures. The bench gives you something else:

  • Below 50% duty needs a diode. Put one across R2 (anode at pin 7, cathode at pins 2 and 6) so the capacitor charges through R1 and the diode and discharges through R2. The high time becomes roughly 0.693 × R1 × C, give or take the diode's forward drop, which matters more on low supplies.
  • Electrolytics are ±20% parts. A general-purpose aluminium electrolytic such as Nichicon's UVR series is specified at ±20% (Nichicon UVR datasheet), so your 1.38 Hz flasher really runs anywhere from about 1.15 to 1.73 Hz, before temperature, ageing and leakage join in.
  • The decoupling the diagram leaves out. TI's astable circuit shows 10 nF from pin 5 to ground, and the datasheet highly recommends a 0.1 µF ceramic bypass from VCC to ground (TI NE555 datasheet). The bipolar output stage draws a burst of current each time it switches; TI lists reduced spikes during output transitions as a feature of its CMOS TLC555 (TI TLC555 datasheet), which tells you which part has the problem.
  • Bipolar and CMOS 555s differ. The TLC555 swings rail to rail but sources only about 10 mA typical against 100 mA sinking (TI TLC555 datasheet), so on a TLC555, wire the LED to sink into pin 3.
  • Five transistors show the logic, the die shows more. The guide's build covers the four jobs (divide, compare, remember, discharge). The datasheet's equivalent circuit is more detailed and uses PNP as well as NPN transistors, which is why the Three Fives kit that replicates it uses 2N3904 and 2N3906 parts (Evil Mad Scientist Laboratories). In NevilLabs, drawn transistors start from an NPN model with a current gain of 100, a good fit for watching the blocks interact. For datasheet-level behaviour, use a manufacturer's SPICE model.

Where You Meet the 555 in Real Life

  • Consumer products: the 555 ended up in kitchen appliances, toys and even spacecraft (IEEE Spectrum, Chip Hall of Fame).
  • Motor-speed and brightness control: a control signal on pin 5 of a continuously triggered monostable 555 makes a pulse-width modulator, though the control-to-width relationship is not linear (TI NE555 datasheet).
  • Industrial monitoring and sequencing: missing-pulse detectors, which raise an output when a pulse train stops or slows, and sequential timers are standard 555 circuits (TI NE555 datasheet).
  • Automotive electronics: TI offers the CMOS TLC555 in a Q-temp automotive version (TI TLC555 datasheet).
  • Clocks and tone generators: an astable 555 is a simple relaxation oscillator for clocks and audio tones where crystal accuracy isn't needed (Horowitz and Hill, The Art of Electronics). On a small speaker, the guide's 138 Hz is a low buzz near the C sharp below middle C.
  • Learning how a chip works from the inside: the NE555 guide in NevilLabs (intermediate, about 120 minutes) rebuilds the 555's divider, comparators, latch and discharge transistor from five NPN transistors in astable mode, then saves the build as a custom NE555 symbol with eight mapped pins and tests it in the classic astable circuit.
Every black box is just a circuit someone decided you didn't need to see. Open it once, and the formula stops being magic.

Open the Box Once, Then Trust It

If one habit sticks, make it asking what is inside before you copy the formula. The 555's timing comes from natural logarithm (2) on an RC curve, its thresholds are a divider, its memory is a flip-flop, and its quirks (the 50% floor, the output drop, the switching spike) follow from those blocks. Once you have seen them, 10 µF for a 1.4 Hz flash and 470 Ω for 12 mA become calculations you can defend.

NevilLabs is opening access in small batches, and the NE555 guide is a good evening's work for a student or teacher who wants to see a chip from the inside. Join the waitlist, rebuild the 555 from five transistors, then change one capacitor and predict the new period before you run it. Once you have seen inside the 555, keep going, because there is a lot of good hardware waiting for you to imagine it.

References

  1. Texas Instruments. (2026). NA555, NE555, SA555, SE555 Precision Timers (datasheet SLFS022K, revised March 2026). — https://www.ti.com/lit/ds/symlink/ne555.pdf (opens in a new tab)
  2. Texas Instruments. (2026). TLC555 CMOS Timer (datasheet SLFS043K, revised January 2026). — https://www.ti.com/lit/ds/symlink/tlc555.pdf (opens in a new tab)
  3. IEEE Spectrum. (2017). Chip Hall of Fame: Signetics NE555. — https://spectrum.ieee.org/chip-hall-of-fame-signetics-ne555 (opens in a new tab)
  4. Camenzind, H. (2005). Designing Analog Chips. Virtualbookworm.com Publishing. — https://www.designinganalogchips.com/ (opens in a new tab)
  5. Horowitz, P., & Hill, W. (2015). The Art of Electronics (3rd ed.). Cambridge University Press.
  6. Scherz, P., & Monk, S. (2016). Practical Electronics for Inventors (4th ed.). McGraw-Hill Education.
  7. Davis, J., Hsieh, Y.-H., & Lee, H.-C. (2015). Humans perceive flicker artifacts at 500 Hz. Scientific Reports, 5, 7861. doi: 10.1038/srep07861 (opens in a new tab)
  8. Nichicon. Aluminum Electrolytic Capacitors, UVR series datasheet. — https://www.nichicon.co.jp/english/series_items/catalog_pdf/e-uvr.pdf (opens in a new tab)
  9. Kingbright. WP7113ID T-1 3/4 (5mm) Solid State Lamp datasheet. — https://www.kingbrightusa.com/images/catalog/SPEC/WP7113ID.pdf (opens in a new tab)
  10. Evil Mad Scientist Laboratories. The Three Fives Kit: A Discrete 555 Timer. — https://shop.evilmadscientist.com/productsmenu/652 (opens in a new tab)

Start your first build with NevilLabs

Design a circuit, run the simulation, and see the physics behind it — in your browser. We're inviting early users in small batches.

Join the Waitlist

More articles

Education
Explore Your Potential with Experiential Learning: A Comprehensive Guide to STEM Education
Inspiration
Sir M. Visvesvaraya: Explorer, Creator, Scholar
Inspiration
C.V. Raman: The Light That Changed Physics
Wireless
Guglielmo Marconi: The Engineer Who Shrank the Planet
Technology
Inside a Quadcopter: The Engineering That Keeps Drones in the Air
Physics
Newton's Laws of Motion: A Visual Guide to Forces, Inertia, and Action-Reaction
Education
Why Virtual Labs Are Rewriting the Economics of STEM Education
Simulation
Multi-Domain Simulation: Why Splitting Analog and Digital Tools Is a Mistake
RF
RF Simulation and Yield Analysis: Reading a Smith Chart Before You Fabricate
Electronics
VirtuBuild Space: Taking One Circuit From Breadboard to PCB Without Leaving the Browser
AI Design
Prompt-to-3D-Structure: What AI-Generated Geometry Is Actually Good For
Design
One Design, Three Views: Why Layout, 2D, and 3D Shouldn't Be Separate Files
Robotics
Mechatronics Simulation: Where Circuits Stop Being Circuits and Become Machines
AI
What an AI Debugging Assistant Can (and Can't) See in Your Circuit
Learning
Adaptive Learning Paths: Why 'Personalised Pace' Only Works If the Physics Is Real
Safety
What 'Child Safety' Actually Means in a STEM Simulation Platform
Visualization
Visualizing the Invisible: What 3D Field Simulation Actually Shows You
Education
What a STEM Lab Actually Costs: A Budget Framework for Administrators
Electronics
Reading a Bode Plot for the First Time (an RC Filter Walkthrough)
RF
FEM vs FDTD: Choosing a 3D Solver for a Patch Antenna
PCB
Gerber and Excellon Files: What Your PCB Fab Actually Receives
Materials
Material Science You Can Test: Interactive 3D Experiments
Electronics
Resistor E-Series Explained: What E12, E24 and E96 Mean
RF
RF Cascade Analysis: Gain, Noise Figure, IIP3 and P1dB Through a Chain
Simulation
Spice Simulation Online: What .tran and .ac Results Actually Tell You
Materials
The Stress-Strain Curve: Tensile, Compressive and Shear, Explained
RF
From Datasheet to Smith Chart: Importing Touchstone S-Parameters