Measure an RC charging curve with an Arduino
Charge a capacitor through a resistor from an Arduino pin, sample the voltage with the ADC, and compare what you measure with the textbook curve V(1 − e^(−t/RC)).
What this proves to recruiters
- You can connect a formula to a real measurement.
- You can use an ADC and log data over time.
- You can explain the gap between expected and measured values.
Skills you will use
- RC transients
- ADC sampling
- Data logging
- Error analysis
Parts list
You can buy the listed parts online here:
| Part | Qty | Approx. price | Shop |
|---|---|---|---|
| Arduino Uno compatible board with USB cable | 1 | ₹550 | Find on Amazon |
| Breadboard, 830 points | 1 | ₹90 | Find on Amazon |
| Jumper wire set (male-male and male-female) | 1 | ₹120 | Find on Amazon |
| Resistor kit, ¼ W, assorted values | 1 | ₹150 | Find on Amazon |
| Capacitor kit, ceramic and electrolytic | 1 | ₹200 | Find on Amazon |
| Total, about | ₹1,100 | ||
Prices are rough online prices in India and change with the seller. You may already have some parts, or find them in your college lab.
As an Amazon Associate I earn from qualifying purchases. Buying through these links costs you nothing extra and helps keep this site free.
Free software
- Arduino IDE (Serial Plotter)
- Falstad circuit simulator
- Python with Matplotlib (optional)
Steps
- Pick R = 10 kΩ and C = 100 µF, so τ = RC = 1 s. That is slow enough to sample easily.
- Wire digital pin 8 → R → C → GND, and connect the top of the capacitor to A0.
- In code, set pin 8 HIGH, then read A0 every 10 ms for 5 s and print time and voltage (reading × 5 / 1023).
- Plot the readings and mark the time where the voltage reaches 63% of 5 V. That time is the measured τ.
- Compare the measured τ with RC. Explain the difference using the capacitor’s tolerance (often ±20%).
- Repeat for discharge (pin 8 LOW) and for two other resistor values.
Make it stand out
- Fit the curve in Python to estimate the real capacitance.
- Turn it into a simple capacitance meter that prints C.
Put it on your resume
Built an Arduino data logger to measure RC charging; matched the measured time constant to RC within [x]% and explained the error from component tolerance.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 2, “Circuits and devices”, of the Foundation roadmap.