ESP8266-EVB-Bat battery voltage

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

Previous topic - Next topic



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?



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:
Technical support and documentation manager at Olimex