Let's Make Robots!

Arduino Battery Recognize

how to make arduino uno to recognize the type of the battery that i will connect on analog pins using a divider?


I took the idea from this site:http://www.instructables.com/id/Arduino-True-Battery-Capacity-Tester-Li-IonNiMH/

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Not sure you can heve it recognise the type, but it's easy enough toget it to measure a voltage, which should give some clues as to the type. Is that what you want?

I already read the voltage from a 12v lead acid battery but is there any module which can detect the type of the battery (e.g Lead acid ,Ni-Mh,Ni-CAD.......?)


Sorry if I become boring

Not unless you specifically add a circuit to the battery to identify itself.

Ok then is there any way to count the number of cells (is there any module or something for the arduino?)

I am annoyed. Please provide comprehensive questions, if you want compreenhive answers. State what is your ACTUAL FINAL objective, because from your initial ONE LINE question that was nowhere clear enough. And do not come back with bolded and underlined retorts like you'd just had made the plainest question in the world.

Down to business, yes each battery type has its own discharge profile, so by measuring the voltages over a COMPLETE discharge cycle you should be able to infer their types... is THAT what you want to do? and if so... why not just follow the instructable?


You know, this whole "detect the battery thing" seems to be built in to the project itself. 

  • Step 5  --If you hover over the picture, the tag is, "testing voltage to dertime [sic] battery type
  • Step 6  --The title of this step is, "Auto Detect Battery Tyoe [sic]"
  • Step 6  --Hover over picture for, "Auto detect battery type by voltage"
  • Step 6  --In the text, "It will detect if it is NiMH/NiCD or Li-ION by the voltage range .
    And then start the discharge cycle."

So it appears that, however this detection is being done, it is indeed being done by the instructable. I suppose the question again is;  Why don't you just build the instrucable the way it is shown? It says it will "detect the battery type" --Before going to an unrelated website, why not simply try the build as it stands and then ask the question after it fails to work? --Oh, and you might want to ask the author of the instructable --just sayin'.

I don't see how it can detect the battery type. What if I make a battery by sticking a strip of copper and a strip of zinc into a lemon? It's a valid battery. I bet if I hooked it up to that machine, I'd have a reall mess all over my workshop!


I haven't done that in aeons, actually. Feeling all nostalgic. I'm off to the lemon shop. I wonder if our local store has enough lemons to light an LED.


Shouldn't one know the battery type, in that they were the one who plugged it in?

--Its sorta like when my laptop feels the need to tell me, "you just plugged something into the audio jack"...  ...and my thought is, "yeah, no shit, I was the one that plugged it in!"


Are you one of those folks who gets irked when somoene answers te phone by telling you their number?

"Hello, 555-1234."

"Yeah, thanks. I know! Them wus the numbers I was a-pressin'."

I feel your pain. :-)