Robot Pages of Jaap Havinga  

Mechanics Simulator
Snuf
BiPed
BiPed II
Mini Biped
Battery Charger
Schematics
Hardware Programmer
RC Servo controller
CNC
Links to other sites

Fast NiMH / NiCd Battery charger

This battery charger charges a  NIMH  5-pack battery used in the BiPed robot in less than 1 hour, and charges the 10-pack NiCd used in the Snuf robot in about 30 minutes. To prevent overheating of the battery, the charging current is turned off when the slope of the battery-voltage turns from positive into negative. A second termination-criterion of the charging process is provided for safety: the charge time is limited to about 1 hour.  

Figure 1: The battery charger in a small plastic case. Note the numbers shown on the display are in hex format.

In the figure 2 below you find the schematics of the Delta-U battery charger. The program for the utilized PIC 16F84A is given in this file nicd.asm *).  The transistor Q3 serves as a current switch, and should be able to handle the charging current. The charge current is limited by R5. This resistor should be able to dissipate the energy supplied to it.  The LM311 comparator, together with the PIC serves as a simple (non-linear) ADC. The absolute ADC-output value is not important, since only the change in battery voltage is considered. The charging current is switched off when the battery voltage is sampled (each second). The resistor pair R6/R8 should be configured such that the maximum battery voltage is measured in the range 0xE0 .. 0xE8 by the ADC. Then, since the ADC is non-linear, the ADC is sensitive enough to detect a negative slope in time. Since I had a surplus on LCD's I used one to indicate the actual status of the charger. One or two LEDs could do about the same of course.

Schematics of battery charger, click to get full size

Figure 2: Schematics of the battery charger (Click on image to get full size)

*) The MPLAB 6.6 project directory is zipped here, it contains all project files to compile the source.