I'm using this to power my Arduino, as well as run 2 motors, so they are eaten up quickly. I was wondering if i could use analogRead to measure the battery capacity.
Actually, i planned on having a spdt switch, or a latching relay to the circuit to choose between charging, and operation when plugged in to another powersource.
Basically, i wont be using the batteries that are being charged while reading the battery level.
how do phones and other devices read their battery level?
How could one take advantage of the 1.1V reference internal to the ATMega?