Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Batteries & Power

TP4056 Charging Module Guide: Build a Battery Charger

TP4056 Charging Module Guide: Build a Battery Charger

March 11, 2026 /Posted byJayesh Jain / 0

The TP4056 is one of the most popular single-cell lithium battery charger ICs in the maker community — and for good reason. For under ₹50, this tiny module gives you a complete, USB-powered Li-ion charging circuit with LED status indicators, adjustable charge current, and optional protection against over-charge, over-discharge, and short circuits. Whether you are building a portable sensor, a DIY power bank, or a solar-charged device, understanding the TP4056 module is an essential skill for every electronics hobbyist in India.

Table of Contents

  • What is the TP4056?
  • Module Variants: With and Without Protection
  • Pinout and Connections
  • Adjusting Charge Current
  • LED Indicators Explained
  • Building a USB Power Bank
  • Solar Charging Setup
  • Parallel Charging Multiple Cells
  • Load Sharing Circuit
  • Common Mistakes and Safety Tips
  • Frequently Asked Questions

What is the TP4056?

The TP4056 is a complete constant-current/constant-voltage (CC/CV) linear charger IC designed specifically for single-cell 3.7V lithium-ion and lithium-polymer batteries. Manufactured by several Chinese IC houses (most commonly NanJing Top Power ASIC), it implements the standard Li-ion charge algorithm:

  1. Pre-charge (trickle): If the cell is deeply discharged (below ~3V), the IC applies a reduced current to safely recover it.
  2. Constant Current (CC): Charges at the programmed current (default 1A) until cell voltage approaches 4.2V.
  3. Constant Voltage (CV): Holds voltage at exactly 4.2V while current tapers down.
  4. Charge termination: When current drops below ~1/10 of the programmed rate, the IC declares the battery fully charged and turns off.

The IC itself measures just 2mm × 2mm in SOP-8 package, but the breakout modules available on Zbotic.in include all required passive components (resistors, capacitors, LED drivers) on a PCB roughly the size of a postage stamp.

🛒 Recommended: TP4056 1A Li-Ion Charging Board with Micro USB and Protection — most popular variant with DW01A protection IC included. Plug-and-play with any 18650 or LiPo cell.

Module Variants: With and Without Protection

When browsing TP4056 modules, you will find two main types. It is critical to know the difference:

Feature TP4056 Only TP4056 + DW01A
Over-charge protection Via TP4056 CV cutoff ✓ Hardware cutoff
Over-discharge protection ✗ None ✓ Cuts off at ~2.5V
Short circuit protection ✗ None ✓ DW01A + FS8205A FETs
Safe for direct battery connection With external BMS only ✓ Yes
PCB size Smaller Slightly larger

Always prefer the protected variant (TP4056 + DW01A) for any project where the battery will also power a load. The protection-only variant is fine if your load circuit has its own BMS, but for DIY power banks and standalone devices, the combined module is the safer and more practical choice.

🛒 Recommended: TP4056 1A Li-ion Charging Module with Protection — Mini USB — Mini USB variant with full DW01A protection, ideal for compact embedded designs.

Pinout and Connections

The typical TP4056 breakout module has the following pads:

  • IN+ / IN− (or VIN/GND): Power input — connect to 5V USB or regulated 5V supply. Absolute maximum input is 8V, but always stay at 5V ±5% for reliable operation.
  • BAT+ / BAT−: Battery terminals — connect directly to your 18650 or LiPo cell.
  • OUT+ / OUT− (on protected modules): Load output — connect your circuit here instead of directly to the battery pads. This output is controlled by the DW01A protection IC.
5V USB ──────── IN+    BAT+ ──── Battery (+)
  GND ──────── IN−    BAT− ──── Battery (−)
                      OUT+ ──── Load (+)
                      OUT− ──── Load (−)
⚠️ Important: Never connect a load directly to BAT+ and BAT− pads on a protected module. Always use OUT+ and OUT−. Connecting the load to BAT pads bypasses the DW01A protection and can damage your battery.

Adjusting Charge Current

The TP4056 sets charge current via a single resistor (PROG pin to GND). The default module ships with a 1.2kΩ resistor for 1A charge current. You can desolder this resistor and replace it to change the current:

