I am trying to use light sleep with the help of below code:
Serial.println("Wifi_off_timerfunc called to disable wifi");
Serial.println("set the sleep as LIGHT SLEEP");
wifi_fpm_set_wakeup_cb(fpm_wakup_cb_func1); // Set wakeup callback
In the normal mode, I measured the current and its showing 70~80mA.
But when I am measuring the current output after "LIGHT SLEEP",the measured current is 15~18 mA.
As per document "9B-ESP8266-Low_Power_Solutions__EN.pdf", current for Light sleep should be between 0.4~1.8 mA.
I am using SDK version as ESP8266_NONOS_SDK_V1.5.4_16_05_20.
can you let me know if I am missing something while invoking the "LIGHT sleep".
What are your GPIO states in sleep mode? As a rule of thumb, you should switch all outputs to high state if they are pulled high or low, if they are pulled low.
Sleep mode power consumption will depend on a lot of factors, including quiescent current of the voltage regulator you are using. Do note that the flash memory also consumes power.
Depending on where in the circuit you are probing for current consumption, the answer can vary.
I am using ESP8266-01, which consists of 2 GPIO. GPIO 0 is connected to GND while GPIO 2 is floating when chip enter LIGHT sleep mode. I am not using voltage regulator as I am supplying 3.3V from battery.
You should try the SDK v.1.5.3 with patch v.18.104.22.168 applied. A similar issue of high current in light sleep mode was resolved in that patch.
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!