Loading simulator…
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.
VIN = 5 V and desired steady , the discharge resistor must be: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.I_IN flows through R1.SW1 opens, the capacitor releases energy through R1. Its time constant is , and . After 400 ms, , satisfying the 0.1 V limit.Let the circuit settle with SW1 closed; check and . Open SW1 and inspect VC at 400 ms: it should be no more than 0.1 V.