winnetouch wrote:Ok, here goes
1. I have 3 of the 4 analogue pins free.
2. I'm using pins 0-10 and I believe pin A0 or A1 (I don't know exactly the circuit is at my folks house).
3. I do not have a bench power supply.
4. I do not have a multimeter handy but I could probably borrow one somewhere.
I also have one or two spare arduino micro's handy, an arduino nano (got them after the fact) and another sparfun pro micro somewhere in the mail.
Okay, great, thank you.

You can actualy use your leonardo to do the battery monitoring and indication.
The arduino I have put in my GameBoy has the following features:
[THIS ONLY APPLIES TO MY PARTICULAR BATTERY, BUT WITH SOME TWEAKING, IT CAN ALSO WORK WITH YOURS!]
- It will detect when the battery is at 3.54 Volts, that means the battery is LOW. When the battery is low, an red LED will come on.
- About 10-15 minutes later, the battery will be at 3.20 Volts. This is the "critical point" and my arduino will then send a signal to the raspberry pi via GPIO to safe-shutdown it
- When a charger is plugged in, all shutdown actions will be surpressed
Without a lab bench power supply though, it will take quite a bit longer depending on the battery's mAh you use.
You will also need two resistors to form a so called "voltage divider". Let me explain what it does:
In this case, the voltage divider simply breaks down let's say a maximum voltage from 4-5 volts to 2.56 volts.
Since your leonardo has an internal voltage reference of 2.56 volts, we don't want to give it voltages above that, because otherwise we won't be able to read them.
Could you tell us what battery you are using (chemistry [LiPo, LiOn, NiMH, etc.] , voltage, capacity in mAh, maybe brand, or simply a link to it)?
After that, I can calculate the resistor values, make a hook up plan you need to see how to connect things up, and then explain what you need to do to get your baseline voltage readings for further use.