Lithium Battery Protection for Small Projects

Lithium cells haven’t become the predominant power source for mobile electronics without reason. Circuits for their—very necessary—protection are naturally plentiful as well.

One particular weak point of many protection schemes, however, is deep discharge protection. Common practice is to discharge LiPo/LiIon cells no further than 3 V to not risk permanent damage. Yet, most protection ICs cut off only at 2.5 V, and you thus have to rely on additional battery voltage monitoring.

For many applications that is more than reasonable, since letting your microcontroller supervise the battery voltage can be used for useful state of charge information or even just an advance warning before shutdown. However, 3.7 V are a convenient voltage, not just for supplying a microcontroller, and even in that case, using an ADC or comparator pin just for battery voltage monitoring is overkill for simple projects which could be allowed to just switch off once their battery goes out.

Schematic consisting of not more than the lithium cell, the protection IC, and a 100 Ω resistor and 100 nF capacitor for the XB5358’s supply. Schematic consisting of not more than the lithium cell, the protection IC, and a 100 Ω resistor and 100 nF capacitor for the XB5358’s supply.
This is datasheet-listed circuit in its entirety. The IC has an internal MOSFET, connecting the VM and GND terminals if everything seems to be OK.

Specifically looking for battery protection ICs with a higher cut-off voltage, I found the XB5358D0 with a threshold of 2.9 V. Not quite 3 V, but a lot better than the usual standard. The XB5358D0 also already includes its power MOSFETs, making the default application circuit incredibly simple.

With basically everything built in, this IC seemed like a good candidate for small battery-powered projects which don’t need a lot of power, letting me worry about other things than monitoring the battery voltage.

Protection against battery reversal

One thing the list of protection does not include is battery polarity reversal. And indeed, a quick test reveals that not only does it conduct between VM and VDD when inverted (which would not be catastrophic with the 100 Ω resistor limiting the current) but it does also switch the internal MOSFETs on, connecting VM and GND and relaying the wrong-polarity voltage to the connected circuit, without any overcurrent protection.

When the XB5358D0 is soldered directly to the battery, this isn’t an issue. But I also wanted to use it on PCBs with an 18650 battery holder, where it would be easy to insert the battery the wrong way. Luckily, a single MOSFET is enough to disconnect an inverted battery from the system ground.

An n-Channel MOSFET is inserted into the circuit from before. Its gate is connected to VBAT and it therefore connects the XB5358’s VM pin to GND only when the battery is the correct way around. An LED plus resistor connected between its drain and source indicates battery reversal. An n-Channel MOSFET is inserted into the circuit from before. Its gate is connected to VBAT and it therefore connects the XB5358’s VM pin to GND only when the battery is the correct way around. An LED plus resistor connected between its drain and source indicates battery reversal.
You can use any MOSFET you want here, as long as it can support the full load current at Vgs = 3 V. I used an AO3400A here.

The extra polarity check circuit also gives me the opportunity to add an LED that says ‘you put in the battery the wrong way, dingus!’ brightly.

Battery charging and full power path circuit

A charger can be connected directly to VBAT and GND, as both the XB5358 and MOSFET reversal protection work in both current directions. To switch over power sources for the supplied circuit when a charger is connected, the simplest solution would be a diode or combining VBAT and a charger input voltage VEXT.

Here, I’ve used another MOSFET (an AO3401A in my case, but again, pretty uncritical choice) to save on the forward voltage drop on VBAT.

The schematic with battery polarity protection is combined with a battery charger and a simple power path circuit, combining the battery voltage and the charger's external supply voltage. The schematic with battery polarity protection is combined with a battery charger and a simple power path circuit, combining the battery voltage and the charger's external supply voltage.
The circuit around the XB5358 and Q1 is the same as above. When 5 V are connected to VEXT, the battery is charged by the (TP, LTC, GX, …)4057 and VDD is supplied from VEXT via D1. If the external supply is disconnected, Q2 conducts and VBAT is the power source for VDD.

The only thing out of the ordinary here are D2 and D3. These aren’t strictly necessary, but they make the switchover smoother: if omitted, connecting Q2’s gate straight to VEXT, Q2 can switch off before VEXT has reached a level higher than VDD. If VEXT falls and rises slowly, this can result in dips in VDD around a few hundred millivolts, depending on Q2’s gate threshold voltage.

Graph of the external supply voltage VEXT and the system supply voltage VDD over time. VEXT is switched on and off and during each transition, there is a dip in VDD of a few hundred millivolts. Graph of the external supply voltage VEXT and the system supply voltage VDD over time. VEXT is switched on and off and during each transition, there is a dip in VDD of a few hundred millivolts.
Performance of the input voltage switchover, replacing D2 and D3 with shorts. Q2 switches off too early and switches on too late, resulting in significant drops of VDD during the rise and fall of VEXT.

With a single diode, the dips are still visible, but less severe. With two diodes, the switchover is entirely clean. If these diodes are necessary (the maximum drop is limited by the forward voltage of Q2’s body diode after all) depends on the supplied circuit, but the diagram above shows the circuit’s most generic form.

Resources

The design files of the small protection PCB in the photo at the top (with nothing more than the XB5358 and its supporting resistor and capacitor) can be found here.