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
light sleep problem
-
- Posts: 9724
- Joined: Thu Nov 26, 2015 4:08 am
Re: light sleep problem
What hardware are you using to measure this? (Devboard, loose module, own board, ...)
Re: light sleep problem
I read the current from the power supply directly.
-
- Posts: 9724
- Joined: Thu Nov 26, 2015 4:08 am
Re: light sleep problem
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
I upload the schematic. No SD and no camera attached. It doesn't have too much load.
- Attachments
-
- esp32.png (173.36 KiB) Viewed 3245 times
-
- Posts: 9724
- Joined: Thu Nov 26, 2015 4:08 am
Re: light sleep problem
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
Thank you.
The problem solved.
The problem solved.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 66 guests