36. Backup power circuit

Circuit

Loading simulator…

Design Approach

The device should run from the main 5 V supply when available, automatically transfer to 4.2 V backup power, and briefly survive a complete shutdown. Diode-OR power selection provides one-way supply isolation; a capacitor across the load provides stored energy.

How the Circuit Works

  1. Select the active source. The solution adds D1 from MAIN_IN/I_MAIN and D2 from BACKUP_IN/I_BACKUP toward a common output node. Their cathodes meet at the supply node feeding R_LOAD = 1 kΩ.
  2. Understand automatic transfer. At both sources available, the main path is higher and the backup diode blocks reverse current. The load voltage is roughly 5−0.635≈4.37V5 - 0.635 \approx 4.37\,\mathrm{V}. If main power disappears, the backup path conducts and the node settles around 4.2−0.635≈3.57V4.2 - 0.635 \approx 3.57\,\mathrm{V}.
  3. Store energy for shutdown. The solution adds C_HOLD = 100 µF across R_LOAD. With both sources removed after backup operation, the capacitor starts near 3.57 V and discharges through the 1 kΩ load. Its time constant is τ=100ms\tau = 100\,\mathrm{ms}.
  4. Check the hold-up window. At 10 ms, output is about 3.57e−10/100V≈3.23V3.57e^{-10/100}\,\mathrm{V}\approx3.23\,\mathrm{V}, exceeding 3 V. At 100 ms, it is about 3.57e−1V≈1.31V3.57e^{-1}\,\mathrm{V}\approx1.31\,\mathrm{V}, below 2 V.

Verify the Circuit

Check normal and backup supply states, and inspect I_MAIN/I_BACKUP for negligible reverse current into either source. For shutdown, first settle the circuit on backup only; then set both supplies to 0 V and measure load voltage at 10 ms and 100 ms.

Key Learnings

  • Diode-OR selection provides automatic power-source priority based on available voltage.
  • Hold-up sizing depends on the starting voltage after diode loss, not simply the nominal battery voltage.