Battery charge indicator using LEDs and Nano

Hi all, is it possible to use a nano board to indicate state of charge of batteries using four LED'S?

Cheers

Les

Yes.

sigh thank you for the 100% answer without actually providing any useful information! Your karma points must have come from somewhere else! I presumed anyone reading a forum that asks questions would be there to help and not provide obtuse responses...

Ok, it is possible, can anyone indicate how it could be done with some actual useful information? As a knock on question, if I am using a nano for another purpose and being powered by batteries, can the same nano also be used to read the battery state or does this need to be done with a separate Nano

Cheers

Les

Hi
Can you please be more specific about what do you need? Help with hardware or software? Your original question is YES/NO type, so its hard to answer helpfully.

Tutorial like this can help you. Just keep in mind that mentioned 5 volts may be wrong value if you by chance have 3.3 volt version of arduino Nano.

Thanks - this is for a remote sensor for my greenhouse for a humidity and temperature type sensor, and because there is no power to the greenhouse I want a quick indication as to how the batteries are. The Namos I have are the ATMega168 type with a 5V pin

However the Nano will be powered by the very batteries I want to 'measure', so I am not sure if the Nano requires to be separately powered to be able to use as a battery meter.

Cheers

Les

Well that should not be a problem. I did it before. What type and voltage is the battery?

4 1.5v cells, a series connection making a 6v pack, one of those commercial 4 cell holders. I was thinking of maybe using rechargeable batteries, but i believe that the voltage is lower and so I'm not sure if it will affect the function

Cheers

Les

Hmm, I am afraid only arduino itself will consume batteries in something like 4 days. Quality AA alkaline battery has around 2 000 mAh and arduino nano claims to use 19mAh. Even if you use some sleep function between readings, linear stabiliser will constantly use something like 10 mAh.
Hope I calculated it right.

By the way, I suppose that you are going to transmitt data wirelessly to something, so the why not send the battery voltage as well.
Anyway for start it seems to be good, and when it will be fully working you can try to use something like rechargable battery with solar cell.

Atmega 328 usually has no problem to work on 3.3V even with 16MHz crystal (but it is against datasheet specifications) so using li-on should be possible (heat concern?), but mind the voltage for sensors and transmitter.

Oh and my english may be quite rusty. :slight_smile:

@ Lesthegringo
Read the first topic telling how to get the best from this forum. That's what forum helpers expect from You. Your mother is not working here.

No helpers posts wiring diagram, component list, code needed to make this or that. Such acting would surely insult every member that does know something.

You easily find projects read voltage and/or excercise LEDs using google.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.