The TP4056 Charging Module is a compact and efficient lithium battery charging module designed for single-cell lithium-ion batteries. It utilizes a constant current/constant voltage (CC/CV) charging method to ensure safe and reliable charging. The module features overcharge protection, a micro USB input for convenience, and onboard LED indicators to display the charging status. Its small size and ease of use make it a popular choice for DIY electronics projects, portable devices, and battery-powered systems.
Pin Name | Description |
---|---|
IN+ | Positive input voltage (4.5V to 5.5V). Can be connected to a power source. |
IN- | Negative input voltage (ground). |
BAT+ | Positive terminal of the lithium-ion battery. |
BAT- | Negative terminal of the lithium-ion battery. |
OUT+ | Positive output terminal for the load (connected to the battery). |
OUT- | Negative output terminal for the load (connected to the battery). |
Connect the Power Source:
Connect the Battery:
Monitor the Charging Status:
Optional Load Connection:
The TP4056 module can be used to charge a battery that powers an Arduino UNO. Below is an example of how to monitor the battery voltage using the Arduino's analog input.
// Define the analog pin connected to the voltage divider
const int voltagePin = A0;
// Define the voltage divider ratio (e.g., R1 = 10k, R2 = 10k)
const float voltageDividerRatio = 2.0;
// Define the reference voltage of the Arduino (5V for most boards)
const float referenceVoltage = 5.0;
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read the analog value from the voltage divider
int analogValue = analogRead(voltagePin);
// Convert the analog value to the actual battery voltage
float batteryVoltage = (analogValue * referenceVoltage / 1023.0) * voltageDividerRatio;
// Print the battery voltage to the Serial Monitor
Serial.print("Battery Voltage: ");
Serial.print(batteryVoltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
The module gets hot during operation:
The battery does not charge:
The red LED does not light up:
The blue LED does not light up after charging:
Can I use the TP4056 module to charge multiple batteries in series?
How do I adjust the charging current?
Can I use the module without a battery?
Is it safe to leave the battery connected to the module after charging?