Raspberry Pi Pico
Raspberry Pi · RP2040
- MHz
- 133
- GPIO
- 26
- Flash
- 2 MB
- RAM
- 264 KB
Calculator
Time constant, cutoff frequency and capacitor voltage over time.
When a capacitor charges through a resistor, its voltage does not jump — it climbs along a curve. The time constant τ = R × C describes how quickly. After one τ the capacitor reaches 63.2% of the supply; after about five τ it is effectively full.
The same R and C form a first-order low-pass filter with a cutoff frequency of 1 / (2πRC). RC circuits are used to debounce buttons, smooth PWM into an analog level, filter ADC noise and delay a reset signal.
τ = R × CVc(t) = Vs × (1 − e^(−t/τ))Vc(t) = Vs × e^(−t/τ)fc = 1 / (2π × R × C)Worked example. 10 kΩ and 10 µF give τ = 100 ms and fc = 1.59 Hz. After 100 ms the capacitor reaches 63.2% of 5 V = 3.16 V.
Never fully in theory, but after 5τ it is at 99.3% — good enough for most purposes.
Mechanical buttons bounce for about 1–10 ms, so target a τ of 1–5 ms, for example 10 kΩ with 470 nF. Software debouncing is often simpler.
Use an RC low-pass with a cutoff far below the PWM frequency — at least 10× lower. A 1 kHz PWM needs a cutoff under 100 Hz, so 10 kΩ with 1 µF (about 16 Hz) works well, at the cost of a slower response.
Yes. 1 kΩ × 1 µF = 1,000 Ω × 0.000001 F = 0.001 s = 1 ms. This calculator uses kΩ, µF and ms for convenience.
Free download
Logic levels, pins to avoid, I2C / SPI / UART basics and a quick-pick table of the best boards — on one printable PDF. Enter your email and it's yours.
Only used to send the sheet and the odd databit.me update. See the privacy policy.