EN

555 timer

Astable, monostable and resistor design for a given frequency and duty cycle

Calculator

Circuit
V
kΩ
kΩ
µF

Ideal formulas. The capacitor tolerance (often ±10 to ±20 % for electrolytics) and its leakage matter more than the 555 itself; for accurate times use film capacitors and 1 % resistors.

How the 555 works

Inside the 555 there is a divider of three equal resistors that sets two reference voltages, at 1/3 and 2/3 of the supply; two comparators; an SR latch and a discharge transistor. When the voltage on TRIG drops below 1/3 of VCC, the latch is set and the output goes high; when the voltage on THRES exceeds 2/3, it resets, the output goes low and the discharge transistor pulls DIS to ground. It all comes down to charging and discharging a capacitor between those two voltages, which is why the times do not depend on the supply.

PinNameFunction
1GNDGround
2TRIGTrigger: below 1/3 VCC it sets the output to 1
3OUTOutput, about 200 mA on the bipolar NE555
4RESETLow stops the 555; tie to VCC if unused
5CTRLAccess to the 2/3 point; a 10 nF capacitor to ground prevents noise
6THRESThreshold: above 2/3 VCC it sets the output to 0
7DISDischarge: grounded while the output is 0
8VCC4.5 to 16 V on the NE555; 2 to 15 V on CMOS versions

Astable

In astable mode the 555 oscillates on its own. The capacitor charges through R1 and R2 and discharges only through R2, via the DIS pin:

\[ t_H = 0.693\,(R_1 + R_2)\,C \]
\[ t_L = 0.693\,R_2\,C \]
\[ f = \frac{1.44}{(R_1 + 2R_2)\,C} \]

Because the high time includes R1 and the low time does not, the duty cycle is always above 50 %. To go below that, a diode is placed in parallel with R2: charging then goes only through R1 and discharging only through R2, and tH = 0.693·R1·C. R1 should not be below 1 kΩ, because during discharge it connects VCC to ground through the internal transistor.

Monostable

In monostable mode the 555 gives a single pulse of fixed length every time TRIG drops below 1/3 of VCC: it is a timer. The length is the time the capacitor takes to charge from 0 to 2/3 through R:

\[ T = \ln 3 \cdot R\,C \approx 1.1\,R\,C \]

It is used to stretch a push-button pulse, switch a light on for a time or remove bounce. The trigger pulse must be shorter than T; if not, a series capacitor is coupled to TRIG.

Versions and alternatives

Related: Schmitt trigger and hysteresis, PWM calculator, push-button debouncing and RLC circuit.