ESP32 #23: Current Consumption

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • #ESP32 - Suggestion for measure the Current Consumption.
    Write comments with your results.
    DMMs
    Fluke 17B+
    Fluke 15B+
    Uni-T UT81B
    esp-idf used:
    commit c62ae777c262aca1ad7b70c953e4c9ddde5df764
    Merge: 3b8c9a4 abdd8fe
    Date: Thu Mar 2 19:46:29 2017 +0800
    Firmware
    github.com/pcbreflux/espressi...
    github.com/pcbreflux/espressi...
    github.com/pcbreflux/espressi...
    ESP32 Adapter (send the gerber-files to your boardhouse)
    github.com/pcbreflux/espressi...
    github.com/pcbreflux/espressi...
    Result summary:
    Start up no WiFi 40-45mA
    Flash Mode 20-25mA
    WiFi Example 120-125mA (300mA -400mA spikes)
    Deep Sleep Timer 5.xµA
    Deep Sleep GPIO 6.xµA
    Bluetooth low Energy [not tested yet]
    BLE+WiFi [not tested yet]
  • НаукаНаука

Комментарии • 41

  • @aspuzling
    @aspuzling 7 лет назад +3

    Thanks so much for this. I was very confused how people were measuring the power consumption of their devices and this is the perfect explanation. Thanks also for giving the results of current consumption of the various ESP32 modes.

  • @deangreenhough3479
    @deangreenhough3479 6 лет назад +1

    Really good video, well explained..Thank you I did indeed learn something

    • @pcbreflux
      @pcbreflux  6 лет назад

      Dean Greenhough Thank you very much for your comment. It's a decoration if the work helps you.

  • @veisystems267
    @veisystems267 4 года назад

    Excellent! Thank you

  • @Corgitronics
    @Corgitronics 7 лет назад

    Thanks for the measurements! I'll try to run some similar tests and share the results... not sure when I will be able to get to that.

    • @pcbreflux
      @pcbreflux  7 лет назад

      Corgitronics Even with a uCurrent Gold the range btw. 5uA and ~400mA is a challenge. See ruclips.net/video/p5jpxZbGp0Y/видео.html&spfreload=10 for some long waffle. Thanks for share your measurements.

  • @kolban1
    @kolban1 7 лет назад +1

    Excellent video. Thank you for this. Very informative.

    • @pcbreflux
      @pcbreflux  7 лет назад

      Neil Kolban Thank you Neil. And have a nice day.

  • @buzzbuzz7031
    @buzzbuzz7031 6 лет назад

    very Good video! helped me choose the battery and regulators for my project. thanks a lot!

    • @pcbreflux
      @pcbreflux  6 лет назад

      Thanks, maybe you can share the regulator you use?
      Like HT73XX, AP211x or AP721x ?

    • @buzzbuzz7031
      @buzzbuzz7031 6 лет назад

      Yeah, since using BLE causes those spikes I found tried to use BA033CC0T regulator that can output up to 1A (more than enough) to step down voltage coming out of a bench PSU. However, it's still not able to power the esp32 (with BLE). Across all the methods I tried to power the esp32, mysteriously only one methods succeeded, that is using the Vdd(3.3v) of another mbed board (k64f). I've run out of ideas!

    • @pcbreflux
      @pcbreflux  6 лет назад

      Buzz Buzz What board are you using? in my experiments I use the bare esp32 with a LiFePo4 battery and no regular or the ams1117 with a 5V supply. can you watch the serial output? on what stage your module crash?

    • @buzzbuzz7031
      @buzzbuzz7031 6 лет назад

      I'm using the bare one as well from coolcomponents and soldered it on a breakout board
      coolcomponents.co.uk/products/esp32-wifi-bt-ble-mcu-module-esp-wroom-32?variant=45223023630&gclid=EAIaIQobChMIraLFvbu81wIVKBbTCh30VA-dEAQYASABEgJhz_D_BwE
      When powering it using the ftdi programmer, the serial board shows the same messages when running a code, over and over again in addition to the brownout mssg:
      entry 0x40078ad0
      Brownout detector was triggered
      ets Jun 8 2016 00:22:57
      rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
      configsip: 0, SPIWP:0xee
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
      mode:DIO, clock div:1
      load:0x3fff0018,len:4
      load:0x3fff001c,len:956
      load:0x40078000,len:0
      load:0x40078000,len:13076
      entry 0x40078ad0
      When using the Vs from the other boards, it sometimes does the same but playing around with wires sometimes solves it.
      I even tried using the PSU in the lab it showed me the normal message (without the brownout) only once, but it then starts sending random letters to the serial.

  • @michaeldeloso9042
    @michaeldeloso9042 2 года назад

    Good day Sir 👋
    I would like to ask if the esp 32 30pin will work and compatible with 5volts 30amperes power supply to run the 9meters ws2812b led strip lights 60/meter single straight line connection.

  • @cad3175
    @cad3175 7 лет назад

    Thanks

  • @user-bu5pb4bb5p
    @user-bu5pb4bb5p 2 месяца назад

    Why does the current consumption in deep sleep mode for esp32 module that is esp wroom 32e is having 1.6mA current .

  • @bid0u12345
    @bid0u12345 7 месяцев назад

    Very interesting but I think I'm even more lost now than before I looked up how to do measurements... 😅

  • @alenninan5524
    @alenninan5524 3 месяца назад

    Hi how much is the Bluetooth Low Energy consumption for esp32 ?

  • @analyticalsolution
    @analyticalsolution 3 года назад

    Most of the ESP32, especially DevKit V1 consumes a minimum of 10uA even in sleep mode. How did you achieve such an astonishing result with the ESP32? Is it possible to fix the flaw with the DevKit1? Thank you in advance!

  • @norxee
    @norxee 3 года назад

    May I please see the code of this

  • @NoMoreBsPlease
    @NoMoreBsPlease 6 лет назад +12

    Is this a joke? "I don't have good equipment", he says... right before pulling out *TWO FLUKES!?!?!* Flukes are inaccurate junk now? Feel free to send them to someone that can't afford them (like me).

    • @pcbreflux
      @pcbreflux  6 лет назад +1

      Hi, this are sub $99 Fluke for the asian market and ~$50 uni-t meter all from aliexpress.

    • @PropaneTreeFiddy
      @PropaneTreeFiddy 6 лет назад

      pcbreflux $50 for UT81B??? I can't find one for under $150! Is the listing still up?

    • @pcbreflux
      @pcbreflux  6 лет назад

      You are right, don't pay $50 it's about $150.

  • @kevinmclane1201
    @kevinmclane1201 7 лет назад

    Great video, I am very interested in the BLE power measurements and BLE+WiFi power consumption. I see that there are some inventive ways to power down the ESP32, but no real world measurements that I can find?

    • @pcbreflux
      @pcbreflux  7 лет назад +1

      Hi, in the real world the consumption depending total on your use case.
      If you are using the ESP32 as a BLE+WIFI Gateway that should listen and run 24h/7 the power consumption should no matter, as long it's below 120-400mA.
      And if your are using it as a BLE beacon with a coin cell and an advertising burst of 200mA for 20ms-50ms and deep sleep 2s with 5µA should give you a descend battery lifetime. Everything else is in between 5µA and 400mA. And this is without any other components attached (LEDs, OLED, sensors, ...).

    • @kevinmclane1201
      @kevinmclane1201 6 лет назад +1

      I forgot to say Thank you, Thank You :-)

  • @SheltonDCruz
    @SheltonDCruz 4 года назад

    Hi - when you say WiFi is disabled - do you also mean that Bluetooth is disabled or are they two different modules?

  • @Olfox2
    @Olfox2 6 лет назад

    Nice video ! I was realy curious to see the results in BLE mode . It seems also possible to reduce consumption by lowering cpu speed.

    • @hapskie
      @hapskie 5 лет назад

      Me too. Also very curious what the difference in consumption is between active and passive BLE scanning and disabling WiFi sleep mode like esp_wifi_set_ps(WIFI_PS_NONE)

    • @AnthonyBrinkhuis
      @AnthonyBrinkhuis 2 года назад +1

      Disabling one of the 2 cores would probably help. I'm curious what the current usage would be with a large program too.

  • @wimverlinden4577
    @wimverlinden4577 4 года назад

    Is there a solution to run the ESP32 continiously ( no sleep mode) without WiFi and BLE but with a much lower current than 40mA? Thx.

    • @knolllabs8033
      @knolllabs8033 4 года назад

      You can lower the clock speed, but that may only get you as low as 20-25 mA. The only optimizations available past that are from turning on some level of sleep mode.
      Hibernation mode at 5ua is interesting because the RTC clock stays on, meaning you can wake up periodically and then go back into hibernation, but I personally have no experience with this and time intervals that make this effective. Does waking up an ESP32 in hibernation mode drain a lot of power? Not sure.

    • @wimverlinden4577
      @wimverlinden4577 4 года назад

      @@knolllabs8033 Thx, I would like to find more info and examples how to run an ESP32 at 5-10 uA, many people mention it, but I never see someone actually do it and prove it is possible.

    • @knolllabs8033
      @knolllabs8033 4 года назад

      @@wimverlinden4577 I am working on a project that uses external wake up using RTC GPIOs which the datasheet says is possible with 5uA consumption (Hibernation mode). I will try to make a video showing this if I am successful.

    • @wimverlinden4577
      @wimverlinden4577 4 года назад

      @@knolllabs8033 Oh that would be great, thanks in advance. Even if you not reach 5uA it might be interesting. I would like to use ESP32 in a panic button with external wakeup.

  • @sviesis
    @sviesis 7 лет назад +1

    blog.squix.org/2017/02/interview-with-espressifs-ivan-grokhotkov.html
    In the first silicon revision of the ESP32, most applications will see
    ~5uA supply current in deep sleep mode, due to RTC fast memory being
    powered on by default. New silicon revision which is coming in February
    will not need RTC fast memory to be powered on, so power consumption in
    timer wakeup mode can be 1-2uA lower. That being said, for many
    applications it is the current consumed during periods of activity that
    makes most of the difference. ULP coprocessor and the ability to run
    code from RTC memory immediately after wakeup will offer some help here.

    • @pcbreflux
      @pcbreflux  7 лет назад

      sviesis sounds promising.

  • @srachelly8200
    @srachelly8200 3 года назад

    I think you are wrong, in order to test esp32, you have to have a oscilloscope, because in the esp8266 was a pike current at the beginning about 0.5A.

  • @Jones12ax7
    @Jones12ax7 7 лет назад

    I wish light sleep mode is available soon. I use a GPS module over serial and keep esp32 active is not a good idea. In deepsleep, keep reseting it is not good either. I just needed to suspend the CPU and wake it up when serial data comes in

  • @amirhosseinakbari4180
    @amirhosseinakbari4180 Год назад

    Thanks a lot but ریدم تو لحجه ت