Labs / Analog · Intermediate · 30 min
RC charging
Measure the time constant tau = R x C.
Engineering instrumentation: This lab includes an instrument-style virtual test setup and parameter-driven waveform. For physical measurements, use the Practical Bench.
Parts
- Capacitor 100 uF
- Resistor 10k
- Push button
- Multimeter or ESP32 ADC
Steps
- Build R and C in series with a 5 V source.
- Discharge the capacitor, then connect the supply.
- Note the time to reach 63% of 5 V.
- Compare with tau from the simulation.
Safety: check polarity and power off before changing the circuit.
ESP32 code (Arduino IDE)
const int PIN=34;\nvoid setup(){ Serial.begin(115200); }\nvoid loop(){ int raw=analogRead(PIN); float v=raw*3.3/4095;\n Serial.println(v); delay(200); }Viva questions
What is tau?
The time to reach 63% of the final voltage, tau = R x C.
After 5 tau?
About 99% charged.
Use in electronics?
Timers, filters, debouncing and delays.