DIY a Smart NiMH/NiCd Battery Charger

by sainisagar7294 in Circuits > Electronics

113 Views, 0 Favorites, 0 Comments

DIY a Smart NiMH/NiCd Battery Charger

thumb3.jpg

There are a lot of DIY options available, but because these batteries work at lower voltage (1.2V) there is not any specific method.

Supplies

PCB from PCBWAY

CN3085 IC

Resistor and Capacitors

USB C

Soldering and testing unit

Story

mini_IMG_0892.jpg
mini_IMG_0900.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. But what about the other batteries which work on a lower potential, for example the crude NiMh or NiCd (Nickel metal hydride or nickel cadmium). There are a lot of DIY options available, but because these batteries work at lower voltage (1.2V) there is not a specific and standard method to charge.

One simple method is to create a constant current power supply, and charge the batteries at 1/10C rating for 10-16 Hours, this method is used in low cost applications. But the standard method to charge the batteries with all the battery protection features can be an integrated circuit like TP4056.

Luckily I found the one solution after searching the web a lot which works the same, it is CN3085 NiMH single to three cell battery charger IC. The device contains an on-chip power MOSFET and eliminates the need for the external sense resistor and blocking diode. CN3085 requires few external components, and is suitable for portable applications. Like TP4056 Li-ion, the charge current can be set externally with a single resistor. Other 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.

Features:

Screenshot_2024_11_27-9.png
mini_IMG_0904.jpg
  1. On-chip Power MOSFET
  2. Voltage accuracy:1%
  3. Precharge Conditioning for reviving deeply discharged cells
  4. Charge Current up to 1A
  5. Constant-Current/Constant-Temperature operation with thermal regulation
  6. Automatic Low-Power Sleep Mode when input supply voltage is removed
  7. Indicators for Charge and termination status
  8. Maintenance Charge Mode(Timer Termination)
  9. Automatic Recharge
  10. Battery Temperature Monitoring

Circuit Diagram:

Screenshot_2024_11_28-1.png
Screenshot_2024_11_28-4.png

Here is the typical application circuit as per the datasheet of the IC (Picture_1) , the circuit can be modified according to the needs from 1 cell to 3 cell battery charge applications. I am designing the battery charger for 1S/2S cells. The resistor divider on the output, works as a feedback system which keeps the voltage in the range of 1.2V and sets the output voltage. Battery voltage is fed back to the CN3085 through this pin. The CN3085 determines the charge mode based on the FB pin voltage. The battery terminal voltage at BAT pin is given by : VBAT=VFB×(1+R3/R4) .

Moreover we need a potentiometer to adjust the output voltage as per the cell rating. The changing voltage may go up to 1.3-1.35V in this case. The potentiometer can be removed and replaced with a fixed resistor after that which eliminates its need. Or we can use a divider network as shown in the modified circuit diagram (Picture_2 ). I eliminated the battery temperature monitoring function for now, because for that we need a NTC which is placed very near to the battery surface which is not possible with this unit.

PCB and Gerber File:

mini_IMG_0894.jpg
Screenshot_2024_11_27-7.png

To keep the circuit simple and in low form factor, I took my motivation from the TP4056 again and designed the PCB as per that. The PCB has an input charging 5V type C port, some led indicators which monitor battery charging state and turn on/off according to whether the battery is full or not. If the charging mode is on, the indicator LED remains on otherwise off. Some power supply decoupling capacitor and a feedback loop makes this board fully compatible to charge a 1S/2S battery. The cell voltage can be changed from 1S to 2S from the onboard jumper. Otherwise a variable resistor can be used to tune the output voltage.

As I got my hands on the PCBs from PCBWAY, I soldered all the components. And tested out all the modes given below. Sign-up now using this link and get free coupons to order your first PCB. All the required files Geber, BOM, pick and place are uploaded on the PCBhub see from here.

Battery Charging Process and Modes:

Screenshot_2024_11_28-3.png
Screenshot_2024_11_28-2.png

