So how good are those batteries? Simple battery testers measure the voltage, but that’s not what we need – we want to find the overall capacity of the battery. How long will a battery last from the time it’s fully charged to the time that the “low battery” indicator comes on your device?
You can see this in action in a video in the last step of this instructable.
Remove these ads by
Signing UpStep 1: This is a job for a microcontroller
That is a quick solution to the problem, but it involves watching a voltmeter for a few hours. That’s no fun at all. With a microcontroller, like the good old AVR chip, we can make a rechargeable battery tester that does the work for us. My tester puts AA batteries through a discharge test and reports the capacity in milliamp-hours (mAh) so you can compare battery capacity.
Design features
The tester can test multiple cells individually, and display the results on an LCD.
The tester discharges the battery while monitoring the voltage of the batteries. When the low threshold is reached, that cell is done it disconnects the load from the battery. When all tests are complete a series of beeps alerts the user. The tester identifies the type of battery by its initial voltage allowing both NiCd and NiMh batteries to be tested.
The design is based on the ATMega168 microcontroller, which has 6 A/D converters on the chip, so these will be used to read the battery voltages and determine the load current. Since each battery will require two A/D converters per cell, the maximum number of cells is three.
I built two of the testers, first using an Arduino board as a development system, and then a standalone device that will be more compact, and free up the Arduino for other projects.














































Visit Our Store »
Go Pro Today »




Please help. Thank you.
one more small question if the resistances in parallel are different in value between them (but have the same total value) will the power be distributed equally between them or not. my hunch says no, but your answer would be more credible
Otherwise nice circuit, I also have some Ni-Mh to test
Hi,
you need to have the PCD8544 library in your Arduino\libraries directory. download it from http://pcd8544.googlecode.com/files/PCD8544-1.4.zip and extract to the abovementioned directory.
posting as a new topic, as it doesn't let me to post as a reply for an unknown reason...
can help?
if you dont have a high power resistor, then you should connect 2 or 3 smaller of them in series not in parallel. 2x 1W resistors in series will withstand 2W of power :)
and the question is . while I have many power resistors around I dont have 2,5 ones. what would be the safe values to pursue ??
thanks again for the nice project :)
If you choose to use a different value for the resistor, the code must be modified appropriately.
Ideally the load resistor should be chosen to draw the amount of current that you expect from the device you want to use the batteries in.
But The Code Isn't Opening In
Arduino IDE
Please Can You Send It To:
arduinocode@gmail.com OR
customer.support@labsvisual.com
Click on Rechargeable_Battery_Capacity_Tester.pde
If you are using Windows, It downloads with a weird filename (ending in .tmp)
you will need to rename it to "Rechargeable_Battery_Capacity_Tester.pde"
You will also need to get the file PCD8544.h it's a library from code.google.com
(google search for this file)
I sourced a Nokia 5110 LCD from a supplier (not taken from an actual cell phone) and the pin configuration is slightly different than you describe. On my LCD the pins are identified as:
1 VCC
2 GND
3 SCE
4 RST
5 D/C
6 DNK(MOSI)
7 SCLK
8 LED
What connection changes do I need to make to use this LCD?
Thanks in advance,
Mike
♦The pin labeled LED- on my diagram does not exist - I assume that it is internally connected to the GND wire.
♦The pin labeled Vout on my diagram does not exist, so it can be ignored and the 4.7uF capacitor can be omitted.
♦RES is the same as RST (Reset)
♦On my diagram SDIN pin (Serial Data IN) is labeled DN(MOSI)
lszxy100@qq.com
lszxy100@qq.com
http://www.dfrobot.com/index.php?route=product/product&keyword=I2C+LCD+Shield&category_id=53&description=1&model=1&product_id=135
how would i change the code for it to work with it\/ or would i be better buying a 5110 screen?
thanks
I also like and appreciate your use of MOSFETs and will try to incorporate them in a similar project of mine.
I do have one thought. It seems to me that with the MOSFETs that you used, there would be an insignificant voltage drop across it when it's on so that you could probably ignore it in your calculations. Did you ever measure that voltage in your testing? Anyway, if this was irrelevant, you could probably test four batteries at once instead of three. Of course, since you already have it built, it's just a thought.
Again, well done!
Lazy Old Geek
It was intended for a feature that I never got around to adding, but I accidentally left it on the schematic. I'll remove it when I get a chance.
Lots of error messages like the one below:
undefined reference to `PCD8544::setCursor(unsigned char, unsigned char)'
I looked at the spec sheet, and the TIP31A says the Vce when fully saturated is 1.2 volts. That's WAY to high for this circuit. The transistor may be able to handle the current, but the effective resistance will be too high (at 1 amp it would be about 1.2 ohms). The 3103 MOSFET spec sheet specifies the Resistance to be about .012 ohms (12 milli-ohms). (Don't confuse little 'm' milli with big 'M' Mega Ohms)
I find that Transistors spec sheets talk about the voltage drop across the Collector and Emitter, while MOSFETS typically give ratings of the resistance across the Drain and Source.
That said, you can probably find an inexpensive substitute with similar characteristics, but it looks like MOSFETS are the way to go. I chose the one I did because it was available (on an old PC motherboard). I then Googled the partnumber looked for the RDS and I was in business.
I see that RadioShlock also sells the IRF510 MOSFET, but the spec sheet says it has a Drain to Source Resistance of 0.54 ohms which is a bit high too. Mouser.com, Alliedelec.com and Jameco.com carry a large number of MOSFETS - under a dollar each. Check the spec sheets and look for low Drain to Source Resistance (RDS)
Here's a link I found that discusses Vce (for transistors):
http://www.electronics-tutorials.ws/transistor/tran_4.html
Only problem is, I can't locate Nokia 5510 LCD screens on eBay on either side of the Atlantic (I'm in the UK) - are there other screens that would work?