Astable, monostable and resistor design for a given frequency and duty cycle
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.
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.
| Pin | Name | Function |
|---|---|---|
| 1 | GND | Ground |
| 2 | TRIG | Trigger: below 1/3 VCC it sets the output to 1 |
| 3 | OUT | Output, about 200 mA on the bipolar NE555 |
| 4 | RESET | Low stops the 555; tie to VCC if unused |
| 5 | CTRL | Access to the 2/3 point; a 10 nF capacitor to ground prevents noise |
| 6 | THRES | Threshold: above 2/3 VCC it sets the output to 0 |
| 7 | DIS | Discharge: grounded while the output is 0 |
| 8 | VCC | 4.5 to 16 V on the NE555; 2 to 15 V on CMOS versions |
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:
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.
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:
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.
Related: Schmitt trigger and hysteresis, PWM calculator, push-button debouncing and RLC circuit.