← Projects
electronics intermediate Jul 15, 2026 ◑ 3 views ◯ 6 min read

How to Build a LiPo Battery Charger with the TP4056: Circuits, Safety, and BMS Integration

Build time: 2-4 hours
Tools needed: Soldering iron
Parts List
lipobatterychargertp4056bmssafetypcb18650lithiumpowerelectronics

Introduction

LiPo (Lithium Polymer) and 18650 Li-ion cells power everything from RC drones to portable LED projects, but charging them incorrectly is dangerous — swollen packs, venting with flame, or outright explosions are real risks. The TP4056 is a tiny, cheap ($0.50) single-cell lithium charger IC that handles constant-current and constant-voltage charging safely with minimal external components. This guide walks through building a TP4056 charger from scratch, adding a protection circuit (DW01A + FS8205A), integrating a Battery Management System (BMS) for multi-cell packs, and understanding the critical safety rules every maker must follow when working with lithium batteries.

What You Need

Understanding Lithium Battery Charging

Lithium cells charge in two phases:

Never exceed 4.2V per cell. Never charge below 0°C or above 45°C. Never leave charging lithium unattended.

Step 1: Basic TP4056 Charger Circuit

The TP4056 needs only two external components to work:

The TP4056 module (common on Amazon/AliExpress) includes both the IC and the programming resistor on a small PCB with USB input and battery output pads. These modules work out of the box but lack protection circuitry.

Step 2: Add Protection with DW01A + FS8205A

Standalone TP4056 modules do not protect against over-discharge, short circuits, or over-current. A proper protection circuit is mandatory.

DW01A Protection IC Functions

FS8205A Dual MOSFET

The DW01A controls this dual N-channel MOSFET which acts as a switch between the battery and the output. The MOSFET turns on during normal operation and off when a fault is detected.

Protection Circuit Wiring

  1. Connect DW01A VCC to BAT+, GND to BAT-
  2. Connect DW01A OD and OC pins to FS8205A gate inputs
  3. Connect FS8205A source to BAT-, drain to output negative
  4. Output positive connects directly to BAT+
  5. Add 100nF capacitor between VCC and GND near the DW01A

Most commercially available "TP4056 with protection" modules include both chips on one board.

Step 3: Multi-Cell BMS (2S, 3S, 4S)

For projects needing more than 3.7V, cells are connected in series. A BMS balances and protects the pack.

2S BMS (7.4V)

3S BMS (11.1V)

4S BMS (14.8V)

BMS Wiring

  1. Connect B- to battery negative (first cell)
  2. Connect B1 to junction between cell 1 and cell 2
  3. Connect B2 to junction between cell 2 and cell 3 (for 3S)
  4. Connect B+ to battery positive (last cell)
  5. Connect P- and P+ to your load
  6. Connect C- and C+ to your charger

Always connect balance leads first, then main leads. Verify with a multimeter before powering anything.

Working out the right voltage, capacity, and expected runtime for a custom pack before you build it? The Battery Pack Designer tool handles the series/parallel math for you.

Step 4: Charge Current Selection

Cell Capacity0.5C Rate (Safe)1C Rate (Max)Rprog Value 1000mAh500mA1000mA2.4kΩ / 1.2kΩ 2000mAh1000mA2000mA1.2kΩ / 600Ω 3000mAh1500mA3000mA800Ω / 400Ω 5000mAh2500mA5000mA480Ω / 240Ω

For longevity, charge at 0.5C or less. USB power supplies typically provide 1-2A, which limits practical charge rates.

Step 5: Building a Complete Charger Module

Schematic

USB 5V ──┬── TP4056 VCC ├── USB+ input └── 10μF capacitor to GND TP4056 BAT+ ──┬── Cell positive └── DW01A VCC TP4056 BAT- ──┬── Cell negative ├── DW01A GND └── FS8205A source DW01A OD/OC ── FS8205A gates FS8205A drain ─ Output negative Cell positive ─ Output positive (fused)

PCB Layout Tips

Step 6: USB-C PD Charging (Advanced)

For faster charging, USB-C Power Delivery can provide 9V or 12V:

  1. Use a PD trigger board (ZY12PDS or similar) to negotiate 9V from a USB-C PD supply
  2. Feed 9V into a buck converter to step down to 5V for the TP4056
  3. Or use a dedicated 1S/2S charging IC that accepts higher input voltages (IP2312, TP5100)

Safety Rules (Non-Negotiable)

Troubleshooting

Pro Tips

Conclusion

Building your own lithium battery charger is both empowering and dangerous — the TP4056 makes the circuit simple, but understanding protection, current limits, and safe handling is what separates a working project from a fire hazard. Always include a DW01A+FS8205A protection circuit, size your charge current appropriately, follow the safety rules religiously, and never cut corners on lithium battery projects. Done right, you will have a reliable, reusable power system for hundreds of projects.