Skip to main content

TP4056A Li-ion Battery Charging/Discharging Module

Pin Configuration:


Pin Name




This pins outputs the positive voltage from battery. It should be connected to the circuit which has to be powered by the battery


B +

Outputs positive voltage from USB cable to charge to battery. It should be connected to the positive of the battery


B -

Outputs negative voltage from USB cable for charging battery. It should be connected to negative of the battery



This pin outputs negative voltage from battery. It should be connected to the ground of circuit which has to be powered by the battery


IN +

Should provide +5V, can be used if charge cable not available


IN -

Should provide ground of the +5V supply, can be used if charge cable not available



This LED turns on while the battery is charging


LED Green

This LED turns on after the battery is fully charged


Module Specifications:

  • This module can charge and discharge Lithium batteries safely
  • Suitable for 18650 cells and other 3.7V batteries
  • Charging current – 1A (adjustable )
  • Input Voltage: 4.5V to 5.5V
  • Full charge voltage 4.2V
  • Protects battery from over charging and over discharging
  • No verse polarity protection

Note: For more details, the TP4056A datasheet can be found at the bottom of the page


TP4056A Equivalent Modules:

TP4056A (only charging), TP5410


Where to use TP4056 Charging Module:

This module is most commonly used with all projects involving a Lithium-ion battery. As we know a lithium battery should not be overcharged or over discharged, hence this module will monitor the voltage level of the battery during charging and discharging. If the values go beyond critical value, the module will automatically disconnect the circuit and protect your battery.

So If you are looking for a module using which you can safely use your Lithium battery for both charging it and for connecting it to your circuit, then this module could be the right choice for you.


How to use TP4056 Module:

It is always good to be careful while working with Lithium batteries. The module operates with 5V which can be provided by the USB mini cable that is commonly used for charging smartphone. You can use any type of mobile charger and its cable to power this module. If you are planning to power it directly without the cable, then the +5V should be connected to IN + and the IN – should be connected to ground.

Lithium-ion battery should be connected as shown in the pin diagram above. The module does not have a reverse polarity protection, so be very careful while connecting your battery. Use a multimeter to check for the polarity of your battery, if connected in reverse your module will heat up immediately which would most likely kill it. If connected correctly and charger is turned on, the RED led will go high indicating that the battery is being charged. The charging process is controlled by the TP4056 Liner voltage IC whose circuit diagram is shown below (the protection circuit is not shown)

​​ Circuit-using TP4056A Li-ion Battery Charging Module

By default the charging current of the module will be 1A, it can be controlled by adjusting the resistor RPROG (R3 on module) shown in the circuit diagram. More details of the same can be found in the datasheet of the TP4056 given below.

Once the module charges the Lithium battery completely, it will automatically stop charging and the Red LED will turn off and the Green LED will turn ON to indicate the completion. Now the circuit can be connected to the Circuit (Load) which has to be powered by this battery as shown in the pin diagram above. The module will monitor the voltage of the battery as its being consumed by the circuit (load). When it goes below the critical value (3.7V) the module will automatically disconnect your battery form the load and protect your battery from over discharge.



  • Charge and Discharge Lithium cells
  • Commonly used with 18650 Li-ion batteries
  • Portable electronics
  • Power banks
  • Used with 5V booster for powering Arduino projects


2D-Model of the module:

 TP4056A 2D-model

Component Datasheet

Related Post

Join 20K+subscribers

We will never spam you.

* indicates required

Be a part of our ever growing community.