Capacitors & Timing
What a Capacitor Does
-
Charging: Voltage across the capacitor rises as it fills with charge.
- Discharging: Voltage drops as it gives up that stored charge.
Capacitance Values & Ratings
- µF (microfarads) 1 µF = 1,000 nF
- nF (nanofarads) 1 nF = 1,000 pF
- pF (picofarads)
Polarised vs. Non-Polarised
-
Polarised (e.g., electrolytic capacitors): Must be connected the right way round (+ and – marked).
-
Non-polarised (e.g., ceramic): Can be connected either way.
RC Timing Basics
The time constant is:
Where:
-
= resistance in ohms (Ω)
-
= capacitance in farads (F)
-
= time in seconds (s) for the capacitor to charge to ~63% or discharge to ~37% of its maximum voltage.
A capacitor is considered fully charged after approximately 5τ.
Example 1 – LED Fade In (Capacitor + Resistor)
LED starts dim, brightens smoothly.
Parts:
-
Resistor 10 kΩ
-
Capacitor 100 µF (100 × 10⁻⁶ F)
-
LED
Resistor 330 Ω
Calculation:
The time it takes for the LED to become bright can be calculated by: -
τ = R×C
τ = 10,000×0.0001
τ = 1 s
In ~5 seconds (5 × τ), it will be almost fully bright.
Circuit Diagram:
How to build:-
Connect the 10kΩ Resistor and Capacitor in series between +V and GND.
-
Connect LED + 330 Ω Resistor in parallel with the Capacitor.
-
When power is applied, capacitor charges through R1 and the LED brightness ramps up.
Example 2 – Power-On Delay with a Transistor
Delay turning an LED on after power is applied.
Parts:
-
Resistor 47 kΩ
-
Capacitor = 220 µF
-
NPN transistor (e.g., 2N2222)
-
LED
Resistor 330 Ω
Calculation:
-
The transistor begins to switch on when the capacitor voltage reaches ~0.7 V.
-
Delay will be shorter than 10.34 s because 0.7 V is much less than supply voltage typically around 1–3 seconds.
Circuit Diagram:
-
Connect 47 kΩ Resistor from +5V to 220 µF Capacitor.
-
Connect transistor base to the capacitor. Connect the emitter to GND.
-
Connect LED + resistor from +V to transistor collector.
-
When powered the capacitor charges slowly until base voltage reaches 0.7 V which causes the transistor to turn on and the LED lights up.
Tips:
-
Increasing Resistance or Capacitance increases delay.
-
You can stack capacitors in parallel to increase Capacitance.





