DEEP Slpeep high power consumption

Hi everyone.
I´m using Esp32 to sense an analog pin.
I´m powering with 2 batterys AA
The problem is that the power consumption in deep sleep is not the expected.
It´s consuming 35mA when it should be a lot less.

The lines in the code are:

esp_sleep_enable_timer_wakeup(xxx);
esp_deep_sleep_start();

Is that correct?
Thank to all.
Best regards!

Could be the other circuitry on the board.

Some ESP32-boards don't take much care of ultra-low-power.
But 35 mA would be a real bad designed board.

This board uses chips and circuitry that are optimised for ultra-low-power in deep-sleep mode.
It has two RGB-Leds on board.

ezSBC.com ESP32-01 BREAKOUT AND DEVELOPMENT BOARD

Shiped from the USA. To germany the shipping-cost was affordable. So give it a try

best regards Stefan
any newbee can apply the most professional habit from the first line of code they write on their own:
add only ONE thing at a time. Test/debug that ONE thing until that ONE thing works reliable - repeat.
The sad thing is: only the REAL professionals write code this way.

fedeville:
I´m using Esp32

If your using an actual ESP32 then in deep sleep it will consume around 8uA.

Your probably using an (unamed) module that has an ESP32 on it and a pile of other components such as usd to serial adapters etc which dont go into a deep sleep or low current mode.

Thanks for the answers. I will continue testing and measuring consumption.
The board i´m using is Esp32 D1 mini
(https://www.amazon.com/-/es/Wemos-Bluetooth-Esp8266-ESP-32-Módulo/dp/B07Q2CX7TR)

Then I connect a soil moisture sensor to it, that i'm powering with an output of the esp32.

The board wake for 2 seconds to measure, then sleep for 2 hours...
But even so with that configuration the batteries last 2 days only :frowning:

You need to put the radio to sleep or turn it off.

I was able to reduce consumption with the following, in case it works for someone:

WiFi.disconnect(true);
WiFi.mode(WIFI_OFF);
btStop();
adc_power_off();
esp_wifi_stop();
esp_bt_controller_disable();

esp_sleep_enable_timer_wakeup(xxx);
esp_deep_sleep_start();

now it's consuming 1.5mA

Thank You!