The 555 timer in monostable mode makes one pulse when triggered. In astable mode it needs no trigger at all: it charges and discharges a capacitor forever, and the output flips between high and low on its own. It is the simplest way to make a square wave for blinking an LED, a buzzer, or a clock signal. This article works out the frequency and duty cycle for a real design, and shows how to make the duty cycle exactly 50%.
Figure 1: A 555 astable multivibrator (a) — R1 = 1 kΩ and R2 = 10 kΩ charge C = 100 nF, and pin 7 discharges it. The waveforms (b) show the capacitor voltage swinging between 1/3 and 2/3 of the 5 V supply while the output is high for 762 µs and low for 693 µs. (Schematic, not to scale.)
How it works — two thresholds, one capacitor
Inside the 555, a voltage divider sets two thresholds at 1/3 and 2/3 of the supply voltage. With a 5 V supply those are 1.67 V and 3.33 V. The capacitor C charges through R1 + R2 toward 5 V. When its voltage reaches the upper threshold (3.33 V), the 555 turns on its discharge transistor at pin 7, the output goes low, and C discharges through R2 only toward 0 V. When the voltage falls to the lower threshold (1.67 V), the transistor turns off, the output goes high, and C starts charging again. The output is high while C charges and low while it discharges — a square wave that runs forever.
Worked example — 687 Hz from 1 kΩ, 10 kΩ and 100 nF
Charging from 1.67 V to 3.33 V takes 0.693 time constants (ln 2), with the time constant (R1 + R2) × C:
thigh = 0.693 × (R1 + R2) × C = 0.693 × 11 × 103 × 100 × 10−9 = 762 µs
Discharging from 3.33 V back to 1.67 V also takes 0.693 time constants, this time with R2 × C:
tlow = 0.693 × R2 × C = 0.693 × 10 × 103 × 100 × 10−9 = 693 µs
The period is 762 + 693 = 1.455 ms, so the frequency is:
f = 1 / 1.455 × 10−3 = 687 Hz
The duty cycle (the fraction of the time the output is high) is:
Duty = thigh / (thigh + tlow) = 762 / 1455 = 52.4%
The textbook formula f = 1.44 / ((R1 + 2 × R2) × C) gives 686 Hz — the same answer, since 1.44 is just 1 / 0.693 rounded. As a check, the capacitor voltage at the end of the low period is 3.33 × e−0.693 = 3.33 × 0.5 = 1.67 V — exactly the lower threshold, which is why tlow = 0.693 × R2 × C.
Driving the LED
Pin 3 drives an LED through a 330 Ω resistor to ground. The LED drops about 2 V, so the current while the output is high is:
I = (5 − 2) / 330 = 9.1 mA
The LED takes 2 V × 9.1 mA = 18 mW, and the resistor takes 3 V × 9.1 mA = 27 mW — a standard quarter-watt resistor is more than enough. The 555 output can source or sink about 200 mA, so a single LED is no load at all. At 687 Hz the LED blinks far too fast for the eye to see, so it looks steadily lit at about half brightness; to see the blink, use a much larger capacitor — for example 10 µF, which gives about 6.9 Hz. Tie pin 4 (reset) to the supply so the chip cannot be reset by noise, and put a 10 nF capacitor from pin 5 (control voltage) to ground to keep the thresholds quiet.
Designing for another frequency — 1 kHz at exactly 50% duty
Notice that thigh is always longer than tlow, because charging goes through R1 + R2 while discharging goes through R2 only. So the plain circuit can never reach 50% duty — the closest is just above 50% when R1 is much smaller than R2. To get exactly 50%, add a diode across R2 (anode toward the capacitor): the capacitor then charges through R1 only, and discharges through R2 only. With R1 = R2 the two times are equal. For 1 kHz with C = 100 nF:
R = 1 / (2 × 0.693 × 1000 × 100 × 10−9) = 7215 Ω ≈ 7.2 kΩ
With R1 = R2 = 7.2 kΩ the frequency is 1 / (2 × 0.693 × 7.2 × 103 × 100 × 10−9) = 1002 Hz at 50% duty. For 10 kHz without the diode, use the textbook formula: R1 + 2 × R2 = 1.44 / (10,000 × 100 × 10−9) = 14,400 Ω, so with R1 = 1 kΩ, R2 = 6.7 kΩ.
Key points to remember
- The 555 astable charges C through R1 + R2 up to 2/3 Vcc, then discharges it through R2 down to 1/3 Vcc; the output is high while charging and low while discharging.
- Worked example: R1 = 1 kΩ, R2 = 10 kΩ, C = 100 nF, Vcc = 5 V → t-high = 762 µs, t-low = 693 µs, period 1.455 ms, f = 687 Hz, duty 52.4%.
- Check: the capacitor voltage at the end of the low period is 3.33 × e^(−0.693) = 1.67 V — exactly the lower threshold.
- LED: (5 − 2) / 330 Ω = 9.1 mA; the LED takes 18 mW and the resistor 27 mW. Tie pin 4 to Vcc and decouple pin 5 with 10 nF to ground.
- Design rule: the plain circuit can never reach 50% duty (t-high is always longer). With a diode across R2 and R1 = R2 = 7.2 kΩ, C = 100 nF gives 1002 Hz at 50% duty; for 10 kHz use R1 = 1 kΩ and R2 = 6.7 kΩ.