PROG Resistor Charge Current Best For
10kΩ 130mA Small LiPo cells (100–200mAh)
4kΩ 300mA Thin LiPo cells
2kΩ 580mA Smaller 18650 cells
1.2kΩ (default) 1000mA (1A) Standard 18650 (≥2000mAh)

A general safe rule: charge current in amps should not exceed the battery capacity in Ah (i.e., 1C max). For a 2000mAh cell, 1A (1C) is fine. For a small 500mAh LiPo pouch cell, reduce to 300–500mA by swapping the PROG resistor.

LED Indicators Explained

The TP4056 module has two onboard LEDs:

  • Red LED on: Battery is charging (CC or CV phase active).
  • Blue (or green) LED on: Charging complete. Battery is at 4.2V and current has tapered to near zero.
  • Both LEDs off: No input power connected, or a battery fault (cell voltage too low for pre-charge to recover, or missing battery).
  • Red LED blinking: On some modules, indicates the cell is in trickle pre-charge recovery mode (voltage below 3.0V).

Do not be alarmed if the blue LED turns on relatively quickly when topping up a partially charged cell — it simply means the CV phase terminated faster because the battery was already near full.

Building a USB Power Bank

A basic DIY USB power bank needs four components: an 18650 cell, a TP4056+protection module, a 5V boost converter (MT3608 or similar), and a USB-A output socket. Here is the assembly plan:

Micro USB Input
     ↓
[TP4056 + DW01A Module]
  IN+ → 5V from USB
  IN− → GND
  BAT+ → 18650 (+)
  BAT− → 18650 (−)
  OUT+ → Boost Converter IN+
  OUT− → Boost Converter IN−
     ↓
[MT3608 Boost Converter]
  Output: 5V regulated
     ↓
USB-A Output Socket

Total BOM cost in India: TP4056 module (~₹45), 18650 cell (~₹200–400 for a genuine cell), MT3608 boost module (~₹30), USB-A socket (~₹10), 18650 holder (~₹20). Total: approximately ₹300–500 for a 3000mAh portable charger. The equivalent branded power bank costs ₹600–1200, but your DIY version uses quality cells you have personally verified.

🛒 Recommended: TP4056 1A Li-ion Charging Module — Mini USB — ultra-compact footprint, easy to embed in 3D-printed power bank enclosures.

Solar Charging Setup

The TP4056 can charge from a solar panel, but you need to manage one critical issue: solar panel voltage varies with sunlight and load. A 6V solar panel can output 7V+ in bright sun and drop below 4V in shade — both problematic for the TP4056.

The recommended approach is to add a buck converter between the solar panel and the TP4056 IN+ pin, set to output a stable 5V. This isolates the TP4056 from panel voltage swings. Alternatively, use a dedicated solar charge controller IC like the CN3791 which is designed specifically for MPPT-style solar-to-lithium charging. For small hobby setups (1W panel charging a single 18650 overnight), the TP4056 with a simple series diode and 5.1V zener clamp on the input works reasonably well.

Keep in mind: 1A charge current from a 1W panel is not feasible. A 1W panel at 5V delivers only 200mA. Either reduce the PROG resistor to 2kΩ (580mA) and use a 3W+ panel, or accept a slow charge rate from small panels.

Parallel Charging Multiple Cells

A single TP4056 module can only safely charge one cell at a time. To charge multiple cells, you need one module per cell. Do not connect multiple cells in parallel to a single TP4056 — the IC will see the combined capacity and may not terminate correctly, and if cells are at different states of charge, large equalisation currents can flow between them and damage cells or the module.

For multi-cell DIY battery packs, the correct approach is to build the full series pack and charge it through a BMS + appropriate balance charger, not with individual TP4056 modules per cell.

Load Sharing Circuit

A common problem in battery-powered designs is simultaneous charge and discharge (load sharing): you want the device to keep running while plugged in for charging. The TP4056 datasheet discourages connecting a load to OUT+ while charging, because the load current adds to the cell current and confuses the charge termination algorithm.

The proper solution is a load-sharing circuit using a P-channel MOSFET that automatically switches the load from the battery to the USB input when power is available. When USB is connected, the load draws from USB directly and the TP4056 charges the battery independently. Several reference designs for this circuit are available in the TP4056 datasheet and hobbyist forums. For simple projects, many makers simply accept the minor termination inaccuracy of direct load sharing — it rarely causes harm with decent cells.

