Page 1 of 1

light sleep problem

Posted: Wed Sep 08, 2021 8:15 pm
by guangzong
Hi,
I am trying to make esp32 enter light sleep mode.
After I set up light sleep, I saw 45 mA current consumption. But in the datasheet, it should be 0.8mA.

Following is the code.

esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP *uS_TO_S_FACTOR);
esp_light_sleep_start();

My suspect ion is WiFi or Bluetooth still working.
Can you tell me how to turn it off and why power consumption is 45mA;

Best,
Guangzong

Re: light sleep problem

Posted: Thu Sep 09, 2021 1:25 am
by ESP_Sprite
What hardware are you using to measure this? (Devboard, loose module, own board, ...)

Re: light sleep problem

Posted: Thu Sep 09, 2021 1:49 am
by guangzong
I read the current from the power supply directly.

Re: light sleep problem

Posted: Thu Sep 09, 2021 4:51 am
by ESP_Sprite
That's nice, but I'd like to know what hardware you are testing this on. Devboards may have loads of other components leading to high power use.

Re: light sleep problem

Posted: Thu Sep 09, 2021 3:39 pm
by guangzong
I upload the schematic. No SD and no camera attached. It doesn't have too much load.

Re: light sleep problem

Posted: Fri Sep 10, 2021 1:35 am
by ESP_Sprite
That looks OK; the AMS1117 has a pretty high quiescent current but not 45mA worth of current. Can you post your code? Also, are you following what the ESP-IDF documentation says to do, specifically "Before entering deep sleep or light sleep modes, applications must disable WiFi and BT using appropriate calls (esp_bluedroid_disable(), esp_bt_controller_disable(), esp_wifi_stop())." ?

Re: light sleep problem

Posted: Thu Sep 16, 2021 1:18 am
by guangzong
Thank you.
The problem solved.