How-to · Beginner · 3 min read
TP4056 Charger Module

Wiring, Charge Current and Load Sharing
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
The TP4056 module charges one 3.7 V lithium cell from 5 V USB at up to 1 A using the correct constant-current, constant-voltage method, stopping at 4.2 V. Use the version with protection (DW01A chip), connect the cell to B+ and B-, and your circuit to OUT+ and OUT-. The red LED means charging, blue or green means done. Lower the current for small cells by changing the RPROG resistor.
Key specs at a glance
- Input
- 5 V via micro USB or USB-C, or IN+ / IN- pads
- Charge
- CC/CV to 4.2 V, up to 1 A (1.2 kΩ RPROG)
- Protection (DW01A + FS8205A)
- Over-charge, over-discharge at about 2.4 V, over-current, short circuit
- LEDs
- Red: charging; blue/green: full (or no battery)
- Heat
- Over 500 mA from 5 V the chip gets hot; keep airflow
- Cells
- One cell, or several in parallel only
A shorted, over-charged or damaged lithium cell can get very hot and catch fire. Use a protection board or BMS, never short the terminals, charge on a non-flammable surface and do not leave a charging pack alone. Throw away cells that are swollen or dented.
Pinout: IN, BAT and OUT
| Pad | Connect | Notes |
|---|---|---|
| IN+ / IN- | 5 V supply (or use the USB port) | 4.5 to 5.5 V |
| B+ / B- | Battery cell | Watch polarity |
| OUT+ / OUT- | Your circuit | Only on protected boards; goes through the protection MOSFETs |
- IN+ / IN-
- Connect:
- 5 V supply (or use the USB port)
- Notes:
- 4.5 to 5.5 V
- B+ / B-
- Connect:
- Battery cell
- Notes:
- Watch polarity
- OUT+ / OUT-
- Connect:
- Your circuit
- Notes:
- Only on protected boards; goes through the protection MOSFETs
Setting the charge current
Charge current is set by the resistor RPROG between pin 2 of the TP4056 and ground. The 1.2 kΩ fitted gives 1 A. Charge at no more than 1C (the cell's capacity in Ah). For a 500 mAh LiPo, replace it with 2.4 kΩ (about 500 mA); for 2000 mAh and larger, 1 A is fine.
| RPROG | Charge current |
|---|---|
| 10 kΩ | 130 mA |
| 5 kΩ | 250 mA |
| 3 kΩ | 400 mA |
| 2 kΩ | 580 mA |
| 1.5 kΩ | 780 mA |
| 1.2 kΩ | 1 A |
- 10 kΩ
- 130 mA
- 5 kΩ
- 250 mA
- 3 kΩ
- 400 mA
- 2 kΩ
- 580 mA
- 1.5 kΩ
- 780 mA
- 1.2 kΩ
- 1 A
The load-sharing problem (charging while running)
The TP4056 decides the cell is full when charge current drops below about 100 mA. If your circuit draws from the cell while charging, the chip sees a mix of load and charge current, so it may never terminate, keeps the cell at 4.2 V, and mis-reports status. For a device that runs while plugged in, add a load-sharing circuit: a P-channel MOSFET and a Schottky diode that power the load straight from USB when present and from the cell otherwise. Ready-made boards (for example those labelled "TP4056 with load sharing" or the IP5306-based power-bank modules) include this.
Using the output in a project
OUT+ gives the raw cell voltage, 3.0 to 4.2 V. For 3.3 V boards add an LDO such as the HT7333 or MCP1700; for 5 V boards add an MT3608 boost converter. Never run a 3.3 V ESP32 from 4.2 V directly. See lithium batteries for cell choice and safety.
What the LEDs mean
| Red | Blue / green | Meaning |
|---|---|---|
| On | Off | Charging |
| Off | On | Charge complete, or no battery connected |
| Flashing | Off | Battery voltage too low or temperature fault; check the cell |
| Off | Off | No input power |
- On
- Blue / green:
- Off
- Meaning:
- Charging
- Off
- Blue / green:
- On
- Meaning:
- Charge complete, or no battery connected
- Flashing
- Blue / green:
- Off
- Meaning:
- Battery voltage too low or temperature fault; check the cell
- Off
- Blue / green:
- Off
- Meaning:
- No input power
Try it: Battery charge time calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Taking the load from B+/B- on a protected board, which bypasses the protection.
- Charging a small LiPo at the default 1 A.
- Charging two cells in series with one module.
- Expecting the module to work as a power bank while charging without a load-sharing circuit.
- Mounting it without airflow at 1 A; the chip throttles when hot.
Frequently asked questions
Can the TP4056 charge a 2S or 3S battery?
No. It charges one 3.7 V cell (or cells in parallel) to 4.2 V. Series packs need a 2S/3S charger and BMS.
Can I use the TP4056 as a power bank?
Only with a boost converter to 5 V and, ideally, a load-sharing circuit. Simpler: use an IP5306 or similar power-bank module that integrates charging, protection and boost.
What is the difference between the TP4056 boards with 1 chip and 3 chips?
The three-chip board adds DW01A protection and FS8205A MOSFETs, which protect the cell from over-discharge and shorts. Always choose that version unless your cell has its own protection.
Why does the blue LED light with no battery connected?
With no cell the charger sees no current and reports 'full'. It is normal.
Can I charge a TP4056 from a 12 V supply?
No. Input must be 4.5 to 5.5 V. Use a 12 V to 5 V buck converter first.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 65 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- TP4056 datasheet (NanJing Top Power ASIC)
- DW01A datasheet (Fortune Semiconductor)
- FS8205A dual N-channel MOSFET datasheet
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



