TP4056 Charging Circuit Wiring
Run the TP4056 Charging Circuit Wiring MicroSim Fullscreen
Edit in the p5.js Editor
About This MicroSim
A TP4056 module has six solder pads, and every beginner mix-up with one comes down to putting a wire on the wrong pair. This diagram lays all three pairs out in the same order they appear on the real board:
- + / − beside the micro-USB jack — 5 V in. These are the same electrical node as the jack, so you feed one or the other, never both.
- B+ / B− — the LiPo cell, and nothing else.
- OUT+ / OUT− — your project. On a protected module these pads sit behind the DW01A and FS8205 protection pair, which is why the load belongs here.
Current animates along the wires as the cell charges, the CHRG and STDBY status LEDs behave the way they do on a real module, and the charge current tapers off and stops by itself as the cell approaches 4.2 V.
How to Use
- Watch it charge. With the USB plugged in, the red CHRG LED is lit and current flows from the supply, through the module, into the cell. Time only advances while your pointer is over the diagram.
- Hover any part — the chip, the protection pair, R_PROG, either status LED, any pad, the cell, the project board — to read what it does.
- Change the charge current. The menu swaps R_PROG. Charge current is
I = 1200 / R_PROG, so the 1.2 kΩ resistor modules ship with gives 1000 mA, and a 5 kΩ resistor slows it to about 240 mA for a small cell. - Unplug the USB with the project board switched on, and the board runs from the cell instead. Keep watching: when the cell empties, the protection chips disconnect OUT before the cell is damaged.
- Tick the mis-wiring box to move the project board onto B+/B− alongside the battery, unplug the USB, and watch what happens with no protection in the path.
Iframe Embed Code
You can add this MicroSim to any web page by adding this to your HTML:
1 2 3 4 | |
Lesson Plan
Grade Level
7-10 (Beginning Electronics)
Duration
10-15 minutes
Prerequisites
- LiPo battery basics and safe-handling rules
- Series and parallel battery pack wiring
- Reading a simple circuit diagram
Activities
- Exploration (5 min): Students hover every labeled part and write down, in their own words, what each of the three pad pairs is for.
- Guided Practice (5 min): Students set the charge current with the R_PROG menu and predict, before switching the project board on, whether the cell will still charge. The 120 mA setting with a 120 mA load is the interesting case — the cell stops gaining charge even though USB is connected.
- Assessment (5 min): Students tick the mis-wiring box, unplug the USB, and explain what the protection chips would have done had the load been on OUT+/OUT− instead.
Assessment
- Can the student label B+, B−, OUT+ and OUT− on a photograph of a real module?
- Can the student explain why the battery and the load do not share a pad pair?
- Can the student calculate charge current from R_PROG using
I = 1200 / R_PROG?
References
- TP4056 Datasheet (NanJing Top Power ASIC Corp.) - the source for the
I = 1200 / R_PROGcharge-current relationship and the 4.2 V termination voltage. - Lithium polymer battery - Wikipedia - chemistry, voltage range, and handling background for single-cell LiPo batteries.
- Battery charger - Wikipedia - the constant-current / constant-voltage charging profile this MicroSim models.