If you need to combine two DC power sources without them back-feeding and destroying each other, the dual-source OR-ing diode circuit is the most robust, lowest-component-count solution available. For loads under 3A at 5V, the default recommendation is to use an SB560 Schottky diode on each source line. This configuration automatically routes power from the highest-voltage source to the load while blocking reverse current into the lower-voltage or dead source.
The Dual-Source Diode Circuit Topology
The OR-ing topology relies on the unidirectional current flow of diodes to create a logical 'OR' gate for power rails. When Source 1 is active, its diode is forward-biased, passing current to the load. If Source 1 fails, Source 2's diode takes over, provided its voltage is higher than the dead Source 1's voltage.
Here is the standard node mapping for a two-source redundancy build:
- Node A (Vin1 Anode): Connected to the positive terminal of Primary Source (e.g., 5V USB wall adapter).
- Node B (Vin2 Anode): Connected to the positive terminal of Backup Source (e.g., 5V boosted LiPo battery).
- Node C (Common Cathode / Vout): The tied cathodes of both diodes. This node feeds the positive rail of your load.
- Node D (Common Ground): The shared ground reference for Source 1, Source 2, and the Load.
Source Behavior & State Table
Understanding how the circuit reacts to voltage differentials is critical. The diode with the higher anode voltage will conduct, while the other remains reverse-biased. Note that the output voltage (Node C) will always be the input voltage minus the diode's forward voltage drop ($V_f$).
| Vin1 (Node A) | Vin2 (Node B) | Vout (Node C) | Current Path | State of D1 / D2 |
|---|---|---|---|---|
| 5.0V | 4.2V | ~4.5V | Vin1 to Load | D1 Forward / D2 Reverse |
| 5.0V | 5.0V | ~4.5V | Shared (mismatch dependent) | Both Forward (unbalanced) |
| 0.0V (Dead) | 4.2V | ~3.7V | Vin2 to Load | D1 Reverse / D2 Forward |
| 5.0V | 0.0V (Dead) | ~4.5V | Vin1 to Load | D1 Forward / D2 Reverse |
Why Diode OR-ing Over MOSFET Alternatives?
When designing power multiplexers, you generally choose between passive diode OR-ing and active MOSFET-based 'ideal diode' controllers (like the TI Power Multiplexer family). Here is why the passive diode circuit wins for most hobbyist and mid-current applications:
| Criteria | Passive Diode OR-ing | Active MOSFET (Ideal Diode) |
|---|---|---|
| Bill of Materials (BOM) | 2x Diodes ($0.20 total) | 2x ICs + 4x MOSFETs + Caps ($6.00+) |
| Switching Speed | Instantaneous (no control loop) | Microseconds (amplifier slew rate limited) |
| Voltage Drop | 0.3V to 0.7V (lost as heat) | 0.02V to 0.05V ($I imes R_{DS(on)}$) |
| Failure Mode | Predictable (open or short) | Complex (IC latch-up, gate oxide rupture) |
Verdict: Choose diodes when your load can tolerate a 0.5V drop and you need absolute simplicity and zero quiescent current. Choose MOSFETs only when a 0.5V drop ruins your system headroom (e.g., a 3.3V LDO fed by a 3.7V battery) or when currents exceed 5A and diode heat becomes unmanageable.
Design Walkthrough: Sizing for a 5V / 2A Load
Let's design a redundancy circuit for a Raspberry Pi 4 (peaking at 2A) running from a 5V primary supply and a 5V backup. We need to select the right diode. According to fundamental semiconductor theory, we must calculate the forward voltage drop ($V_f$) and power dissipation ($P_d$).
The Silicon Mistake (1N4007)
A standard 1N4007 silicon rectifier has a $V_f$ of roughly 1.0V at 1A, and higher at 2A.
$V_{out} = 5.0V - 1.0V = 4.0V$.
The Raspberry Pi will brown out. Furthermore, $P_d = 2A imes 1.0V = 2.0W$. The 1N4007 DO-41 package will overheat and fail in minutes without a massive heatsink.
The Schottky Solution (1N5822 vs. SB560)
Schottky diodes use a metal-semiconductor junction, yielding a much lower $V_f$.
A 1N5822 (3A rated) has a $V_f$ of ~0.4V at 2A.
$V_{out} = 5.0V - 0.4V = 4.6V$ (Safe for the Pi).
$P_d = 2A imes 0.4V = 0.8W$.
Extreme Failure Modes: What Breaks?
Unlike digital logic gates, power diodes fail in physical ways that can cascade. Here is the failure-mode contrast you must design for:
- Diode Fails Short (Catastrophic): If D1 shorts internally, Node A and Node C become one. If Vin1 dies and drops to 0V, Vin2 (the backup battery) will back-feed through the shorted D1 into the dead Vin1 circuitry. If Vin1 is a dead USB port, it will try to back-power the host PC's USB bus, potentially tripping the host's overcurrent protection or frying the port. Mitigation: Add a polyfuse (PPTC) in series with each source before the diode.
- Diode Fails Open: The circuit loses redundancy. If D1 opens, Vin1 is entirely disconnected. The load silently switches to Vin2. This is a 'safe' failure, but your system will drain the backup battery without warning. Mitigation: Add an LED and current-limiting resistor from Node A to Ground to visually indicate primary source presence.
- Reverse Voltage Spike: If an inductive load (like a motor) is switched off, it generates a flyback spike. If this spike exceeds the diode's Peak Reverse Voltage (PRV), the diode avalanches and shorts. The SB560's 60V PRV handles most 5V/12V inductive spikes, whereas a 20V Schottky might not.
Step-by-Step Breadboard Verification
Before soldering, validate the OR-ing behavior on a breadboard. Do not skip the current-limiting step.
- Prep the Sources: Set Bench Power Supply CH1 to 5.0V (Primary). Set CH2 to 4.5V (Backup). Leave outputs disabled.
- Wire the Diodes: Insert two SB560 diodes. Connect CH1+ to Anode 1. Connect CH2+ to Anode 2. Twist the two Cathodes together and plug them into the positive power rail.
- Wire the Load: Connect a 10Ω, 5W power resistor between the positive rail and the common ground rail. (This draws ~0.5A, safe for breadboard contacts).
- Test Primary: Enable CH1 only. Measure the positive rail with your multimeter. You should read ~4.6V. Verify CH2 shows 0A current.
- Test Switchover: Enable CH2. Slowly ramp CH2 voltage up to 5.2V. Watch your multimeter on the positive rail climb to ~4.8V. Watch CH1's current display drop to 0.00A as D1 becomes reverse-biased.
- Test Fault: Drop CH1 to 0V (simulating a cable unplug). Verify the positive rail stays at ~4.8V, powered entirely by CH2.
The Decision Tree & Final Recommendation
Use this decision path to lock in your BOM for any dual-source DC redundancy project.
| Condition | Required Action | Concrete Part Pick |
|---|---|---|
| Load is < 100mA (e.g., MCU sleep mode) | Use small-signal silicon. $V_f$ drop is negligible at low current. | 1N4148 (DO-35) |
| Load is 100mA - 3A, 5V/12V system | Use axial Schottky. Accept the 0.4V drop for zero-quiescent-current simplicity. | SB560 (DO-201AD) |
| Load is > 3A, or $V_{drop}$ > 0.3V causes brownout | Abandon passive diodes. Use an active ideal diode controller with N-channel MOSFETs. | LTC4359 IC + CSD17571Q5A FETs |
| Sources are AC (not DC) | Diode OR-ing will not work. You need a mechanical relay or contactor interlock. | Omron G2R-2 DPDT Relay |
For deeper reading on semiconductor junction behavior and thermal derating curves, refer to the All About Circuits semiconductor textbook chapter on diode physics.






