Page 1 of 1

A battery measurement

Posted: Fri Aug 14, 2020 6:44 am
by jenya7
I'm planning to power my ESP32 board directly from a battery. How can I measure the state of the battery to alert a user on low battery?

May I apply VCC directly to an analog input to measure the battery voltage?

Re: A battery measurement

Posted: Fri Aug 14, 2020 7:51 am
by ESP_Sprite
That depends on the battery, but generally, no. You need a voltage divider to bring the voltage in range of the ADC.

Re: A battery measurement

Posted: Fri Aug 14, 2020 12:47 pm
by jenya7
ESP_Sprite wrote:
Fri Aug 14, 2020 7:51 am
That depends on the battery, but generally, no. You need a voltage divider to bring the voltage in range of the ADC.
It will be 1.8v?