Short answer
In a 555 astable circuit, the frequency is approximately:
f = 1.44 / ((R1 + 2R2) × C)
and the duty cycle is:
Duty cycle = (R1 + R2) / (R1 + 2R2)
Here R1 and R2 are the two timing resistors and C is the timing capacitor. These formulas are approximations, so the real output will differ somewhat from the calculated value.
How the astable works
The 555 contains two comparators with thresholds at one-third and two-thirds of the supply voltage, plus an internal flip-flop and a discharge transistor. On the common 8-pin 555, pins 2 and 6 connect to the timing capacitor, pin 7 connects to the junction of R1 and R2, and pin 3 is the output.
In astable mode, the timing capacitor charges through R1 and R2 and discharges through R2 alone. The output is high while the capacitor charges and low while it discharges. Because the two thresholds are separated, the circuit has hysteresis, much like a Schmitt trigger. The comparators themselves are described in op amp comparator circuits.
The formulas
- High time: t_high = 0.693 × (R1 + R2) × C
- Low time: t_low = 0.693 × R2 × C
- Period: T = t_high + t_low = 0.693 × (R1 + 2R2) × C
- Frequency: f = 1 / T ≈ 1.44 / ((R1 + 2R2) × C)
- Duty cycle: t_high / T = (R1 + R2) / (R1 + 2R2)
Worked example
Take R1 = 1 kΩ, R2 = 10 kΩ and C = 10 µF.
- R1 + 2R2 = 21 kΩ
- t_high = 0.693 × 11,000 × 10 µF ≈ 76 ms
- t_low = 0.693 × 10,000 × 10 µF ≈ 69 ms
- Period T ≈ 145 ms
- Frequency f ≈ 1 / 0.145 s ≈ 6.9 Hz
- Duty cycle = 11 / 21 ≈ 52%
Duty cycle below 50%
In the basic astable, R1 always sits in the charging path, so the high time is always longer than the low time. The duty cycle is therefore always above 50%. It approaches 50% as R1 becomes small compared with R2.
To get a duty cycle below 50%, a common variant places a diode across R2. That changes the timing equations, so use a reference that gives the modified formulas for that circuit.
Practical tips
- Use resistor values in a moderate range. Values from roughly 1 kΩ to a few megohms are typical. Very large resistors with small capacitors are more sensitive to leakage and noise.
- Decouple the supply. Place a 10 nF to 100 nF capacitor between the supply pin and ground, close to the chip.
- Filter the control pin. A small capacitor, often around 10 nF, on pin 5 is a common way to reduce noise on the threshold voltage.
- Expect tolerance. A 5% resistor and a 10% capacitor can each shift the frequency, and supply voltage changes it too. Measure the output with a frequency counter or an oscilloscope.
- Choose capacitor type with care. Electrolytic capacitors have wide tolerances. A film or ceramic capacitor usually gives a steadier frequency.
Use the formulas by hand or with a reliable calculator, and then check the result on the bench.