Fake TP4056 Charge Curve Tester With INA219

by A2D Electronics in Circuits > Electronics

2150 Views, 8 Favorites, 0 Comments

Fake TP4056 Charge Curve Tester With INA219

IMG_2539.JPG
IMG_2538.JPG

Why its needed
I’ve been using TP4056 modules for a while now, and have just recently found out that there are tons of fake modules out there now. It’s actually really difficult to find genuine TP4056 chips. This blog has a great outline for identifying some of the chips and the potential problems with them. I wanted a cheap and effective way to test my TP4056 modules to make sure that I am not damaging any 18650 cells.

You can also check out this project on my website:

https://a2delectronics.ca/2018/03/10/fake-tp4056-charge-curve-tester-with-ina219/

Dummy 18650

To interrupt the current path in the 18650 charging circuit, we need to either slot 2 pieces of wire and a separation material in the positive end of the 18650 holder, or make a dummy 18650 cell, and put another 18650 holder on top of everything. I designed an 18650 cell in fusion 360 (it was very simple) and added a loop on the top of it to easily get it in and out of any testing station or TP4056 modules. You can find the file for it on here (coming soon).

Downloads

Other Parts and Connections

IMG_2535.JPG
IMG_2534.JPG
IMG_2536.JPG
IMG_2540.JPG

The only parts needed for this project are an INA219 current sensor, a micro SD card holder, and of course, an Arduino nano. On each end of the dummy 18650, insert a nickel strip (used for spot welding) or a piece of solar busbar. Connect the all together, using SPI for the micro SD Card holder and I2C for the INA219 module. One ground wire from the Aduino must be connected to the negative side of the 18650 cell to allow the INA219 to measure the voltage as well. The CS (Chip Select) pin of the micro SD card reader can be connected to any Arduino Pin, but most examples use pin 4, so I will stick with that to avoid modifying code.

Code

To get the current flowing into the 18650 cells, and the voltage of the 18650 cells, we need the load voltage and the current from the INA219 module. Adafruit’s library is very easy to use, and works well. As for logging data to the SD card, we can use the built-in SD library, use a string to hold each line of data, separating each value (load voltage, current, bus voltage) by a comma so that it is easy to import into excel and create graphs.

Charging Graphs

First Graph Test.jpg

So far, I have not found any of the TP4056 modules that I have to be problematic, but I will keep testing them.