Solar Power MPPT Control Li-ion Battery Charger

by Lithium-ion in Circuits > Electronics

8 Views, 0 Favorites, 0 Comments

Solar Power MPPT Control Li-ion Battery Charger

mini_IMG_1843.jpg

MPPT based IC, which tracks the power point and charges the battery with a max rating of 1A, in the form factor of TP4056.

Supplies

mini_IMG_1847.jpg

Components Required:

PCB from PCBWAY

CN3165 IC

Some Resistors and Capacitors

Diodes

Power supply

Story:

mini_IMG_1900.jpg

When talking about standalone single cell battery chargers only one popular name came into my mind that is our versatile Li-Ion/Li-Po TP4056 battery charger. Which is vastly available and has a lot of features related to battery protection. The lithium batteries are easily available in the market with proper charging solutions, but when it comes to solar changing a few microcontroller projects can be seen over the web. I want to create a standalone solar battery charger module, and luckily I found one solution at consonance CN3165, Like TP4056 Li-ion, the charge current can be set externally with a single resistor.

Onboard features include undervoltage lockout, automatic recharge, the constant current charging, the maintenance charge mode(timer termination), charge/termination indicators and battery temperature monitoring. All the modes and battery charging process is given below with all details. Big thanks to PCBWay for sponsoring the PCBs for this project! Their high-quality manufacturing and quick turnaround made this build possible.

CN3165 and It’s Features:

mini_2020_0102_004534_002.JPG

The CN3165 is a complete constant-current /constant voltage linear charger for single cell Li-ion and Li Polymer batteries. The device contains an on-chip power MOSFET and eliminates the need for the external sense resistor and blocking diode. An on-chip adaptive cell can adjust charging current automatically based on the output capability of input power supply, so CN3165 is ideally suited for solar powered systems.

Thermal feedback regulates the charge current to limit the die temperature during high power operation or high ambient temperature. The regulation voltage is internally fixed at 4.2V with 1% accuracy, it can also be adjusted upwards with an external resistor. The charge current can be set externally with a single resistor. When the input supply is removed, the CN3165 automatically enters a low power sleep mode , dropping the battery drain current to less than 3uA.

Features:

  1. Suitable for Solar-Powered System
  2. On-chip Power MOSFET
  3. No external Blocking Diode or Current Sense Resistors Required
  4. Preset 4.2V regulation voltage with 1% accuracy, upwards adjustable with a resistor
  5. Continuous Charge Current Up to 1A
  6. Constant-Current/Constant-Voltage Operation
  7. Automatic Low-Power Sleep Mode When Input Supply Voltage is Removed
  8. Status Indication for LEDs or uP Interface
  9. C/10 Charge Termination
  10. Automatic Recharge
  11. Battery Temperature Sensing


PCBWay is the best solution out there I found for PCB fabrication. They offer a low-cost, highly reliable, and foolproof process from prototype to full-scale product manufacturing. With quick turnaround times, extensive material options, and exceptional customer support.

Circuit Diagram:

Screenshot_2025_03_03-2.png

I have read the datasheet, and it depicts the application circuit with some protection features added on. The datasheet circuit is here:

Here we need a resistor to set the maximum output battery charging current, A capacitor on battery terminal for power supply noise cancellation. And a few led indicators for battery changing and done mode. In single cell operation the feedback pin is directly connected to the battery terminal and continuously monitors the battery voltage for automatic charging restart and power down. The same charging IC can be used to charge more than 1 battery @1Amp maximum by feeding the feedback pin with voltage dividers.

Modified Circuit:

Screenshot_2025_02_28-6.png

I modified the circuit to add some external protection features. I have added a USB type C input, a TVS diode to reject any spike in solar output and a forward bias diode to make it polarity friendly, which can be seen in the schematics.

In section 2, IC is placed itself with 2 resistors to set the current, led indicators and some coupling capacitors for the IC.

In section 3, output is taken from a pin header, And it also contains the same protection circuit which is there on TP4056. All this packed into a small form factor.

PCB Layout:

mini_IMG_1838.jpg
Screenshot_2025_02_28-9.png

