Redundant Power Input Design: Cutting Failover From 1.8 ms to 20 µs
Redundant power inputs fail over cleanly when three things are designed together: a switch that blocks current in both directions, a handoff faster than the rail’s hold-up time, and status signals that tell firmware what happened. On our carrier, replacing a discrete PMOS switch with a priority power mux cut the switchover gap from 1.8 ms to 20 µs, and 100 µF on the input bus holds the rail for 0.6 ms. The 5 V rail now dips by 60 mV when the adapter is pulled, instead of falling to 3.9 V and resetting the SoM.
This post covers why failover is harder than it looks, what failed on our first design, and how dual-input switching and reverse-feed blocking work. It then covers seamless handoff, how to size hold-up capacitance, how to signal failover faults, how the switching options compare, and how we test the result. For the system-level view of redundant inputs, see our earlier post on designing redundant power inputs with automatic failover.
The short version
- Our first switch back-fed 7.4 V from the 2S Li-ion backup onto the unplugged 12 V adapter jack through a MOSFET body diode, so each input needs blocking in both directions.
- Hold-up time is C(V1² − V2²)/2P, so 100 µF between 10.5 V and the regulator’s 5.5 V minimum carries a 6.67 W load for 0.6 ms, 30 times the 20 µs switchover.
- Returning to the adapter only after it holds 11.0 V for 50 ms stops a sagging adapter from toggling the input.
- A Schottky diode-OR wastes 0.4 W on battery at 0.9 A, while an ideal-diode FET path at 20 mΩ wastes 16 mW.
Why is power failover harder than it looks?
Two sources feeding one rail can fail in three ways a single input never does. The sources can feed each other, the handoff can leave a gap, and the system can lose power without knowing why.
On our carrier, the primary input is a 12 V adapter and the backup is a 2S Li-ion pack that runs from 6.0 V empty to 8.4 V full. Both feed an input bus that a buck converter turns into the 5 V system rail, with a 6 W load and a 5.5 V minimum converter input.

The adapter normally sits well above the battery, which hides the hard cases: an adapter that sags toward the battery voltage, an unplug in the middle of a radio transmission, and a battery inserted while the adapter is live. Which loads to drop once the system runs on battery follows our hardware priority rules when power budget is limited.
What failed on our first failover design
The first design switched inputs with two discrete PMOS transistors, driven by a comparator watching the adapter voltage. It was simple and cheap.
Pulling the adapter left a 1.8 ms gap before the battery path turned on. The input bus fell from 12 V to 4.1 V, the buck dropped out, and the 5 V rail reached 3.9 V, below the SoM’s 4.5 V brownout threshold.
The second failure showed up with the adapter unplugged. The body diode of the adapter-side PMOS conducted from the battery side and put 7.4 V on the exposed jack pins, where a probe or a reversed plug could draw battery current.

How do you stop reverse current between two power inputs?
A single MOSFET blocks current in one direction only. Its body diode conducts the other way whenever its output side is higher, so a one-FET switch cannot isolate a source that is off.
The fix is two FETs per input, connected source to source, so their body diodes face opposite directions. With both off, the path blocks in both directions; with both on, it conducts through the channel resistance alone. Our revision uses a priority power mux that drives back-to-back FETs on each input and acts as an ideal diode, turning a path off as soon as current tries to flow backwards.
Three rules come with it:
- Every input path blocks in both directions, including the primary.
- The exposed connector side of an absent source reads under 0.1 V.
- Clamps on the jack sit outside the blocking FETs; our ESD protection architecture for user-facing ports covers their placement.

On the revised carrier, the unplugged jack measures under 0.1 V instead of 7.4 V.
Seamless source handoff
A seamless handoff keeps the input bus above the converter’s minimum while the source changes. Two things set it: how fast the mux detects the failure and switches, and the thresholds that decide when to switch.
Our mux moves to the battery when the adapter falls below 10.5 V and completes the handoff in 20 µs. During that window the bus capacitance carries the load, so the converter never sees less than 5.5 V.
Returning to the adapter needs hysteresis. A weak adapter that sags under load can cross a single threshold again and again, toggling the input. Our mux returns only after the adapter holds 11.0 V for 50 ms, which stopped the toggling we saw with a deliberately undersized 12 V, 0.5 A adapter.

Firmware can force the battery path for testing, but never during a flash write or a radio transmission, following our rules for preventing unsafe reconfiguration while subsystems are active.
How to size rail hold-up capacitance
Hold-up capacitance carries the load while neither source is connected. The energy the capacitor releases between two voltages has to cover the load for longer than the switchover, which gives:
t_hold = C × (V1² − V2²) / (2 × P)
Step 1: Set the load power at the bus
The 5 V rail draws 6 W through a buck converter that is 90 percent efficient, so the bus supplies 6.67 W.
Step 2: Set the start and end voltages
V1 is the voltage at which the mux starts switching, 10.5 V. V2 is the converter’s minimum input, 5.5 V.
Step 3: Pick the capacitance and check the margin
With 100 µF, hold-up is 100 µF × (10.5² − 5.5²) / (2 × 6.67 W) = 0.6 ms, 30 times the 20 µs switchover. That margin covers capacitor tolerance, DC-bias loss in ceramic parts and aging; our post on voltage margining for long-term component aging explains why we plan for that drift. Use the effective capacitance at the bus voltage, not the nominal value.

