LIBRARYReverse-polarity and inrush protection.
A backwards battery or a turn-on surge can destroy a board. The series diode, the P-channel MOSFET ideal diode that wastes far less, and how to tame inrush at power-on.
Two things at the power input can kill a board in an instant: a battery put in backwards, and the surge of current when power first connects. A little protection at the input handles both. This extends the ideal-diode idea from the Fundamentals diode guide into real power design.
The reverse-polarity risk
Connect a supply backwards and current tries to flow the wrong way through parts that tolerate only one direction. Electrolytic capacitors, ICs, and the regulator can be destroyed before you notice. A reverse-polarity guard blocks that backward current so a wrong connection does nothing at all.
The series diode: simple but lossy
The oldest guard is a diode in series with the input. It conducts when the supply is the right way round and blocks when it is reversed. It works, but it is not free: the diode drops its forward voltage, around 0.3 V to 0.7 V, all the time, burning that drop times the load current as heat and stealing it from a battery.
The P-channel MOSFET ideal diode
A better guard replaces the diode with a P-channel MOSFET wired to conduct only when the supply is correct. Its on-resistance is milliohms, so the voltage it drops and the heat it makes are tiny, a fraction of the diode's, for the cost of a couple more parts. This ideal diode is why good designs protect the input almost for free (TI, Basics of Ideal Diodes).
Inrush at power-on
When power first connects, every bulk capacitor on the board is empty and gulps a large spike of current as it charges, the inrush surge. It can dip the supply, weld a connector, or trip a protection circuit. Inrush control, a soft-start that ramps the input in over a few milliseconds instead of slamming it on, tames that spike.
Both guards sit right at the power input, before anything else. The reverse-polarity device comes first so a backward supply is blocked at the door, then the inrush element so the surge is limited as power reaches the bulk capacitors. Put either one downstream and the parts ahead of it are unprotected.
▸Deep dive· How an ideal-diode controller beats even a plain P-FET
A bare P-FET reverse guard already beats a diode, but a dedicated ideal-diode controller goes further. It actively drives the MOSFET gate, holds the forward drop to a few millivolts, and can switch the FET off within microseconds if the input ever goes backward or a downstream fault tries to push current back toward the source. On boards that share a supply or hot-swap, that fast, controlled turn-off is what keeps one board's fault from feeding back into the rail. Same MOSFET, a smarter driver. (TI, Basics of Ideal Diodes)
Checkpoint
Quick check
One Thousand Drones engineering team · verified 2026-07