Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use TP4056 Charging Module: Examples, Pinouts, and Specs

Image of TP4056 Charging Module
Cirkit Designer LogoDesign with TP4056 Charging Module in Cirkit Designer

Introduction

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.

Explore Projects Built with TP4056 Charging Module

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based Battery-Powered Multi-Sensor System
Image of Dive sense: A project utilizing TP4056 Charging Module in a practical application
This circuit consists of a TP4056 module connected to a 3.7V LiPo battery, providing a charging interface for the battery. The TP4056 manages the charging process by connecting its B+ and B- pins to the battery's positive and ground terminals, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Raspberry Pi 3B+ with TP4056 and DC/DC Booster
Image of raspberry power supply: A project utilizing TP4056 Charging Module in a practical application
This circuit is a portable power supply system that charges a 18650 Li-ion battery using a TP4056 charging module and boosts the voltage to power a Raspberry Pi 3b+ via a DC/DC booster. The TP4056 module manages the charging of the battery, while the DC/DC booster converts the battery voltage to a stable 5V output for the Raspberry Pi.
Cirkit Designer LogoOpen Project in Cirkit Designer
Solar-Powered Li-ion Battery Charger with TP4056
Image of pdb solar power bank: A project utilizing TP4056 Charging Module in a practical application
This circuit consists of a solar panel, a Li-ion battery, and a TP4056 charging module. The solar panel charges the Li-ion battery through the TP4056 module, which manages the charging process to ensure safe and efficient charging of the battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Solar-Powered Battery Charging and Monitoring System with TP4056 and 7-Segment Voltmeter
Image of CKT: A project utilizing TP4056 Charging Module in a practical application
This circuit is a solar-powered battery charging and monitoring system. It uses a TP4056 module to charge a Li-ion 18650 battery from solar cells and a DC generator, with multiple LEDs and a voltmeter to indicate the charging status and battery voltage. The circuit also includes transistors and resistors to control the LEDs and a bridge rectifier for AC to DC conversion.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with TP4056 Charging Module

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Dive sense: A project utilizing TP4056 Charging Module in a practical application
ESP32-Based Battery-Powered Multi-Sensor System
This circuit consists of a TP4056 module connected to a 3.7V LiPo battery, providing a charging interface for the battery. The TP4056 manages the charging process by connecting its B+ and B- pins to the battery's positive and ground terminals, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of raspberry power supply: A project utilizing TP4056 Charging Module in a practical application
Battery-Powered Raspberry Pi 3B+ with TP4056 and DC/DC Booster
This circuit is a portable power supply system that charges a 18650 Li-ion battery using a TP4056 charging module and boosts the voltage to power a Raspberry Pi 3b+ via a DC/DC booster. The TP4056 module manages the charging of the battery, while the DC/DC booster converts the battery voltage to a stable 5V output for the Raspberry Pi.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of pdb solar power bank: A project utilizing TP4056 Charging Module in a practical application
Solar-Powered Li-ion Battery Charger with TP4056
This circuit consists of a solar panel, a Li-ion battery, and a TP4056 charging module. The solar panel charges the Li-ion battery through the TP4056 module, which manages the charging process to ensure safe and efficient charging of the battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CKT: A project utilizing TP4056 Charging Module in a practical application
Solar-Powered Battery Charging and Monitoring System with TP4056 and 7-Segment Voltmeter
This circuit is a solar-powered battery charging and monitoring system. It uses a TP4056 module to charge a Li-ion 18650 battery from solar cells and a DC generator, with multiple LEDs and a voltmeter to indicate the charging status and battery voltage. The circuit also includes transistors and resistors to control the LEDs and a bridge rectifier for AC to DC conversion.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Charging single-cell lithium-ion batteries (3.7V nominal, 4.2V fully charged)
  • Power banks and portable chargers
  • Wearable devices and IoT projects
  • Battery-powered electronics and DIY projects

Technical Specifications

Key Technical Details

  • Input Voltage: 4.5V to 5.5V (via micro USB or IN+ and IN- pins)
  • Charging Voltage: 4.2V ± 1%
  • Charging Current: Adjustable, default 1A (via onboard resistor)
  • Battery Type: Single-cell lithium-ion battery
  • Overcharge Protection: Yes (stops charging at 4.2V)
  • Over-discharge Protection: Yes (disconnects load below 2.5V)
  • Overcurrent Protection: Yes
  • LED Indicators:
    • Red LED: Charging
    • Blue LED: Fully charged
  • Module Dimensions: 25mm x 19mm x 10mm (approx.)

Pin Configuration and Descriptions

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).

Usage Instructions

How to Use the TP4056 Charging Module

  1. Connect the Power Source:

    • Use a micro USB cable to connect the module to a 5V power source (e.g., USB adapter, power bank, or computer).
    • Alternatively, connect a 4.5V to 5.5V DC power source to the IN+ and IN- pins.
  2. Connect the Battery:

    • Connect the positive terminal of the lithium-ion battery to the BAT+ pin.
    • Connect the negative terminal of the battery to the BAT- pin.
  3. Monitor the Charging Status:

    • The red LED will light up during charging.
    • The blue LED will light up when the battery is fully charged.
  4. Optional Load Connection:

    • If you want to power a load while charging the battery, connect the load to the OUT+ and OUT- pins. Note that the module includes over-discharge protection to prevent battery damage.

Important Considerations and Best Practices

  • Ensure the battery being charged is a single-cell lithium-ion battery with a nominal voltage of 3.7V.
  • Do not exceed the module's input voltage range (4.5V to 5.5V) to avoid damage.
  • The default charging current is 1A. If your battery has a lower maximum charging current, replace the onboard resistor (R3) to adjust the charging current accordingly.
  • Avoid short-circuiting the BAT+ and BAT- pins, as this can damage the module and the battery.
  • Ensure proper heat dissipation if the module is used for extended periods or with high charging currents.

Example: Using the TP4056 with an Arduino UNO

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.

Circuit Diagram

  1. Connect the TP4056 module to a 3.7V lithium-ion battery.
  2. Connect the OUT+ and OUT- pins of the TP4056 to the Arduino's VIN and GND pins, respectively.
  3. Use a voltage divider circuit to scale the battery voltage to a range suitable for the Arduino's analog input (0-5V).

Arduino Code

// 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
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The module gets hot during operation:

    • This is normal for the TP4056 module, especially when charging at high currents. Ensure proper ventilation and avoid touching the module during operation.
  2. The battery does not charge:

    • Verify the connections to the BAT+ and BAT- pins.
    • Ensure the input voltage is within the specified range (4.5V to 5.5V).
    • Check if the battery is damaged or has a protection circuit that prevents charging.
  3. The red LED does not light up:

    • Ensure the power source is connected and providing sufficient voltage.
    • Check for loose or incorrect connections.
  4. The blue LED does not light up after charging:

    • The battery may not be fully charged yet. Allow more time for charging.
    • Verify the battery's capacity and the charging current to estimate the charging time.

FAQs

  • Can I use the TP4056 module to charge multiple batteries in series?

    • No, the TP4056 is designed for single-cell lithium-ion batteries only. Charging multiple batteries in series requires a specialized balance charger.
  • How do I adjust the charging current?

    • Replace the onboard resistor (R3) with a different value. Refer to the TP4056 datasheet for the resistor-to-current mapping.
  • Can I use the module without a battery?

    • No, the TP4056 is designed to charge a battery and may not function correctly without one connected.
  • Is it safe to leave the battery connected to the module after charging?

    • Yes, the module includes overcharge protection and will stop charging once the battery reaches 4.2V. However, it is good practice to disconnect the battery if not in use for extended periods.