Close

Battery management

A project log for IoT UPS

Small UPS with fix 3V3/1A output and adjustable 1.3 to 12V output, Li-Ion charger and protection

christoph-tackChristoph Tack 05/18/2020 at 18:420 Comments

Charger & protector selection

A TP4056 charger & battery monitor module exists, but it takes up too much space.  So we'll implement it ourselves.  Some similar projects have been done:

Charger

The TP4056 has a big package.  Other charger IC's are available on digikey (MCP73831, bq21040, STC4054). 

TP4056 module

Proposed setup in a device
Proposed setup in a device

A power switch (such as this PMOS) is needed because the LiPo can't be charged while being connected to the load.  The explanation lies in the charging algorithm.  Suppose the voltage of the LiPo has dropped below 3V3, then the TP4056 will only allow 60mA on its output.  If a load is connected that draws more than 60mA  there will be no current left to charge the LiPo.  The LiPo will remain discharged forever (or until the load is disconnected).  More info can be found here.

The efficiency can be improved by replacing the schottky diode by an NMOS, switched by an NPN-transistor.  The base of the NPN-transistor is connected to 5V through a voltage divider.

Battery protector

Charging a battery is one thing, protecting it from over-, under voltage, over current is another thing.  The TP4056 module includes a DW01A protection IC and a double N-MOSFET: FS8205A.

TP4056 module including battery protection

More info about this module can be found here.

The DW01A has a too low UVLO limit, so we'll replace it by the AP9101CAK6-ANTRG1.  The MOSFET's TSSOP8 package might not be so easy to solder.  The DMG9926UDM will be used instead.  You could also use the FS8205, which is actually the same as the FS8205A except for the package.

The over-current protection can be set by using the AP9101Cxxx-ANTRG1 or the BV-variant.  A factor two in current increase can be gained by putting several MOSFETs in parallel as done here.

Discussions