

The TP4056 is a lithium-ion battery charger IC designed for single-cell lithium-ion batteries. It provides a constant current/constant voltage (CC/CV) charging profile, ensuring safe and efficient charging. The IC integrates several safety features, including thermal regulation, over-voltage protection, and automatic charge termination. Its compact design and ease of use make it a popular choice for portable electronics, DIY projects, and battery-powered devices.








The TP4056 is a versatile and reliable charging IC. Below are its key technical details:
| Parameter | Value |
|---|---|
| Input Voltage Range | 4.0V to 8.0V |
| Charging Voltage | 4.2V ± 1% |
| Maximum Charging Current | 1A (adjustable via external resistor) |
| Charging Method | Constant Current / Constant Voltage (CC/CV) |
| Operating Temperature Range | -40°C to +85°C |
| Standby Current | < 2µA |
| Thermal Regulation | 120°C (automatic current reduction) |
| Package Type | SOP-8 |
The TP4056 IC has 8 pins, each serving a specific function. Below is the pinout and description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | TEMP | Temperature sense input. Connect to an NTC thermistor for battery temperature monitoring. |
| 2 | PROG | Programs the charging current. Connect a resistor to ground to set the current. |
| 3 | GND | Ground connection. |
| 4 | VCC | Input supply voltage (4.0V to 8.0V). |
| 5 | BAT | Battery connection pin. Connect directly to the positive terminal of the battery. |
| 6 | STDBY | Open-drain status output. Indicates charging completion (low when charging is complete). |
| 7 | CHRG | Open-drain status output. Indicates charging status (low when charging). |
| 8 | CE | Chip enable. Active low. Pull low to enable the IC, or high to disable it. |
VCC pin. Ensure the supply can provide sufficient current for charging.BAT pin and the negative terminal to GND.PROG pin and GND to set the charging current. The charging current can be calculated using the formula:
[
I_{CHG} = \frac{1200}{R_{PROG}}
]
For example, a 1.2kΩ resistor sets the charging current to 1A.CHRG and STDBY pins to monitor the charging status. These pins are open-drain and require pull-up resistors.TEMP pin for battery temperature monitoring. If unused, connect the TEMP pin to GND.The TP4056 can be used with an Arduino UNO to monitor the charging status. Below is an example code:
// TP4056 Charging Status Monitoring with Arduino UNO
// Connect CHRG pin to Arduino pin 2 and STDBY pin to Arduino pin 3
#define CHRG_PIN 2 // Pin connected to CHRG (charging status)
#define STDBY_PIN 3 // Pin connected to STDBY (standby status)
void setup() {
pinMode(CHRG_PIN, INPUT); // Set CHRG pin as input
pinMode(STDBY_PIN, INPUT); // Set STDBY pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int chrgStatus = digitalRead(CHRG_PIN); // Read CHRG pin status
int stdbyStatus = digitalRead(STDBY_PIN); // Read STDBY pin status
if (chrgStatus == LOW) {
Serial.println("Battery is charging...");
} else if (stdbyStatus == LOW) {
Serial.println("Charging complete.");
} else {
Serial.println("No battery connected or idle state.");
}
delay(1000); // Wait for 1 second before checking again
}
IC Overheating
Battery Not Charging
CHRG and STDBY Pins Not Responding
CHRG and STDBY pins.Charging Current Too Low
Q: Can the TP4056 charge multiple batteries in series?
A: No, the TP4056 is designed for single-cell lithium-ion batteries only. Charging multiple cells in series requires a specialized multi-cell charger.
Q: What happens if the input voltage exceeds 8.0V?
A: Exceeding 8.0V can damage the IC. Always use a regulated power supply within the specified range.
Q: Can I use the TP4056 without the TEMP pin?
A: Yes, if temperature monitoring is not required, connect the TEMP pin directly to GND.
Q: How do I adjust the charging voltage?
A: The charging voltage is fixed at 4.2V and cannot be adjusted. For other voltages, consider using a different IC.
This concludes the TP4056 documentation.