/Schematics/Power supply/Smart battery tester and charger

I started off this device to be a simple meter of internal resistance of mobile phone batteries but over time it became a bit more complex project. It is based on PIC16F88 microcontroller.

You can download the entire project files (schematics, hex file for PIC16F88) by clicking on red download button at the end of the article.

UPDATE 04-26-2011: New firmware is added to the .rar archive (the red download button). Some bugs fixed (read the CHANGELOG.txt file from the .rar archive).

UPDATE 05-15-2011: New firmware is added to the .rar archive (the red download button). Some bugs fixed (read the CHANGELOG.txt file from the .rar archive).

UPDATE 07-07-2011: New firmware is added to the .rar archive (the red download button). Some bugs fixed (read the CHANGELOG.txt file from the .rar archive).

UPDATE 01-30-2012: New firmware is added to the .rar archive (the red download button). Few changes made (read the CHANGELOG.txt file from the .rar archive).


So, now we have these capabilities: battery charging, discharging, measuring internal resistance of batteries and measuring capacity of Li Ion, Li Po, Ni Cd, Ni MH as well as regular (non rechargeable 1.5V cells). This device is fully automated so we can leave it overnight to fully discharge the battery, charge it, measure capacity and show on display.

In case of power supply loss, charger will remember how much it charged battery already and will continue after that point. This will prevent over-charging.


You can also force stop the charging process and start discharging from that point or continue charging. Charging of Li Ion and Li Po is done in two steps; first it will charge to 4.3V per cell and then continue pulsed-charge and hold the voltage on 4.25V so that the battery voltage is being measured without the presence of charge current. Discharging cells for the purpose of measuring capacity is done until 3V per cell. Capacity is measured during charging so we can know how much mAh the battery has accepted. Termination of charge in Ni MH and Ni Cd batteries is done with "delta T" method, where if the temperature rise is more than 1.5 degrees Celsius per minute it means the battery is full and charging will stop. There is also a fail-safe mechanism that will prevent overcharge when thermometer fails. In that case, the cut-off voltage is 1.6V per cell. Discharging of this kind of batteries goes until 1V per cell.


The purpose of testing 1.5V cells is to know the quality of the batteries that we purchase - we shouldn't just trust commercials that we see.

There are two PCB drawings for this device. One of them is for LM2575 which is easier to find, and a 330µH coil must be used with it.


[ Source: E. Lelic ]

Author (sent by): E. Lelic

Download counter: 8,755

Rating: (2.91, votes 1962)


Date: 14-04-2011

Lokalna verzija ove stranice: Pametni tester i punjač baterija


Bookmark and Share Comments (41)

comment [21]

Pokusao sam da skinem hex fajl na Download dugme,ali je ono je ne aktivno.U cemu je problem?

comment [20]

Novi firmware postavljen! / New firmware added!
IP: n/a

comment [19]

koliko znam tu se treba programirati.jel tako? u kojem to programu?

comment [18]

Plocica ne odgovara shemi u potpunosti jer je razvojna, samo prati shemu ne mora se sve na plocici popuniti. Sporni otpornici su vjerovatno R4 i R7 koji su na shemi neposredno uz tranzistor a na plocici su na strani PIC-a, ne mijenja znatno stvar gdje ce biti pa ih stavi kao na plocici. Pozdrav, E.Lelic.
IP: n/a

comment [17]

Pin 1 i 14 se spajaju preko otpornika na masu. Koji su to otpornici? Nema ih na shemi.
IP: n/a

comment [16]

Na shemi: nogice 2 i 3 od PICa se spajaju na 1 otpornik a na pločici na 2 pa me to malo zbunjuje.
IP: n/a

comment [15]

16F88 se lako nabavi, ja sam ga dobio besplatno od Microchip-a, svakako lakse je nabaviti taj nego uglaviti neki drugi. LCD is generic HD44780 2x16 char. You can buy all over...
IP: n/a

comment [14]

Da li ima neka zamjena za ovaj pic16f88 koji bi mogao iskoristit. Pozdrav
IP: n/a

comment [13]

and if possible also with those of the LCD which is needed Poslušajte
IP: n/a

comment [12]

or send me a datasheet for lm2959 and irf7341 or please find it on page http://uk.farnell.com/ this because I bought all these please send link
IP: n/a

Comment page: <12345>

add comment


e-mail (will not be published)


How much is = also add letter "a" at the end of your result! Eg.: 7a

Please log-in!

You can log-in on forum link: Login page. After logging-in, return to this page and click refresh in your browser.

site friends

sponsored links