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.

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. :-)

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.

 

As mentioned down the page, discharge profile. In the article it mentions that you have to have a fully charged battery and run it fully flat to determine type. LiPo, NiMH and standard alkaline non rechargeables all have very different voltage against time graphs.

Yeah. I read that later. I'm going to plot a discharge curve for a lemon.

I presume it would start low and then quite quickly turn into what can only be described as eff all.

 

 

I never did the lemon battery science experiment as a kid :(

If you fully flatten a LiPo then you damage it. Lithium based batteries should not be discharged below 3V per cell.

Well, I barely looked at the instructable page, but assume the "complete" discharge cycle means (and that's what I mean with) is over the "useful" range only.

Anyhow, it's a bit silly to go through such lenghts to identify a battery type, when most of the times one can do that just by looking at it :P

 

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?