• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

High Current on Deep Sleep

Q&A Forum › Category: ESP32 › High Current on Deep Sleep
0 Vote Up Vote Down
Barry Davis asked 7 years ago

When I put my ESP32 into deep sleep it draws 2.75 ma.  It says here
https://github.com/espressif/arduino-esp32/issues/1113
that for it to draw the .150 ma that the datasheet claims, the wifi must be turned off.
When I use:

#include <esp_wifi.h>
...
  esp_wifi_stop();  
  esp_deep_sleep_start();

the board simply resets, showing “Boot number 1.
Has anyone solved this problem? Thanks in advance!

5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Are you using a bare ESP32 chip? Or an ESP32 Development board?

0 Vote Up Vote Down
Barry Davis answered 7 years ago

Sorry, I should have given more details.  It’s a HILETGO board (38 pins – GEEKREIT does the same – programmed with the latest Arduino IDE.

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

That board will never reach those current level. In order to achieve those low current levels, you need to be using a bare ESP32 chip with the minimum components possible. 
Can you try the following to turn off (disable) the ESP32 Wi-Fi and Bluetooth:

#include "WiFi.h"

void setup() {
WiFi.mode(WIFI_OFF);
btStop();
} void loop() { }

I hope that works for you. Regards,
Rui

0 Vote Up Vote Down
Barry Davis answered 7 years ago

Of course; I should have known that!  Thanks, Rui, for steering me down the correct path.  For interest:

  • I removed the Pwr On LED and saved 1.2 ma; and
  • the suggested disable code didn’t change anything for me.

I was going to remove the ASM1117 regulator, but I don’t think it will change much, so I will now look for a bare ESP32 chip and solder it onto a module adapter.  OOH, we’re having fun now …
Cheers and keep up the great work … Barry.

-1 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

You’re welcome! Let me know your future results. I’ve removed the regulator and I’ve powered the ESP directly in the 3.3V pin and I was able to lower the current consumption. I think that should should disable/turn off the ESP Wi-Fi and Bluetooth with that code, but I haven’t recently looked into that subject… Regards,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.