3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino True Battery Capacity Tester (Li-Ion/NiMH/NiCD/Pb)

Step 8Discharge Circuit

Discharge Circuit
very simple with the 2 A/D connected on the two sides of the resistor /
Vr=Vbat-Vfet.


« Previous StepDownload PDFView All StepsNext Step »
12 comments
Mar 10, 2011. 1:16 PMpaulryanmini says:
hi all
fixed the code after a long night. i can get the setup to start up and the lcd turns on. it will then pick up what type of battery is connected and will measure the voltage and current of the battery, but the led wont illuminate which leads me to believe the mosfet is not switching on. im using a irf540a with a rds on of .052 ohms. any ideas?

Ive been using a 1.3v 1200mah AA rechargeable battery nimh.

any ideas?
thanks
Aug 2, 2011. 2:43 AMmonbeamdistilleries says:
Im having the same problem with the same part. Also trying to reduce the required display size from a 24x2 to a 16x2. Great circuit as I have tons of recycled/scavanged Li-ion cells to test before I use them making a new E-Bike battery pack.
Mar 9, 2011. 11:31 AMpaulryanmini says:
hi
i copied the code above directly into ardunio 0022 program. i have the duemilanove clone.

it comes up with the following errors:

dunkbat.cpp:3:10: error: #include expects "FILENAME" or
dunkbat:3: error: 'LiquidCrystal' does not name a type
dunkbat.cpp: In function 'void CL2()':
dunkbat:23: error: 'lcd' was not declared in this scope
dunkbat.cpp: In function 'void setup()':
dunkbat:31: error: 'lcd' was not declared in this scope
dunkbat.cpp: In function 'void loop()':
dunkbat:76: error: 'lcd' was not declared in this scope
dunkbat:99: error: 'lcd' was not declared in this scope


any ideas im a complete noob
thanks
paul
Jun 30, 2011. 4:18 AMabosebkk says:
Dear paul

This is because the include file is not mentioned at the start. if you do: Sketch> Import Library>liquidcrystal , it will add the necessary header file to the sketch and compile correctly.

Jan 9, 2011. 2:10 PMslvr00gt says:
Here is more detailed diagram of the same thing
Jun 22, 2011. 2:07 AMm_boby_k says:
Hi slvr00gt, I' have seen your diagram but that's something I don't understand.
The FET voltage terminal is seems don't have connection to the drain circuit, how it's can give analog input (FET voltage) to arduino?
Mar 2, 2011. 6:47 AMslvr00gt says:
Adding better quality diagram
Mar 2, 2011. 4:35 AMpaulryanmini says:
hi
its a fantastic circuit and ive started to build it. have you by any chance got a higher resolution of the diagram above i cant zoom in enough? thanks
Mar 2, 2011. 6:49 AMslvr00gt says:
Just added powerpoint file above.... My diagram jpeg was originally high quality, but this forum compressed it into nothing. So I added original ppt file
Mar 16, 2011. 10:53 AMblast09 says:
Sorry but I miss something...It seems to me there's a typo in PPT diagram.
Pin "fetVoltage[plus]" on discharge circuit is left floating around. Could you confirm this? Thanks for great work anyway.
Mar 2, 2011. 10:30 AMpaulryanmini says:
thanks very much. im building it as part of a assignment for power electronics.

i will then alter it to work with 36v 14ah lithium polymer batteries somehow :-) if you have any ideas that would be great

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
27
Followers
5
Author:moris_zen