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!
Sorry, I should have given more details. It’s a HILETGO board (38 pins – GEEKREIT does the same – programmed with the latest Arduino IDE.
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
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.
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