Electrical – Reverse polarity and reverse current protection for battery charger

battery-chargingmosfetprotection

I am using a buck converter with output commanded by a micontroncontroller to charge a lithium ion battery from one to three cells (3.0 to 4.2V, 6.0 to 8.4V or 9.0 to 12.6V)
I would like to protect the out from reverse polarity conection of battery and reverse current.

I could use a simple diode but I want to avoid the voltage drop and loss of energy, so I am trying a solution with MOSFET.

Schematic

I think this MOSFET works as protection when battery is connected wrongly with reverse polarity.
But what happens when polarity is correct, but the battery voltage is upper than voltage generated by the buck converter?

For example, just at the beguining when battery is plugged the out of buck converter is zero volts until the battery is correctly identified.

This P-MOSFET would protect for reverse current?

Thanks
enter image description here

Best Answer

For the voltmeter protection, use a series resistor to limit current and a shorting diode to prevent reverse voltage. It will let a reverse voltage equal to the forward voltage drop of the diode through. Assuming the series resistance of the voltmeter is very high, the series resistor will not require any correction in the voltage measurement.

schematic

simulate this circuit – Schematic created using CircuitLab

When the diode is reverse biased (up to the breakdown voltage) it effectively be open.