Precharge mode: If FB pin voltage falls below 0.843V, or we can say the battery voltage is below 70% of the maximum voltage of the battery terminal, the CN3085 goes into precharge mode, and the charge current is regulated at 10% of that in constant current charge mode.

Constant Current charge mode: If FB pin voltage is greater than 0.843V, and less than 1.083V, the CN3085 is in constant current charge mode. In the constant current charge mode, the charge current is determined by the following equation as per datasheet circuit: ICH = 1218V / RISET.

For example, if 1A charge current is needed: RISET = 1218V/1A = 1.218kΩ For the stability over temperature and time, metal film resistance with 1% accuracy is recommended.

Once the voltage at FB pin rises above 1.083V, the CN3085 stops the constant current charge and enters into the maintenance charge mode, at this time the corresponding voltage at BAT pin is determined by the following equation: VBAT = 1.205 × 90% × (1 + R3/R4).

Maintenance Charge Mode: If the voltage at FB pin rises above 1.083V(90% of FB maximum voltage), the constant current charge mode is stopped, and the CN3085 goes into the maintenance charge mode. The charge current in maintenance mode is 60% of the constant charge current. An internal timer is started once the CN3085 is in the maintenance charge mode, this puts a time limit on the maintenance charge mode, the time limit is programmed by a resistor and a capacitor at the RC pin. After the timeout occurs, the whole charge cycle is terminated, the CN3085 enters into termination mode. In maintenance charge mode, the time limit is determined by the following equation: T=2654×R5×C1+4980×C1×103 Where: T is the time limit in second R5 is the resistor from RC pin to VIN pin, the unit is ohm, R5 should range from 20kΩ to 5MΩ, otherwise, the timer’s accuracy may be affected. C1 is the capacitor from RC pin to GND, the unit is Farad, C1 should be greater than 1nF, otherwise, the timer’s accuracy may be affected.

Charge Termination in NiCd/NiMh Batteries:

3-s2.0-B9780750670067500048-f03-54-9780750670067.jpg

The –∆V (negative delta V) fast charge termination is a method used to detect when a nickel-metal hydride (NiMH) battery is fully charged and to stop the charging process to prevent overcharging. This technique is based on monitoring the battery voltage during the charging cycle.

During the charging of NiMH batteries, the voltage rises steadily until the battery is nearly full. Once the battery reaches full capacity, a slight drop in voltage occurs, which is referred to as a "negative delta voltage." This voltage drop happens due to internal electrochemical changes as the battery is fully charged, causing a temporary decrease in terminal voltage.

To implement the –∆V termination, the charging circuit continuously measures the voltage of the battery pack. When it detects a decrease in voltage (the "negative delta"), it recognizes that the battery is fully charged and stops the charging process or switches to a trickle charge mode.

Key Points About –∆V Fast Charge Termination:

mini_IMG_0909.jpg

1. Prevents Overcharging: Stops charging at the right point, which helps protect the battery and prolong its lifespan.

2. Accurate Detection: The slight voltage drop can be subtle, so precision in monitoring is necessary.

3. Temperature Correlation: Fully charged NiMH cells generate heat, so some chargers also use temperature sensing as a secondary indicator.

However, one downside of –∆V termination is that it may not work well if the charging current is too low, as the voltage change can be difficult to detect in such conditions.

Working:

mini_IMG_0898.jpg
mini_IMG_0895.jpg

A huge part of this project’s success is thanks to PCBWay’s top-notch PCB manufacturing. Fast, efficient, and always on point! The PCB is very clean and specific because all the battery protection features, charging modes selections and automatically done by the IC itself. I have tested all the modes by charging a 1.2V 800mAH NiMH battery, which recommends a charging current of 80mA for 16 hours but with this charger it is possible to fully charge the battery in just 3 hours from a deeply discharged state. I will recommend using this charger, all the files are uploaded on the PCBWAY hub check them out from here.