25. Add discharge path

Circuit

Loading simulator…

Design Approach

A capacitor can stay charged after the supply is disconnected unless it has a path to release its stored energy. A resistor in parallel with C1 provides a predictable discharge while also determining steady supply current.

How the Circuit Works

  1. Select from the current target. With VIN = 5 V and desired steady IIN≈0.5mAI_{\mathrm{IN}} \approx 0.5\,\mathrm{mA}, the discharge resistor must be:R1=5V0.5mA=10kΩR_{1} = \frac{5\,\mathrm{V}}{0.5\,\mathrm{mA}} = 10\,\mathrm{k}\Omega
  2. Place the resistor across the capacitor. The solution adds R1 = 10 kΩ from the VC node to ground, in parallel with the existing C1 = 10 µF. The existing SW1 and I_IN connect the node to VIN when closed.
  3. Understand the powered state. Once the capacitor is charged to 5 V, it draws no ideal DC current. The 0.5 mA measured by I_IN flows through R1.
  4. Calculate discharge. After SW1 opens, the capacitor releases energy through R1. Its time constant is RC=10kΩ×10μF=100msRC=10\,\mathrm{k}\Omega\times10\,\mu\mathrm{F}=100\,\mathrm{ms}, and VC(t)=5e−t/(100ms)VV_C(t)=5e^{-t/(100\,\mathrm{ms})}\,\mathrm{V}. After 400 ms, VC≈0.092VV_{\mathrm{C}} \approx 0.092\,\mathrm{V}, satisfying the 0.1 V limit.

Verify the Circuit

Let the circuit settle with SW1 closed; check VC≈5VV_{\mathrm{C}} \approx 5\,\mathrm{V} and IIN≈0.5mAI_{\mathrm{IN}} \approx 0.5\,\mathrm{mA}. Open SW1 and inspect VC at 400 ms: it should be no more than 0.1 V.

Key Learnings

  • A parallel bleed resistor makes capacitor discharge predictable.
  • Faster discharge requires lower resistance but increases continuous power consumption while the supply is connected.