The 555 is one of the most famous chips in the history of electronics, and it's still used today for blinking LEDs, buzzers and generating pulses for other circuits. In astable mode it produces a square wave on its own, with nobody pressing anything, and you set its speed with two resistors and a capacitor.
Wiring
| Pin | Name | Connection in astable mode |
|---|---|---|
| 1 | GND | Ground |
| 2 | TRIG | Joined to pin 6 and to capacitor C |
| 3 | OUT | Output (the LED or load) |
| 4 | RESET | To VCC (if left floating, the chip may reset itself) |
| 5 | CTRL | 10 nF capacitor to ground to reduce noise |
| 6 | THR | Joined to pin 2 |
| 7 | DIS | Between R1 and R2 |
| 8 | VCC | Supply (4.5 to 16 V for the NE555) |
In order: VCC → R1 → pin 7 → R2 → pins 2 and 6 → C → ground.
How does it work?
Inside the chip, two comparators watch the capacitor voltage:
- The capacitor charges through R1 and R2 together, and the output is HIGH.
- As soon as its voltage reaches ⅔ of the supply, the chip switches the output LOW and connects pin 7 to ground.
- The capacitor discharges through R2 only until it reaches ⅓ of the supply.
- The output goes back HIGH and the cycle repeats.
The formulas
tHigh = 0.693 × (R1 + R2) × C
tLow = 0.693 × R2 × C
f = 1.44 ÷ ((R1 + 2 × R2) × C)
Duty = (R1 + R2) ÷ (R1 + 2 × R2)
Resistors in ohms and capacitance in farads give times in seconds and frequency in hertz.
Example: an LED blinking about one and a half times per second
- R1 = 10 kΩ, R2 = 47 kΩ, C = 10 µF.
- tHigh = 0.693 × 57000 × 0.00001 ≈ 0.40 s.
- tLow = 0.693 × 47000 × 0.00001 ≈ 0.33 s.
- f ≈ 1.39 Hz, duty cycle ≈ 55%.
Want it to blink slower? Increase the capacitor or R2. Faster? Decrease them.
Ready values
The easiest way to choose: keep the resistors and change the capacitor. Each time the capacitor gets 10 times smaller, the frequency gets 10 times higher:
| R1 | R2 | C | Frequency, approx. | Use |
|---|---|---|---|---|
| 10 kΩ | 68 kΩ | 10 µF | 1 Hz | LED blinking every second |
| 10 kΩ | 68 kΩ | 1 µF | 10 Hz | Fast flasher |
| 10 kΩ | 68 kΩ | 10 nF | 1 kHz | Buzzer tone |
| 1 kΩ | 33 kΩ | 10 nF | 2.1 kHz | Alarm beep |
Keep the resistors roughly between 1 kΩ and 1 MΩ: below that the current gets high, above it capacitor leakage ruins the timing.
Why is the duty cycle always above 50%?
Charging goes through R1 and R2, discharging through R2 only, so the HIGH time is always longer than the LOW time. If you want a short pulse (duty under 50%):
- Put a diode (such as a 1N4148) in parallel with R2: anode towards pin 7, cathode towards pins 2 and 6.
- Now the capacitor charges through R1 only (via the diode) and discharges through R2 only.
- Roughly: tHigh ≈ 0.693 × R1 × C and tLow ≈ 0.693 × R2 × C. (The diode's forward voltage makes the real figure differ a little.)
Applications that work first time
Two LEDs blinking alternately
Connect one LED with its resistor from the output (pin 3) to ground, and a second LED with its resistor from VCC to the output. When the output is HIGH the first lights; when it's LOW the second lights. A popular circuit for mini traffic lights and toys. The resistor for each LED is worked out in the LED resistor article.
A tone on a buzzer or speaker
At 1 to 3 kHz, the output can drive a passive buzzer or small speaker through a 10 µF capacitor and a 100 Ω resistor in series. An active buzzer doesn't need a 555 at all, because it makes its own tone. The difference is in the buzzer and speaker article.
Motor speed or brightness control (PWM)
Replace R2 with a potentiometer whose middle pin goes to pin 7, with each end connected to pins 2 and 6 through a diode pointing the opposite way. Charging now flows through one half of the pot and discharging through the other, so turning it changes the duty cycle from about 5 to 95% while the frequency stays roughly constant. For a motor, choose about 20 kHz so the whine isn't audible, and drive the motor through a MOSFET, not directly from pin 3. The same idea is explained in the PWM article.
A clock for digital circuits
555 pulses are used as a clock for a counter like the CD4017 to make chasing LEDs, or for a shift register. And if you need a single pulse of fixed length when a button is pressed, that's another mode called monostable.
Not working?
- The output is stuck and doesn't toggle: make sure pin 4 is connected to VCC, and that pins 2 and 6 are joined together and to the capacitor.
- Electrolytic capacitor reversed: the negative (striped) side goes to ground. Reversed, it leaks badly and the circuit may not oscillate.
- The chip gets hot: the output is probably driving a load that draws more than it can handle, or there's a short. See short vs open circuit.
- The frequency drifts: the supply isn't stable, or there's no 100 nF capacitor next to pin 8. Add a decoupling capacitor right there.
- Not sure whether it's oscillating: at high frequencies an LED just looks constantly on. Measure with the multimeter's frequency (Hz) mode if it has one, or use an oscilloscope.
Practical tips
- Don't make R1 smaller than 1 kΩ: so that when pin 7 connects to ground, the current flowing from VCC through it stays safe.
- Electrolytic capacitors leak, and their real value can be 20% off the label. If you need accurate timing, use a film or ceramic (C0G) capacitor instead.
- The output can sink or source up to about 200 mA: enough for an LED or small buzzer. For bigger loads (motor, relay) use a transistor.
- The CMOS version (such as the TLC555 or 7555) draws much less current, so it suits battery-powered circuits better.
Calculate it in a second
The 555 timer calculator works out the frequency, duty cycle and HIGH and LOW times, and also has a single-pulse (monostable) mode, with the circuit drawing and waveform.