Common Mistakes and Safety Tips

🔥 Fire Safety: The TP4056 module gets warm during 1A charging — this is normal. However, if it becomes uncomfortably hot to touch, reduce charge current or check for a short circuit. Always charge in a well-ventilated area away from flammable materials. Do not cover a charging module with cloth or paper.
  • Mistake #1 — Wrong polarity: Reversing BAT+ and BAT− will instantly destroy the module and potentially the cell. Always double-check polarity before first power-up.
  • Mistake #2 — Input voltage too high: The TP4056 is rated for 8V maximum input. Using a 12V laptop charger directly will blow the IC. Use a 5V source only.
  • Mistake #3 — Skipping protection on long-term installs: If your device will be left unattended (like a solar sensor in the field), always use the protected module variant. The over-discharge protection is critical when the device runs the battery flat.
  • Mistake #4 — Using with LiFePO4 cells: The TP4056 charges to 4.2V, which is too high for LiFePO4 (max 3.65V). Using a TP4056 with LiFePO4 will over-charge and damage the cell. Use a TP4057 or other LiFePO4-specific charger IC instead.
  • Mistake #5 — Charging a swollen cell: Inspect your cell before every charge cycle. A swollen (puffy) cell must never be charged — dispose of it safely immediately.

Frequently Asked Questions

Q: Can I use the TP4056 module to charge a 18650 directly?

Yes — connect the 18650 cell positive terminal to BAT+ and negative to BAT−. If using the protected variant, use OUT+/OUT− for any load. Provide 5V via Micro USB or directly to IN+ and IN−.

Q: Why does the blue LED light up immediately when I connect the battery?

The battery was likely already at or near full charge (4.1–4.2V). The TP4056 detects this and skips directly to the CV termination phase, which ends quickly. This is normal behaviour and not a fault.

Q: How long will it take to charge a 3000mAh 18650 with the TP4056 at 1A?

Approximately 3–3.5 hours from near-empty to full. Lithium charging is not perfectly linear — the CC phase takes roughly 70% of total time, and the CV taper phase takes the remaining 30%.

Q: Can the TP4056 charge LiPo (lithium polymer) cells?

Yes, as long as the LiPo cell is a standard 3.7V single-cell type. The charge algorithm and 4.2V termination voltage are the same for Li-ion and standard LiPo chemistries. Do not use with high-voltage LiHV cells (4.35V max), as the 4.2V termination will under-charge them.

Q: Is it safe to buy a TP4056 module from a local market for ₹10?

Exercise caution. Very cheap modules may use inferior ICs or have poor solder quality. For any project involving a battery you care about, spend slightly more to get a module from a reputable source. At ₹45–60, a quality module from Zbotic.in gives you reliable performance and consistent protection behaviour.

Shop Batteries & Power at Zbotic.in

Find batteries, chargers, BMS boards, and power modules with fast delivery across India.

Browse Batteries →

Tags: battery charger, charging module, DIY power bank, lithium battery, TP4056
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
MQTT Tutorial for IoT: ESP32 +...
blog mqtt tutorial for iot esp32 sensors 594520
blog e bike hub motor controller guide india 594523
E-Bike Hub Motor & Control...

Related posts

Svg%3E
Read more

Power Electronics Lab: Equipment List for Students

April 1, 2026 0
Setting up a power electronics lab for students and hobbyists requires the right equipment to safely work with batteries, converters,... Continue reading
Svg%3E
Read more

Battery Recycling Process: Extract Materials Safely

April 1, 2026 0
Understanding the battery recycling process is essential as lithium-ion batteries reach end of life in growing numbers. India generates an... Continue reading
Svg%3E
Read more

Battery Formation: First Charge Process Explained

April 1, 2026 0
The battery formation process is the critical first charge cycle that transforms raw electrode materials into a functional lithium-ion battery... Continue reading
Svg%3E
Read more

Islanding Detection: Safety for Grid-Connected Solar

April 1, 2026 0
Islanding detection is the critical safety mechanism that prevents solar inverters from energising dead grid lines during a power outage.... Continue reading
Svg%3E
Read more

Grid Tied Inverter: Feed Solar Power to Grid India

April 1, 2026 0
A grid tied inverter converts DC solar power into AC electricity synchronised with the utility grid, allowing you to feed... Continue reading

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now