Hardware: BasicATOM Pro on Bot Board II, 6 volt battery for CPU, 12 volt battery for Sabertooth 2X10 motor control.
I have standard rechargeable batteries, the ones in the light green shrink wrap seen in most robot stores.
The 6V only lasts about an hour. When the program starts dying/acting up, I know that the battery is low. When I switch to a charged battery and all is well, but I’d rather not wait until then.
I’d like to have a visual way (LED?) to show either “battery good” or (preferred)“battery low”.
Googleing “battery level monitor” gets me several Op-Amp (LM741) circuits that can be used to light an LED when the voltage drops to a preset level. (Sub-question - - What is the desired level for 6 and 12 volt batteries, or what voltage is used to trigger the "“voltage too low” LED??)
Is an Op-Amp circuit the way to go? …Or is there some way the Bot Board itself can be used to monitor voltage?