Re: Internal system voltage of ESP-01 for low battery warnin
Posted: Sat Sep 18, 2021 12:04 pm
You need to activate the PHY layer first. In my experience, if you don't do it, the ADC_READ_VDD_MODE will always read 4466.
Just include "esp_wifi.h" and add these three lines at the start of app_main():
After that, in the monitor, you should see something like this:
phy_version: 1163.0, 665d56c, Jun 24 2020, 10:00:08, RTOS new
I (410) phy_init: phy ver: 1163_0
Also remember to comment out the adc_read_fast block, since it is not suitable for Vcc mode.
Just include "esp_wifi.h" and add these three lines at the start of app_main():
Code: Select all
ESP_ERROR_CHECK(esp_event_loop_create_default());
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
After that, in the monitor, you should see something like this:
phy_version: 1163.0, 665d56c, Jun 24 2020, 10:00:08, RTOS new
I (410) phy_init: phy ver: 1163_0
Also remember to comment out the adc_read_fast block, since it is not suitable for Vcc mode.