Engineering · Components in Time
Capacitors & RC Time
A resistor reacts instantly. A capacitor takes time. It stores charge, and filling it through a resistor is never instant. That delay is how circuits keep time, smooth out shaky power, and ignore a bouncing button. To see it, you need a tool that draws voltage over time: an oscilloscope.
← Back to Engineering- Q = CVBigger capacitor, more charge stored at the same voltage.
- τ = RCThe time constant. Ohms × farads = seconds.
- 63% · 5τOne τ gets you 63% of the way. Five τ is basically full.
The big idea
Two plates and a gap
Push current into a capacitor and electrons crowd onto one plate while the same number leave the other. The more charge piles up, the higher the voltage across the gap, and the harder it pushes back against the current filling it.
That's why charging slows down as it goes: at first the capacitor is empty and current rushes in. As it fills, the capacitor's voltage gets closer to the supply's, so there's less voltage left across the resistor, so less current flows. It approaches full but, in theory, never quite gets there.
Capacitance is measured in farads (F). One farad is huge. Real parts are usually microfarads (µF, millionths), nanofarads (nF), or picofarads (pF).
Water picture: a capacitor is a stretchy balloon in a water pipe. Water can't pass through it, but it can stretch and fill. The resistor is a narrow pipe that decides how fast it fills.
Sim 1 · Oscilloscope bench
Watch an RC circuit charge and discharge
Flip the switch to Charge and the 5 V supply fills the capacitor through the resistor. Flip it to Discharge and the capacitor empties back through the same resistor. The scope shows the capacitor voltage (yellow) and the current, drawn as the voltage across the resistor (blue). The time base adjusts so the whole curve fits, so read the time per division under the screen.
Missions 0 of 4
- Pick R and C so τ is 1 second (within 10%), then charge the capacitor from empty past the 1τ line. Hint: 10 kΩ × 100 µF = 1 s.
- Charge to above 4.9 V, then discharge and watch it fall past 37% (1.85 V). Discharging loses 63% per τ, the mirror image of charging.
- Make a capacitor that is full in under a millisecond, then charge it all the way. Small R and small C.
- Make a timer that takes over a minute to fill (5τ > 60 s), then start charging it.
| Time | 1τ | 2τ | 3τ | 4τ | 5τ |
|---|---|---|---|---|---|
| Charging: % of supply | 63% | 86% | 95% | 98% | 99.3% |
| Discharging: % left | 37% | 14% | 5% | 2% | 0.7% |
Meet the tool
Multimeter or oscilloscope?
A multimeter shows one number, updated a few times a second. That's perfect for a battery or a steady sensor. But PWM, a charging capacitor, a bouncing button, or a sound wave change thousands of times a second, faster than a meter can show. A scope draws voltage on the up-down axis and time on the left-right axis, like a graph that keeps redrawing.
Volts per division
The vertical scale. At 1 V/div, a trace four squares above the zero line is 4 V.
Time per division
The horizontal scale. At 2 ms/div, the full 10-square screen shows 20 ms.
Trigger
Tells the scope when to start drawing, such as “the moment the voltage rises past 2.5 V,” so a repeating signal holds still on the screen.
Classroom options
A small handheld scope costs about the same as a good meter. No scope? The Arduino Serial Plotter is a very slow scope you already own (see the code below).
Identify them
Reading a capacitor
Ceramic (disc or chip)
Small, cheap, not polarized. Usually 10 pF to 1 µF. Marked with a three-digit code, read like a resistor: two digits, then the number of zeros, in picofarads.
Electrolytic
A can shape, 1 µF and up. Polarized: the stripe marks the negative leg, and the longer leg is positive. The value and maximum voltage are printed on the side.
Film
Boxy, stable, not polarized. Common in audio and timing circuits where the value must stay put.
Supercapacitor
Whole farads in a coin-sized part. Low voltage (often 2.7 V) but it can run a small clock or keep memory alive for days.
Ratings matter: every capacitor has a maximum voltage. Choose one rated well above your circuit's voltage. For a 5 V project, 10 V or 16 V parts are typical. An electrolytic installed backward or over its rating can bulge, leak, or burst. Big capacitors can also hold a charge after the power is off, so discharge them through a resistor before handling, never with a screwdriver.
Sim 2 · Filter a bouncing button
An RC filter that ignores bounces
When you press a button, its metal contacts bounce for a few milliseconds before settling. An Arduino is fast enough to count each bounce as a separate press. In Inputs you fixed that in code. Here's the hardware fix: an RC low-pass filter. The capacitor can't change voltage instantly, so short bounces get smoothed away. Your goal: exactly 1 press counted, with less than 10 ms of delay.
The pins on an Arduino UNO have a built-in Schmitt trigger: the input switches to HIGH above about 3 V and only switches back to LOW below about 1.5 V. That gap between the two thresholds is what lets a slow, smooth RC curve register as one clean press.
Spot them in the wild
Five jobs capacitors do
Decoupling
A 100 nF ceramic right next to every chip's power pin. When the chip suddenly gulps current, the tiny capacitor supplies it instantly so the voltage doesn't dip. Look at any Arduino: they're everywhere.
Smoothing
Big electrolytics after a rectifier fill the gaps between the bumps of rectified AC, turning it into nearly steady DC. Motors on a robot need one too.
Timing
The famous 555 timer chip flashes an LED at a rate set by one R and one C. Blink rates, tone pitches, and delays all come from τ = RC.
Filtering
RC filters remove noise from sensors, debounce buttons, and in audio, act as bass and treble controls.
Energy bursts
A camera flash charges a capacitor slowly from a battery, then dumps it all into the bulb in a millisecond.
Real-bench lab
Turn your Arduino into a slow scope
Wire 5 V → 10 kΩ → A0, and A0 → a 100 µF capacitor → GND (stripe to GND). Run the sketch, open Tools → Serial Plotter, and press reset. You'll see the same curve as Sim 1, with τ = 1 s.
const int CAP_PIN = A0;
unsigned long start;
void setup() {
Serial.begin(115200);
start = millis();
}
void loop() {
float volts = analogRead(CAP_PIN) * (5.0 / 1023.0);
Serial.print("time_s:");
Serial.print((millis() - start) / 1000.0);
Serial.print(" volts:");
Serial.println(volts);
delay(20);
} Check your τ: find the time where the curve crosses 3.16 V (63% of 5 V). It won't be exactly 1.00 s. Electrolytics are often ±20%, so anywhere from 0.8 s to 1.2 s is a healthy part. To discharge it again, unplug the 5 V wire and connect it to GND.
Quick check
Can you predict RC timing?
1. What is the time constant of a 4.7 kΩ resistor with a 470 µF capacitor?
2. An empty capacitor charges from 5 V through a resistor. What is its voltage after one time constant?
3. A small ceramic capacitor is marked 104. What is its value?
4. Why does the charging current get smaller over time?
5. You need a 100 µF electrolytic on a 9 V robot. Which part and placement is right?