ESP32 deep sleep current consumption

pratipm
Posts: 1
Joined: Mon Aug 13, 2018 6:19 am

ESP32 deep sleep current consumption

Postby pratipm » Mon Aug 13, 2018 6:33 am

Hi,
Trying very hard for last couple of hours to get reported deep sleep current from ESP32 NodeMCU module. I am powering the board with 3.3V directly applied to the 3.3V pin so as to bypass the USB-serial I/o chip and VR, but still the board is drawing 16 mA in deep sleep mode. Code I am using is:

Code: Select all

#include "esp_sleep.h"
#include "esp_wifi.h"

void setup()
{
  pinMode(23, OUTPUT);
  digitalWrite(23, HIGH);
  delay(1000);
  digitalWrite(23, LOW);
  esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF);
  // esp_wifi_stop();
  esp_deep_sleep(10 * 1000000);
}

void loop()
{
}

Note: If I un-comment the line esp_wifi_stop(), there seems to be a crash as the board goes to sleep mode and immediately start executing out of sleep (as shown by the voltage at Pin 23)

Please help.

tueddy
Posts: 1
Joined: Thu Aug 23, 2018 7:33 pm

Re: ESP32 deep sleep current consumption

Postby tueddy » Thu Aug 23, 2018 7:39 pm

Hi,

i used this deep sleep code before with success (and some power reduction):

Code: Select all

   
      // turn Wifi/BLE off  
      WiFi.mode(WIFI_OFF);
      btStop();
      esp_wifi_deinit();
      esp_deep_sleep_start();
      // ESP is sleeping now!
   


But with latest revision from Github i get also a crash on line
esp_wifi_deinit();

Any ideas? Is this a regression?
Best Dirk

peterglen
Posts: 27
Joined: Thu Mar 22, 2018 5:55 pm

Re: ESP32 deep sleep current consumption

Postby peterglen » Wed Apr 10, 2019 8:07 pm

I have the same issue. And the same current drawn, 16 mA ... any ideas?

boarchuz
Posts: 604
Joined: Tue Aug 21, 2018 5:28 am

Re: ESP32 deep sleep current consumption

Postby boarchuz » Thu Apr 11, 2019 8:02 am

Tell us all about your setup, it could be a number of things. What module and/or board, what else is connected to it, your code, etc.

mezzynine
Posts: 12
Joined: Fri Feb 07, 2020 8:05 am

Re: ESP32 deep sleep current consumption

Postby mezzynine » Fri Feb 07, 2020 9:17 am

i removed a lot of components from my ESP32 (voltage regulator, power inductor, several transistors, UART chip) and left the tantalum capacitor. that got me down to 40uA (0.04mA). good enough.

mikelisfbay
Posts: 7
Joined: Mon Feb 17, 2020 11:41 pm

Re: ESP32 deep sleep current consumption

Postby mikelisfbay » Tue Feb 18, 2020 12:19 am

The 3.3V regulator has high standby current. A different regulator is needed. Some ESP32 boards are redesigned with low power regulator. You can find them on the internet.

Who is online

Users browsing this forum: No registered users and 81 guests