Reading VCC level
Posted: Sun May 15, 2016 5:43 am
ESP8266 has the ability to read the Vcc voltage using the internal ADC. Looking at the source, this is enabled in micropython by reading ADC channel 1 (instead of channel 0 for the 'real' ADC). However, this seems to require defining ESP_INIT_DATA_ENABLE_READVDD33 in user_config.h prior to compiling the firmware (source: http://nodemcu.readthedocs.io/en/dev/en ... creadvdd33 ). I've tried doing this and flashing the re-compiled firmware, but the firmware files are identical to not having set this, and reading ADC(1) always gives 65535. Any ideas?