Overview

The TP4056 is a 1.0 Amp standalone linear Lithium-Ion and Lithium-Polymer (LiPo) battery charger IC manufactured by NanJing Top Power. Sold worldwide as a cheap 1cm×2cm1\text{cm} \times 2\text{cm} red or blue breakout module with Micro-USB or USB-C connectors (and frequently paired with a DW01A battery protection IC and FS8205A dual MOSFET for over-charge, over-discharge, and short-circuit protection), it safely charges single-cell 3.7V3.7\text{V} Li-Ion / 18650 / LiPo cells to a target voltage of 4.20V4.20\text{V}.

Operating on a standard 5.0V5.0\text{V} USB power supply, the TP4056 implements a complete Constant-Current / Constant-Voltage (CC/CV) charging profile with programmable charge current (up to 1.0A1.0\text{A}), thermal regulation, automatic recharge, and dual open-drain LED status outputs (/CHRG and /STDBY).

Quick reference

Charger TypeConstant-Current / Constant-Voltage (CC/CV) Linear Charger
Package8-pin SOP-8 with exposed bottom thermal pad / Breakout Board
Input Supply Voltage (VCC)4.0 V to 8.0 V DC (5.0 V USB nominal)
Final Float Charge Voltage4.20 V4.20\text{ V} DC (±1.5%\pm 1.5\% accuracy)
Max Programmable Charge Current1.0 A1.0\text{ A} (1000 mA1000\text{ mA}, set by RPROGR_{PROG} resistor)
Precharge Trickle Threshold2.9 V2.9\text{ V} (Trickle charge at 10%10\% current for deeply discharged cells)
Charge Status IndicatorsRed LED (/CHRG pin 7) = Charging / Blue or Green LED (/STDBY pin 6) = Fully Charged
Battery Protection PairDW01A protection IC + FS8205A dual N-MOSFET (on protected modules)

Pinout (SOP-8 Package & Module Terminals)

text
             ┌───┴───┐
        TEMP ─┤ 1   8 ├─ VCC
        PROG ─┤ 2   7 ├─ /CHRG
         GND ─┤ 3   6 ├─ /STDBY
         BAT ─┤ 4   5 ├─ CE
             └───────┘
Module Pin LabelNameTypeDescription
IN+ / USBVCCPowerPositive 5.0V5.0\text{V} DC power input from USB
IN-GNDPowerGround reference (0 V)
BAT+ / B+BATBattery ConnectionConnects to positive lead of 3.7V Li-Ion / LiPo battery
BAT- / B-GND / ProtectionBattery ConnectionConnects to negative lead of battery (via DW01A MOSFET on protected boards)
OUT+OUT+Load Power OutputRegulated load output (+) on protected module boards
OUT-OUT-Load Power OutputLoad output ground (-) (cuts off at 2.4V battery protection threshold)

Specifications

ParameterSymbolMinTypMaxUnitConditions
Input Supply VoltageVCCV_{CC}4.05.08.0VUSB 5.0V input
Regulated Output VoltageVBATV_{BAT}4.1374.2004.263V0CTA85C0^\circ\text{C} \le T_A \le 85^\circ\text{C}
Charge Current (RPROG=1.2kΩR_{PROG}=1.2\text{k}\Omega)IBATI_{BAT}90010001050mARPROG = 1200 Ω
Trickle Charge ThresholdVTRIKLV_{TRIKL}2.82.93.0VVBATV_{BAT} rising
C/10 Termination CurrentITERMI_{TERM}0.1×IBAT\times I_{BAT}Charge cycle termination threshold
Shutdown Supply CurrentIMSDI_{MSD}55100µAVCCV_{CC} disconnected

Charge Current Programming (RPROGR_{PROG} Resistor Table)

The continuous charge current (IBATI_{BAT}) is programmed by resistor RPROGR_{PROG} connected between Pin 2 (PROG) and GND:

IBAT (mA)=1200VRPROG (kΩ)×1000I_{BAT}\text{ (mA)} = \frac{1200\text{V}}{R_{PROG}\text{ (k}\Omega\text{)}} \times 1000

RPROGR_{PROG} Resistor ValueProgrammed Charge Current (IBATI_{BAT})Recommended Battery Capacity
1.2 kΩ1.2\ \text{k}\Omega (Default on modules)1000 mA1000\text{ mA} (1.0A1.0\text{A})1000 mAh\ge 1000\text{ mAh} (e.g. 18650 cell)
1.66 kΩ1.66\ \text{k}\Omega700 mA700\text{ mA}700 mAh\ge 700\text{ mAh}
2.4 kΩ2.4\ \text{k}\Omega500 mA500\text{ mA}500 mAh\ge 500\text{ mAh}
5.0 kΩ5.0\ \text{k}\Omega250 mA250\text{ mA}250 mAh\ge 250\text{ mAh}
10.0 kΩ10.0\ \text{k}\Omega130 mA130\text{ mA}130 mAh\ge 130\text{ mAh} (small LiPo cells)

CC/CV Charging Profile Stages

text
 Voltage (V) / Current (A)
   4.2V  ─────────────────────────────┐ (Constant Voltage Stage)
         │                           │ ╲
         │   (Constant Current)      │  ╲  Current Drops
   2.9V ─┼───────────────────────────┤   ╲  to C/10
   (0.1A)│---(Trickle Precharge)---- │    └── Charge Complete (STDBY LED ON)
   0V    └───────────────────────────┴─────────────────────── Time
  1. Trickle Precharge: If battery voltage <2.9V< 2.9\text{V}, the charger outputs 10%10\% of programmed current (100 mA100\text{ mA}) to safely recover deeply discharged cells.
  2. Constant Current (CC): Once VBAT2.9VV_{BAT} \ge 2.9\text{V}, full programmed current (1.0A1.0\text{A}) is delivered to the battery while voltage rises toward 4.20V4.20\text{V}.
  3. Constant Voltage (CV): When VBATV_{BAT} reaches 4.20V4.20\text{V}, voltage is held constant while charge current decays.
  4. Charge Termination: When current drops to C/10C/10 (100 mA100\text{ mA}), charging terminates, the red LED turns OFF, and the blue/green LED turns ON.

Wiring (Protected TP4056 Breakout Module)

TP4056 Module PinPower Source / Battery / LoadNotes
IN+ / USB+5V USB Power SupplyCharge power input
IN-USB GNDCharge ground
B+Li-Ion / 18650 Battery (+)Battery positive lead
B-Li-Ion / 18650 Battery (-)Battery negative lead
OUT+MCU / System Load 5V/3.3V LDOLoad power positive output
OUT-MCU System GroundLoad power ground output

Common mistakes

  • Charging small LiPo batteries (<500mAh) at the default 1A rate: Default TP4056 modules come pre-soldered with a 1.2 kΩ1.2\ \text{k}\Omega RPROGR_{PROG} resistor (1.0A1.0\text{A} charge rate). Charging small 100 mAh100\text{ mAh} or 250 mAh250\text{ mAh} LiPo cells at 1.0A1.0\text{A} (4C10C4C \dots 10C rate) causes severe overheating and fire hazards. Desolder the 1.2k1.2\text{k} resistor and replace it with a 5kΩ5\text{k}\Omega or 10kΩ10\text{k}\Omega resistor for small LiPo cells.
  • Connecting battery in reverse polarity: Connecting battery + to B- and - to B+ instantly destroys the TP4056 IC.

Notes

  • TP4056 vs MCP73831 vs BQ24160: TP4056 is a low-cost 1A linear charger; MCP73831 is Microchip's 500mA linear charger; BQ24160 is a TI switch-mode charger.

Assets & downloads