ESP8266-EVB-Bat battery voltage

Started by WimRoose, April 16, 2018, 02:11:40 AM

Previous topic - Next topic

WimRoose

Hi

Is it possible to measure battery voltage via adc on esp8266? ESP.getVcc() gives values around 3v - but that's taken from the output of the voltage regulator?

Wim

LubOlimex

It is possible to get the charge of the battery. It is not the simplest task but it is doable. The battery is not connected to ESP8266 (there is no battery voltage sense pin) so you would need to read the internal ADC and perform calculations (taking into account the specific hardware values). We don't have an example but you might use this project as a basis: http://esp8266-projects.org/2015/03/internal-adc-esp8266/
Technical support and documentation manager at Olimex