What's the best way to measure battery voltage?
I want to use an Arduino or Electric Imp to monitor the voltage of its battery every hour or so. But the battery's voltage is higher than the maximum analog input voltage (5 v for Arduino and only 3.3 v for Electric Imp). So the obvious way to do that is with a voltage divider across the battery. But the voltage divider drains the battery even when the battery voltage is not being monitored. So what's another way? Is there an IC that measures battery voltage without a drain on the battery itself? Or what's the best way to turn off the voltage divider when it's not being used to monitor the voltage? Is there an IC to do that? Thanks for any suggestions. I'm sure this question has been answered many times, but I couldn't find a good explanation of the best way to do it.
I want to use an Arduino or Electric Imp to monitor the voltage of its battery every hour or so. But the battery's voltage is higher than the maximum analog input voltage (5 v for Arduino and only 3.3 v for Electric Imp). So the obvious way to do that is with a voltage divider across the battery. But the voltage divider drains the battery even when the battery voltage is not being monitored. So what's another way? Is there an IC that measures battery voltage without a drain on the battery itself? Or what's the best way to turn off the voltage divider when it's not being used to monitor the voltage? Is there an IC to do that? Thanks for any suggestions. I'm sure this question has been answered many times, but I couldn't find a good explanation of the best way to do it.