32. Automatic backup supply

Circuit

Loading simulator…

Design Approach

A device needs to draw power from its 5 V main supply whenever available, then transfer automatically to a 4.2 V backup. Two correctly oriented diodes form a simple diode-OR circuit that selects the higher available source and prevents one source from feeding the other.

How the Circuit Works

  1. Create two one-way paths. The solution adds D1 in series with MAIN_IN and I_MAIN, and D2 in series with BACKUP_IN and I_BACKUP. Both diode cathodes meet at VOUT, which supplies R_LOAD = 1 kΩ to ground.
  2. Prefer the higher supply. With both sources connected, the 5 V main supply forward-biases D1. VOUT is approximately 5−0.635=4.37V5 - 0.635 = 4.37\,\mathrm{V}. Because the backup is only 4.2 V, D2 is reverse-biased and the backup does not deliver current.
  3. Transfer on failure. When MAIN_IN falls to 0 V, D1 stops conducting and D2 turns on. VOUT becomes approximately 4.2−0.635=3.57V4.2 - 0.635 = 3.57\,\mathrm{V}; the load remains powered, now from the backup.
  4. Block reverse feed. With both sources removed, neither diode supplies the load, and VOUT falls toward 0 V.

Verify the Circuit

Test (MAIN_IN, BACKUP_IN) as (5 V, 4.2 V), (0 V, 4.2 V), and (0 V, 0 V). Expect approximately 4.37 V, 3.57 V, and 0 V at VOUT, respectively. Observe how I_MAIN and I_BACKUP exchange roles.

Key Learnings

  • Diode-OR networks provide automatic source selection without control logic.
  • Forward voltage drop reduces the usable load voltage; Schottky diodes or ideal-diode controllers can reduce that loss in practical hardware.