light sleep problem

guangzong
Posts: 6
Joined: Wed Sep 08, 2021 7:56 pm

light sleep problem

Postby guangzong » Wed Sep 08, 2021 8:15 pm

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

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

Re: light sleep problem

Postby ESP_Sprite » Thu Sep 09, 2021 1:25 am

What hardware are you using to measure this? (Devboard, loose module, own board, ...)

guangzong
Posts: 6
Joined: Wed Sep 08, 2021 7:56 pm

Re: light sleep problem

Postby guangzong » Thu Sep 09, 2021 1:49 am

I read the current from the power supply directly.

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

Re: light sleep problem

Postby ESP_Sprite » Thu Sep 09, 2021 4:51 am

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.

guangzong
Posts: 6
Joined: Wed Sep 08, 2021 7:56 pm

Re: light sleep problem

Postby guangzong » Thu Sep 09, 2021 3:39 pm

I upload the schematic. No SD and no camera attached. It doesn't have too much load.
Attachments
esp32.png
esp32.png (173.36 KiB) Viewed 3239 times

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

Re: light sleep problem

Postby ESP_Sprite » Fri Sep 10, 2021 1:35 am

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())." ?

guangzong
Posts: 6
Joined: Wed Sep 08, 2021 7:56 pm

Re: light sleep problem

Postby guangzong » Thu Sep 16, 2021 1:18 am

Thank you.
The problem solved.

Who is online

Users browsing this forum: No registered users and 234 guests