In an STM32-based project which uses a LiPo battery, I would like to measure the raw battery voltage to get a rough indication of the remaining charge. Since the battery voltage is higher than the STM32's regulated supply, I cannot connect it directly to an analog input.
The obvious solution of using a resistive voltage divider is not great, since it will draw non-negligible standby current: The highest input impedance of the Sigma-Delta ADC input is around 1.5 MOhm (during conversion, for lowest gain and clock frequency), hence a voltage divider would need to be around 100 kOhm or lower.
What are my options here?
- A high-impedance divider with a large buffering C? (Input impedance without an active conversion is not specified, but should be very high, and I don't need to run the conversion often.)
- An op-amp buffered voltage divider? (But then standby consumption of the op-amp becomes an issue...)
- Are there battery charging ICs which provide a Vbattery/2 output for easier monitoring?
- Any other ideas?
Which approach would you prefer? Which ones are terrible ideas? Thanks for your comments!