This is the Hardware level design I have implemented keeping all the noise and stabilization problems in mind. Tracks are made with enough calculations to carry max current hence delivering maximum power and reduce heat effects. Two onboard status Leds is to monitor battery charging. And to keep all the effects of switching section minimal on the input and output the PCB is divided according to the input to output flow. I kept the form factor same as TP4056 board, which makes this design more practical and easier to use as a standalone battery charging device. For input power USB type C and solder pads are given same as TP4056 design.

To order the same PCB, download all the required files from here. I always prefer to use PCBWAY and their assembly services. PCBWAY is the China based PCB manufacturer that provides services in PCBA, SMT, Stencil, 3D printing and Metal parts. Sign-up now and order your first PCB, get free coupons to order PCBs from the link given here. Just upload the files and select the required board parameters, BOM and CPL files can be used to order fully assembled boards.

BOM and Assembly Considerations:

When soldering, the best practice is to mount the IC and USB connector first. Then small capacitors, resistor and then Inductor. Because the IC pad and USB connector are very hard to solder with hand. If you don’t want to assemble the board then PCBWAY assembly services are the best option to go with.

Lithium Ion Battery Charging Modes:

Let’s dive deep into the charging process and see what is happening during the changing process of a Li-ion circuit.

Trickle Charging:

Trickle charging (also known as pre-charging) occurs in two stages: It is a type of battery protection feature which is only enabled if somehow the battery gets over discharge.

Say if nominal voltage is 3.7v, and battery is over discharged (such as below 2.8V), recovery charging is performed first to prevent the battery from being damaged by excessive current. At this time, the software is not yet started, and it is a hardware-controlled behaviour. The "trickle charging" in this stage refers to the charging process after the battery is over-discharged and before it returns to the boot voltage. The current in trickle charging is 1/10 of the max charging current, which is 0.1C (If max charge current is 1A as an example, the trickle charging current is 100mA).

The commonly mentioned trickle charging refers to the charging process that continues for a period of time. It is a type of constant voltage charging and limits the value of charging current; once the battery reaches its normal voltage (3.7v), the trickle changing mode is shut down and Constant current charging mode is enabled.

Constant Current and Constant voltage charging:

During the standard charging process, the battery is charged with a constant current equal to the maximum charging current. As the battery voltage rises steadily, the charging process switches to constant voltage charging (at near about 4.15v) when the voltage approaches the set maximum voltage. At this point, the charging current gradually decreases until it reaches 1/10 of the maximum charging current, at which point the charging process ends. The constant voltage changing mode is used to keep the battery healthy and not to degrade faster.

Charge current rating is mentioned on the battery, Defined by the C rating. C is a method of representing current with respect to the nominal capacity of the battery. For example, if the capacity of the battery is 1000mAh, then 1C is equal to a charging current of 1000mA (1A).

Charge Termination:

There are two typical charging termination methods: the minimum charging current method and the timer method (or a combination of both). The minimum current method monitors the charging current during the constant voltage charging stage and terminates the charging process when the charging current decreases to between 0.02C and 0.07C. The second method starts timing when the constant voltage charging stage begins and terminates the charging process after two hours of continuous charging. In modern era, the charge termination in mobiles has not stopped even if it’s showing 100% health, at this time charging continues with a very small current to increase the overall battery life.

Testing and Working:

mini_IMG_1905.jpg
mini_IMG_1901.jpg
mini_IMG_1898.jpg

I powered on the board after assembling it with a power supply set to max current limit of 100mA so that if anything goes wrong, it will not damage anything. But worked in the first go, all the connections are correct, but always check the VCC and GND lines continuity before powering ON. So, I connected a 3.9V LI-ION battery with a max charge voltage of 4.2V. The default charging current is set. The charging current rating should match the battery rating, so I always recommend using a high C rated battery, while charging with 3A.

Solar Charging:

Simple Charging:

When charging the battery at full potential a very little heat is produced, which satisfies the 94% efficiency of this IC. I also have tested all protection features and all of them are working very normally. It is always recommended to check the output voltage of the board which should be in the range of 4.15-4.22 volts for the Li-ion battery. Try PCBWAY services from here, get free PCB coupons on first sign-up.