Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

User avatar
pcbreflux
Posts: 28
Joined: Sat Feb 11, 2017 1:00 am
Location: germany
Contact:

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby pcbreflux » Sun Feb 12, 2017 10:24 pm

I am looking at the 9mA mesurement but don't see the connected ESP32? only some kind of resistor? Missing some thing? What voltage are the (same?) batteries?

User avatar
pcbreflux
Posts: 28
Joined: Sat Feb 11, 2017 1:00 am
Location: germany
Contact:

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby pcbreflux » Mon Feb 13, 2017 2:43 pm

Similar setup with different multimeter:
Source https://github.com/pcbreflux/espressif/ ... leep_timer

LiFePo4 3.4V
Attachments
tmp_10507-20170213_150849176190867.jpg
Wakeup 55mA
tmp_10507-20170213_150849176190867.jpg (3.48 MiB) Viewed 21839 times
tmp_10507-20170213_150918-1779826605.jpg
Deep sleep 20uA
tmp_10507-20170213_150918-1779826605.jpg (4.25 MiB) Viewed 21839 times
Last edited by pcbreflux on Mon Feb 13, 2017 9:11 pm, edited 1 time in total.

andrew_p
Posts: 30
Joined: Sun Jan 01, 2017 5:37 pm

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby andrew_p » Mon Feb 13, 2017 7:45 pm

Blue NOA board is disconnected on the picture with 9uA measurement. ESP32 is just not fully visible on the photo, because it's a side view - ESP32 mounted on a small PCB with battery handlers and powered by 3.2v LiFePO4.

Image

User avatar
pcbreflux
Posts: 28
Joined: Sat Feb 11, 2017 1:00 am
Location: germany
Contact:

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby pcbreflux » Mon Feb 13, 2017 11:50 pm

Some additions to the mesurements with the Fluke 17B+:
losses: Long leads, battery holder leads,
crocodile clips, breadbord + wires + pcb adapter
dmm accuracy at mA 1.5% +-3 Digit
uA Range ESP32 dont start
burden Voltage?
shunt ?
Attachments
tmp_6366-20170213_150336-1172464652.jpg
Start with WiFi (MQTT Example)
tmp_6366-20170213_150336-1172464652.jpg (3.46 MiB) Viewed 21830 times

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby ESP_igrr » Fri Feb 17, 2017 3:54 am

I can confirm the 35uA current consumption in deep sleep mode in the latest ESP-IDF (that's the ESP32, flash chip, and pullup resistors current combined). This may be caused by a regression in RTC clock setup code, we're investigating.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby WiFive » Fri Feb 17, 2017 4:11 am

ESP_igrr wrote:I can confirm the 35uA current consumption in deep sleep mode in the latest ESP-IDF (that's the ESP32, flash chip, and pullup resistors current combined). This may be caused by a regression in RTC clock setup code, we're investigating.
When librtc going to be open sourced?

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby ESP_igrr » Tue Feb 21, 2017 3:48 am

Turned out to be unrelated to RTC clocks.

You can add these two lines at the end of bootloader_random_disable function in components/bootloader_support/src/bootloader_random.c:

Code: Select all

    /* Disable pull supply voltage to SAR ADC */
    CLEAR_PERI_REG_MASK(RTC_CNTL_TEST_MUX_REG, RTC_CNTL_ENT_RTC);
    SET_PERI_REG_BITS(RTC_CNTL_TEST_MUX_REG, RTC_CNTL_DTEST_RTC, 0, RTC_CNTL_DTEST_RTC_S);
We'll have this change in master soon.

With this change, supply current is back to 5.5 uA in my test.

Edit: here's some more detailed info:

Code: Select all

  RTC_PERIPH    RTC_SLOW_MEM    RTC_FAST_MEM     Current, uA
      On              On              On              6.3
      Off             On              On              5.3
      Off             Off             On              4.9
      Off             Off             Off             4.5
 
Current value is the total of all supply rails. Flash is powered from internal regulator.

User avatar
pcbreflux
Posts: 28
Joined: Sat Feb 11, 2017 1:00 am
Location: germany
Contact:

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby pcbreflux » Tue Feb 28, 2017 9:53 am

New Setup with new esp-idf: looks fine

commit 13dfb5568dcc30aa43363c49f7a4505d04036424
Date: Fri Feb 24 22:23:06 2017 +0800

Module: ESP-WROOM-32
Adapter: only Reset with 10k Pullup and GPIO 0 Button, no other components assembled
LiFePo4: Soshine 18650 3.2V 1800mA

Teststeps:

Step1: Flash deep sleep Test firmware: (https://github.com/pcbreflux/espressif/ ... leep_timer), GPIO_DEEP_SLEEP_DURATION=1000
Step 2: USB to UART converter removed
Step 3: to start Fluke 15B+ is bridged/shorted (assumption: DMM shunt/voltage drop in uA range to high, Volt on Fluke 17B+ ~1.8V)
Step 4: when ESP32 enter deep sleep bridge is removed
Attachments
DSC01033.JPG
DSC01033.JPG (4.42 MiB) Viewed 21656 times

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby WiFive » Tue Feb 28, 2017 1:53 pm

pcbreflux wrote:New Setup with new esp-idf: looks fine
Hey, better than before, right? 9.46uA -> 5.1uA? Nice.

Maddesh
Posts: 2
Joined: Tue Feb 12, 2019 10:05 am

Re: Deep sleep power consumption - has something been changed in the latest ESP_IDF release?

Postby Maddesh » Tue Feb 12, 2019 10:07 am

I got the same problem with the current consumption in deep sleep. Can you make the Firmware available again (Link is not working)? Or should it work with the current status of firmware?

Best regards,
Matthias

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 102 guests