Failover fault signaling
A failover the system cannot see turns into a fault nobody can diagnose. The mux reports which input is active, and we add two more signals so firmware always knows the power state:
- Source status: which input is active, routed to a GPIO with an interrupt.
- Input good: one line per source, so firmware knows whether the other source is still available.
- Failover flag: latched in a backup register on every switch, so a reset during a failover can still be traced after boot.

Firmware logs every source change with a timestamp. On battery it sheds lower-priority loads, as in our post on graceful degradation and what we turn off first, and at 6.4 V it starts a graceful shutdown with a 30 s warning to the app. When a failover coincides with other faults, the response order follows our priority encoding for simultaneous fault conditions.
Diode-OR vs power mux: dual-input switching options compared
Each option trades loss, blocking and control differently. Here is how they compare for our two inputs and a 0.9 A battery current:
- Schottky diode-OR: about 0.4 W lost on battery at 0.9 A. The higher-voltage source always wins, so there is no control over which source supplies the load.
- Single PMOS per input (our first design): low loss when on, but the body diode back-feeds an absent source, and our comparator-driven version left a 1.8 ms gap.
- Priority power mux with back-to-back FETs (ideal diode): about 16 mW lost at 0.9 A through 20 mΩ, blocks in both directions, prefers the adapter and hands off in 20 µs.
A diode-OR is fine when both inputs are similar and loss does not matter. For a preferred adapter, a battery backup and an exposed jack, only the power mux gives low loss, blocking in both directions and a controlled choice of source.
How we test automatic power failover
Failover bugs hide in timing and edge cases, so the test drives each one on purpose with the carrier at full load:
- 1,000 adapter unplug and replug cycles.
- A slow adapter brownout from 12 V to 9 V over 10 s, and back.
- Battery insertion and removal with the adapter live.
- A short on each input.
- Both inputs at the same voltage, using a bench supply set to 8.0 V on the adapter input.
Pass criteria are set before testing: the 5 V rail stays within 3 percent, the SoM never resets, the status lines report a change within 1 ms, an absent source’s connector reads under 0.1 V, and the input never toggles. The revised carrier passed every condition, with a worst-case 5 V dip of 60 mV and zero resets across the 1,000 cycles.
What this means for EverBowl
EverBowl™ learns a dog’s eating and drinking patterns over weeks, so a pulled plug or a short power cut should not leave a hole in that record. With failover that never resets the system, it keeps recognizing meals and drinks through the handoff, and the failover log explains any change in behavior afterward.
The honest limit: the backup covers the gap the battery can hold, not an indefinite outage, so a long cut still ends in a clean shutdown and a gap until power returns. EverBowl does not diagnose; the value is the record.
Conclusion
Block every input in both directions, so no source can feed another or an exposed connector. Size hold-up capacitance from the load power and the converter’s minimum input, with a large margin over the switchover time, and add hysteresis before returning to the preferred source. Route source status and a latched failover flag to firmware, then prove the design across unplug cycles, brownouts and shorts. More notes like this are in our hardware engineering category.
FAQs
What is the difference between diode-OR and a power mux?
A diode-OR lets the higher-voltage source supply the load, with a diode drop and no control over which source wins. A power mux uses FET switches with thresholds, so it can prefer one source, block both directions and lose far less power.
How do you prevent reverse current between two power inputs?
Use two FETs per input connected source to source, so their body diodes block in opposite directions, or a controller that drives them as an ideal diode. A single FET leaks through its body diode when its output side is higher.
How much hold-up capacitance does a failover need?
Use t = C(V1² − V2²)/2P, with V1 as the switching threshold and V2 as the converter’s minimum input. In our example, 100 µF holds a 6.67 W load for 0.6 ms, well beyond a 20 µs switchover.
Why does an input keep switching back and forth?
A weak source that sags under load can cross a single threshold repeatedly. Adding hysteresis and a delay before returning to it, such as holding 11.0 V for 50 ms, stops the toggling.
How should a system report a power failover?
Route the active-source and input-good signals to interrupt-capable pins, and latch a failover flag that survives a reset. Firmware can then log each switch and explain resets or behavior changes later.
References
- Texas Instruments, Basics of Power MUX (SLVAE51), application note.
- Texas Instruments, Power Multiplexing Using Load Switches and eFuses (SLVA811), application note.
- Texas Instruments, Basics of Power Switches (SLVA927), application note.
- Texas Instruments, TPS2121 priority power MUX with seamless switchover, product page and datasheet.