Capacitor Charging Circuit — Step by Step
Understanding how a capacitor charges and discharges is essential to electronics. The RC time constant governs timing in 555 timer circuits, smoothing in power supplies, and sampling in ADCs. This guided simulation makes it visual and interactive.
Circuit Diagram
Key formula: V_c(t) = Vs × (1 − e−t/RC)
Where τ = RC is the time constant. After 1τ the capacitor reaches 63.2% of Vs. After 5τ it is considered fully charged (99.3%).
Step-by-Step Guide
Pick values and calculate τ = R × C before simulating. Example: R = 10kΩ, C = 100µF
τ = 10,000 × 0.0001 = 1 second
This means after 1 second the capacitor will be at 63.2% of the supply voltage. After 5 seconds (5τ), it is fully charged. This is a slow enough charging rate to watch in real time in the simulator.
Open the capacitor simulation below. The circuit shows a voltage source, resistor, and capacitor. Click Run to start charging.
To add an oscilloscope: click Scope → New Scope, then click on the capacitor to probe it. You will see the exponential charge curve building in real time on the scope display.
▶ Open Capacitor Charging SimWith the scope running, identify the time when the capacitor voltage reaches 63.2% of the supply voltage. With a 5V supply, that is at 3.16V.
If R = 10kΩ and C = 100µF, this should occur at exactly t = 1 second. Verify this in the simulation by reading the scope horizontal axis.
In the simulator, pause the simulation once the capacitor is fully charged. Then change the voltage source to 0V (or disconnect it) to watch the capacitor discharge through the resistor.
Discharge equation: V_c(t) = V0 × e−t/RC. After 1τ the voltage drops to 36.8% of its initial value. After 5τ it is essentially zero.
▶ Capacitor Basic DemoDouble-click R and change to 1kΩ. The time constant drops to 0.1 seconds — watch how much faster charging happens. Change C to 10µF for a τ of 10ms — near-instant on the simulator timescale.
Then try: R = 1MΩ, C = 1µF. τ = 1 second again — same time constant, same curve shape, completely different component values. This demonstrates that only the RC product matters, not individual values.