23. Set charging rate

Circuit

Loading simulator…

Design Approach

The capacitor must rise from 0 V to about 3.16 V in 10 ms after the switch closes. That value is approximately 63.2% of a 5 V step, the defining point of one RC time constant.

How the Circuit Works

  1. Use the charging equation. A discharged capacitor follows:VC(t)=VIN(1−e−t/(RC))V_C(t)=V_{\mathrm{IN}}\left(1-e^{-t/(RC)}\right)

    At t=RCt=RC, its voltage reaches about 0.632 of the final value.

  2. Choose the resistance. With the supplied C1 = 10 µF and required RC = 10 ms, use:R1=10ms10μF=1kΩR_{1} = \frac{10\,\mathrm{ms}}{10\,\mu\mathrm{F}} = 1\,\mathrm{k}\Omega
  3. Complete the path. The solution adds R1 = 1 kΩ between SW1 and the VC node. C1 connects from that node to ground. Closing SW1 starts charging through R1.
  4. Follow the transient. Initially, the capacitor is nearly a short and R1 limits current to about 5V1kΩ=5mA\frac{5\,\mathrm{V}}{1\,\mathrm{k}\Omega} = 5\,\mathrm{mA}. Current decays as VC rises; at 10 ms, VC≈5(1−e−1)V=3.16VV_C\approx5\left(1-e^{-1}\right)\,\mathrm{V}=3.16\,\mathrm{V}.

Verify the Circuit

Begin with C1 discharged, close SW1, and inspect VC at 10 ms. It should be approximately 3.16 V. Double R1 to 2 kΩ and see the charging process slow: at 10 ms, VC is only about 1.97 V.

Key Learnings

  • The RC time constant determines how quickly a capacitor charges.
  • Charging current starts highest and falls as the capacitor approaches the supply voltage.