Making an RC time delay
Design a delay-on light: when the power comes on, the LED waits, then lights.
| Requirement | |
|---|---|
| Supply | 9 V |
| Delay | 3 s after switch-on, within 15% |
| Switch | the switch block: its OUT turns the LED on once its IN passes 2 V |
The LED and the switch block are on the board. Your job is the timing: a resistor from the + rail charging a capacitor, with the capacitor's voltage on the block's IN.
The maths
From empty, charging towards 9 V, the capacitor passes 2 V after
What RC (in seconds) gives a 3 s delay?
Answer in s.
Build it and pick values. Put a resistor from the + rail to a free column, the capacitor (+ leg in the same column) to the − rail, and a wire from that column to the block's IN, column 24 on this side of the gap.
The drawer's parts take any value: click one and type it. Keep the resistor at 10 kΩ or below: the block's input draws a little current through a 100 kΩ of its own, which stretches the delay if the resistor is large.
Press Stop and Run again: the delay repeats, because each run starts with the capacitor empty. On a real board nothing empties it when the power goes off, and a quick off-and-on would light the LED at once. What would fix that?
- A resistor across the capacitor, to drain it when the power goes off
- A bigger capacitor
- A smaller timing resistor
A timing circuit from a resistor and a capacitor:
- the capacitor charges smoothly; a threshold turns that into one definite moment;
- : the delay grows with R and with C;
- real thresholds and real capacitors vary, so RC timing is good to 10 or 20%, not to a millisecond.
On a real bench the 555 timer chip (topic 08) is this exact idea packaged: a capacitor charged through a resistor, and two thresholds at a third and two thirds of the supply, which makes its timing independent of the supply voltage.