Simple battery checker

Hi guys,

Is there any way how to check battery with minimum or zero external components ?
I just need to check battery before it will be almost depleated

Thank you :wink:

Is there any way how to check battery with minimum or zero external components ?

What kind of battery? Check it how? Check that it is there? That it is a pretty shade of blue? That it weighs 278 pounds? That is has some specific density?

Is there any way how to check battery with minimum or zero external components ?

If you mean can you check the voltage of an external battery then unless it is known to be less that 5V you will need a couple of external resistors connected as a voltage divide to bring the voltage presented to the Arduino into the 0 to 5V range.

Best way to check whether a battery is dead or not, use a multimeter!

For constant regular logging and checking of voltages, do as UKHeliBob says.

However you check the voltage make sure that you do it under load as the no load voltage is not a good measure.

Yes, of course I meant voltage, sorry guys.

I have wireless transmitter powered with 9v battery, and it would be so nice to have notification when battery is dying.
Idea is, that when battery power will be very low, but strong enought to send signal, transmitter let reciver know about it.
I don't need any special measurements, just safely know when battery is below notification limit.
So as I browsed your posts, it could work way that I will connect 9v positive pole with some digital input trough resistor (R ?) and will measure it with arduino units (255) ? Even without external libary ? Can it work this way, or is there something better ?
Thank you!

I will connect 9v positive pole with some digital input trough resistor (R ?)

Don't do that. Use Ohms LAw to your advantage. Use a resistor divider to reduce the voltage into the 0 to 5V range. 2 resistors in series between your 9V line and GND with the negative output of the 9V supply also connected to Arduino GND. If the resistors are of equal value then half of the 9v voltage will appear at their junction. Connect this to an Arduino analogue input pin and read the value. Use a multimeter to determine the actual voltage of the battery and some maths to convert the analogue reading into the voltage.