
If you're interested in modifying the Yonii TC1 lithium battery charger using the IP2312, you might want to check out this article.
The C8S (SST40 version) flashlight battery uses a 21700 cell. If none of your existing chargers can fit it, you can make a custom board and modify it with the IP2312.
IP2312 Schematic

The circuit board is shown in the figure below:

After installing the components, the circuit board looks like this. You'll need to prepare all the components on the board and solder them properly.

The charger's outer case is shown in the figure below. This one has a TYPE port, which makes it more convenient to use.

The front of the charger is shown below, and it can charge 21700 batteries.

The back shows the specifications as in the figure below.

You'll need to make a hole on the side of the case. This makes it easier to adjust the charging current. If you still find it inconvenient, you can move the DIP switch to the outside.

Once everything is installed, you can start testing. The picture below shows a demonstration using an LG 21700 battery. You can also measure the current yourself with a multimeter.

Current Setting Method
current | Left dial code switch | Right dial code switch |
1A | Down | Up |
1.5A | Up | Down |
2A | Up | Up |
2.5A | Down | Down |
If you feel that using DIP switches to set the current is easy to forget over time, you can also use a single-chip microcontroller to control the IC. Adding an indicator light to show the current setting makes it even simpler, and you can adjust it with a single button.
The end