by i-Bot » Fri Nov 30, 2012 11:59 am
by i-Bot
Fri Nov 30, 2012 11:59 am
The battery voltage monitoring does work within the limits described by David. You will see that the resolution in voltage measurement is quite small and the range limited. I would suggest that you use a value around 6 Volts for a good battery when the robot is in the standard pose.
Battery voltage is not a very good measure of battery capacity remaining and is very load dependant. If the battery is at 6 volts in standard pose, it will likely drop below that threshold when making moves. You might be better to count the number of drops below 6 volts during movements.
You might try a large capacitor at the junction of the resistors and the analog input to ground ( best to also have a diode in parallel with other resistor to protect processor on power down). This might integrate the varying voltage.
The battery voltage monitoring does work within the limits described by David. You will see that the resolution in voltage measurement is quite small and the range limited. I would suggest that you use a value around 6 Volts for a good battery when the robot is in the standard pose.
Battery voltage is not a very good measure of battery capacity remaining and is very load dependant. If the battery is at 6 volts in standard pose, it will likely drop below that threshold when making moves. You might be better to count the number of drops below 6 volts during movements.
You might try a large capacitor at the junction of the resistors and the analog input to ground ( best to also have a diode in parallel with other resistor to protect processor on power down). This might integrate the varying voltage.