#179

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2018
  • Is ESP32 BLE really power efficient? How does it compare with Wi-Fi? And with a dedicated BLE beacon?
    Power is a precious good in battery powered devices. Today we will investigate how much power a ESP32 burns in normal mode, using Wi-Fi or Bluetooth, in deep-sleep, and in mixed scenarios where it sleeps and sends data every few seconds.
    The beacon I used contains an N51822 chip
    Links:
    BLE Beacon Sketch: github.com/ibm-watson-iot/dev...
    Breakout board: s.click.aliexpress.com/e/HzjfuBq
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    My Patreon Page: / andreasspiess
    If you want to support the channel, please use the affiliate links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
    For Banggood bit.ly/2jAQEf4
    For AliExpress: bit.ly/2B0yTLL
    For ebay.com: ebay.to/2DuYXBp
    profile.php?...
    / spiessa
    www.instructables.com/member/...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
    Equipment in my lab: www.sensorsiot.org/my-lab/
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 244

  • @maicod
    @maicod 6 ปีที่แล้ว +13

    I've never seen someone explain things so clearly. You even summarize it all !

  • @arcadeuk
    @arcadeuk 6 ปีที่แล้ว +10

    Andreas, as always, keep up the great work! I always find something interesting in your videos, and they are always well thought out and well presented.
    Thankyou

  • @LarryKapp1
    @LarryKapp1 6 ปีที่แล้ว +1

    Another great tutorial - you are so good at explaining things in an easy to understand way with good visual examples. It inspired me to patreon support you - first time I have done that. Your videos are well worth a buck !

  • @smoke.007
    @smoke.007 6 ปีที่แล้ว

    Love the graphics you use from your oscilloscope to explain what's going on with the voltage. Having never used an oscilloscope, I find this very interesting and fun to try and follow along. Thanks for the great videos!

  • @bernard2735
    @bernard2735 6 ปีที่แล้ว

    Thanks Andreas. Another great video - extremely well researched, conducted and explained. It’s great to see you working to get the most outcome from the least technology. Greetings from Australia.

  • @michaelpadovani9566
    @michaelpadovani9566 6 ปีที่แล้ว

    I love current consumption videos paired with esp32. Also liked how u calculated battery capacity as a result of your measurements. Many applications for remote projects! Thanks!

  • @justdoingodswork
    @justdoingodswork ปีที่แล้ว

    Thank you it helped alot in understanding the current consumption of esp32.

  • @colinpamplin9976
    @colinpamplin9976 6 ปีที่แล้ว

    Thanks Andreas, another very informative and well presented video.

  • @NorbertHarrer
    @NorbertHarrer 6 ปีที่แล้ว

    Tons of useful information. Great job!!!

  • @viniciusnoyoutube
    @viniciusnoyoutube 6 ปีที่แล้ว

    Very good video!
    Nice work as always.

  • @joaofgf
    @joaofgf 6 ปีที่แล้ว

    once again, great video! thank you Andreas ;)

  • @distancelab2010
    @distancelab2010 6 ปีที่แล้ว

    Thank you so much Andreas. Very interesting ..

  • @venkir1408
    @venkir1408 4 ปีที่แล้ว

    great work and very much in detailed with statistics :-)

  • @KarmaDonyo
    @KarmaDonyo 3 ปีที่แล้ว

    another excellent video....thank you

  • @vizmohanan
    @vizmohanan 6 ปีที่แล้ว

    Detailed and useful video. Thanks :)

  • @nicudica4678
    @nicudica4678 6 ปีที่แล้ว

    Great work!!! Keep it on! Regards!

  • @XTronical
    @XTronical 6 ปีที่แล้ว

    Fantastic video, great stuff.

  • @deangreenhough3479
    @deangreenhough3479 6 ปีที่แล้ว

    Another excellent tutorial 😀

  • @faidularcs
    @faidularcs 5 ปีที่แล้ว

    Awesome explaining 💝👏👏👏👏

  • @Regimantas_Baublys
    @Regimantas_Baublys 3 ปีที่แล้ว

    Thanks :) very informative video :)

  • @Jones12ax7
    @Jones12ax7 6 ปีที่แล้ว

    Very nice! I'm converting my smartwatch project from Atmega1284 to ESP32. I'm struggling with waking up from deep-sleep after a button press. It seems unstable. This considerations about power consumption was very good for me! Thanks!

  • @HelmutTschemernjak
    @HelmutTschemernjak 6 ปีที่แล้ว +6

    Hallo Andreas Spiess, great video. Just note that the ESP32 deepsleep allows to specify a wakeup hook function (in RTC memory) which means the ESP32 deepsleep wakeup will not boot instead the preserved RTC men hook function will be called and you can decide to deepsleep again or to boot. This allows to check some GPIO or other simple stuff. This way the wakeup IO checking and deepsleep again can be as low as 1 ms.
    Regards from Hannover.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      Thanks for this info. Is it usable in the Arduino IDE?

    • @HelmutTschemernjak
      @HelmutTschemernjak 6 ปีที่แล้ว

      Yes it can be done in the Arduino IDE, I use the ESP32 only with Arduino. However in general (not only ESP32, also SAMD D21, etc.) my opinion is that Arduino is not a good development environment, poor IDE features, bad support, no fixes, weak library implementations, a lot of missing API ’s. I use mbed.org which is much more powerful for ARM MCUs, it is 20x better supported and easier to use, and more professional.
      Anyways for the ESP32, Espressif delivers their SDK which includes all ESP32 APIs and Arduino comes on top for this. For the ESP32 Arduino is the best OS/SDK environment you can get for the ESP32. The Espressif Arduino support team works instantly on bugs/enhancements (see github). For this reason I work with the ESP32 using Arduino. The Espressif “ESP32 Technical Reference Manual” is no a good manual to dive into the hardware features of the ESP32, it describes all details, even the one which are not available in the SDK or Arduino. Regards from the Arduino Hannover LoRa team.

    • @joban123psn
      @joban123psn 5 ปีที่แล้ว +1

      Ok, this comment is quite old, but since I currently work on this: you can use gpio and other things in the ULP (ultra low power) "sub-processor". No need to wake up the main cores (and use these hooks) at all. See github.com/joba-1/Blink-ULP-Sleep (main cores always sleeps, ULP just wakes up to toggle led state) or github.com/joba-1/Temp-ULP (ULP wakes up in intervals to collect temperature data and wakes up main cores to send the data over wifi once the buffer is full). Btw: I need tips for low power esp32 boards (usb serial not a requirement) to make full use out of this :)

  • @dano4700
    @dano4700 6 ปีที่แล้ว

    It's lucky that electrons drive on the same side of the road, even down under. Great video as always. Cheers mate!

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      You are right. And we all speak (somehow) the same language. Otherwise, this channel would not be possible.

  • @brycedavey1252
    @brycedavey1252 6 ปีที่แล้ว

    Good to know, nice work

  • @HansVledder
    @HansVledder 6 ปีที่แล้ว

    Thumbs up, Andreas!

  • @avejst
    @avejst 6 ปีที่แล้ว

    Thanks for sharing 😀👍

  • @supers7100
    @supers7100 6 ปีที่แล้ว +19

    It was a big surprise for me when I found out that current consumption in BLE mod the same as in BT classic mode. After a night of googling I have found a topic at the official forum where one guy from Espressif said that "modem sleep mod (==BLE) is NOT IMPLEMENTED IN SDK yet, and it will be released in SDK v3.1 (current stable version is 2.1.1). I think it's a shame! They are selling chips without one of the key feature in SDK.

    • @supers7100
      @supers7100 6 ปีที่แล้ว +5

      Upd. That topic was on github esp-idf repository github.com/espressif/esp-idf/issues/947#issuecomment-359211747

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +6

      Often in Chinese products, the software and the manuals are the weak point.

    • @c2h7
      @c2h7 5 ปีที่แล้ว +5

      Apparently the SDK supporting BLE was released in May 2018, has anybody tried it since? I'm interested in long-term logging BLE beacon presence (like one scan per minute), and uploading the data by wifi once in a while (maybe once an hour): do all BLE beacons just send once per second? That would mean a BLE scan needs to run at least a second or it wont reliably detect the beacons nearby?

  • @sumaxeme
    @sumaxeme 6 ปีที่แล้ว

    Great Video!

  • @pa3deeghztv302
    @pa3deeghztv302 6 ปีที่แล้ว

    Nice video andreas

  • @maurilatvala478
    @maurilatvala478 6 ปีที่แล้ว

    This chanel is gold. I speak finnish, so I am big fan of the accent :P "Race was bad, but car was good": Tommi Mäkinen

  • @ufohunter3688
    @ufohunter3688 6 ปีที่แล้ว

    Tony Elder is one smart dude. I love what he's done with the ESP32 on github.

  • @simonmay9039
    @simonmay9039 6 ปีที่แล้ว

    Very interesting, particularly the power comparison with a dedicated beacon. If you use a large bypass capacitor be careful not to ignore it's leakage current, which can easily be of the same magnitude as the EPS32's deep sleep current.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      I know this from my ESP8266 experiments. There I used Tantalum SMD capacitors which were quite bad...

  • @justinmiller4406
    @justinmiller4406 6 ปีที่แล้ว

    I really appreciate all of your videos Andreas. Do you know what types of chips / technology your beacon uses?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      Usually Nordic NRF Type chips.

  • @passaw7
    @passaw7 2 ปีที่แล้ว

    I recorded a similar consumption diagram in the 80ma range for broadcasting the BLE signal.
    The duration from the moment of waking up, broadcasting the BLE package and going to sleep takes almost one second (92% of the second). Peak consumption values reach up to 140mA, but on average 80-86 mA as you have in the video.
    As a result. Two AAA batteries(3 v, 1000mAh) are enough for one day with an interval between awakenings of 1 second. CR2450 batteries do not start, because the peak current is not designed for the use of such types of batteries or a very high-quality battery manufacturer is needed.

    • @AndreasSpiess
      @AndreasSpiess  2 ปีที่แล้ว

      Thank you for sharing your experience!

  • @deangreenhough3479
    @deangreenhough3479 6 ปีที่แล้ว +3

    Happy Sunday Morning....Hallelujah 😀
    Great explanation of the uCurrent Gold, it’s use and how we apply it to measurements.
    As always, great work by a master.
    Happy to support you in whatever way I can.
    Thank you Andreas for continuing to support us too.
    I hope you extra 2 hours in bed was at least useful or interesting to you 👀

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      Actuall, the video was finishes at 2am. So I was graceful about the two extra hours...

  • @tasa4904
    @tasa4904 6 ปีที่แล้ว +2

    3 days ago, they committed changes to the esp-idf codebase enabling bluetooth modem sleep mode. You might be able to revisit this topic to see if the power measurements have improved.

  • @TaaviJuursalu
    @TaaviJuursalu 6 ปีที่แล้ว

    Nice to know the difference.

  • @varunhome2
    @varunhome2 6 ปีที่แล้ว

    Nice one

  • @cfeigel
    @cfeigel 6 ปีที่แล้ว

    Nice work! Andreas, I wonder how much current is lost due to leakage in the large 1000uF capacitor?
    I ran into this problem on a device design a few years ago. I was able to source some "Low DCL" (low DC leakage) caps used in implantable medical devices. The leakage specification for a standard electrolytic is typically something on the order of 0.05CV (that is: capacitance x voltage x 0.05). The spec on the medical caps was 0.0025CV .
    It's fascinating to watch multiple people build on each other's ideas to crack a problem like this! Keep going!
    --- Also: drive down the middle, like I do. It's the only way to be safe!

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I had this problem with my ESP8266 boards when I used SMD tantalum caps. This is why I use now normal ones if I have no space constraints. They seem to be better.

  • @theunderdog2205
    @theunderdog2205 6 ปีที่แล้ว

    ✌ good information

  • @Rothammel1
    @Rothammel1 6 ปีที่แล้ว

    Danke dir

  • @paulwdonahue
    @paulwdonahue 4 ปีที่แล้ว

    Excellent Power management Report. A question. Would you recommend using a BLE beacon for BLE communication rather than the ESP32? Also, do you have opinions about using nRF 52840 or their new nRF9340 for processing plus BLE communication in a power limited situation? Thanks for your excellent work!

    • @AndreasSpiess
      @AndreasSpiess  4 ปีที่แล้ว

      I am no BLE specialist. AFAIK the beacons are single purpose and the ESP32 can be programmed for various purposes. The nRF chips seem to be very good. But I never tried them

  • @manickn6819
    @manickn6819 6 ปีที่แล้ว

    Very interesting. I did three videos on a hobby solar system and I spent the time to analyse the results and relate it to theory. Some time was spent on efficiency. I think in engineering its important. The analysis you did here benefits others who do not have Dave's meter. On another note I recall that video where he went into the details of how he designed it.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I think, I saw this video, too.

    • @manickn6819
      @manickn6819 6 ปีที่แล้ว

      It was a good one. Introduced me to some concepts I never thought about.

  • @northshorepx
    @northshorepx 6 ปีที่แล้ว +5

    @andreas Another excellent video. Thank you for the that insight about how using the es32 is much more current heavy. Would this mean that the dedicated beacons are built without a microcontroller and just a bluetooth chip with dedicated electronics? Or would this just be a specialised microcontroller with very limited code?
    PS we drive on the right side of the road - the left side! :-D

    • @einars899
      @einars899 6 ปีที่แล้ว

      Probably a microcontroller with just enough processing power to keep up with the requirements of sending the beacon. So running a low clock rate and probably 8 bit or less processor.
      If your application calls for some heavy data processing with no waiting for peripherals the ESP32 could be the right choice because it can do that quickly, then go back to sleep.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +4

      It is an NRF81522 chip.

  • @bardenegri21
    @bardenegri21 6 ปีที่แล้ว +1

    Great video! I'm curious what chip the beacon you tested has. Was it a nrf51822 or one of the Ti ones?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +3

      Nrf81522

    • @bardenegri21
      @bardenegri21 6 ปีที่แล้ว +1

      Andreas Spiess that can also be programmed with the Arduino IDE, there are several different cores for it and I think adafruit is working on stuff for it now.

  • @tremartian3803
    @tremartian3803 4 ปีที่แล้ว

    Andreas, great video.. Could you explain the difference between Hibernation and Deep-sleep modes? In your video you are talking about Deep-sleep, but on the data sheet you are referring to the power consumption in Hibernation mode. This happens at 11:59 on the video.

    • @AndreasSpiess
      @AndreasSpiess  4 ปีที่แล้ว

      I do not know of a hibernation mode of the ESP8266

  • @isoguy.
    @isoguy. 6 ปีที่แล้ว

    Thankyou

  • @emanuel-emericandrasi7656
    @emanuel-emericandrasi7656 5 ปีที่แล้ว

    Thank you Andreas for your detailed investigation! I am evaluating the ESP32 for a home automation project where I would need it to get temperature data once/hour over BLE. What I couldn't find yet is some tests for the BLE range. Do you or anybody had some experience with that and can provide me with some numbers (meters)?
    What I need is to have a SoC which is able to run on a CR2032/LiPo3300mAh for 1+ years and send temperature information each hour through 2 walls of reinforced concrete at ~10m distance from a RPi3 gateway.
    Also, I'm wondering which would be the current consumption if using the ULP. I guess in this video that feature was not used/considered.
    Thank you again!

    • @AndreasSpiess
      @AndreasSpiess  5 ปีที่แล้ว

      There are a few things to consider: How to save energy in general. There the ULP could help if you need a special trigger. If you only want to trigger once in a while, it is not needed. The second thing is the communication. Range always have to be tested. But this can be done with a simple sketch.

  • @bar10dr
    @bar10dr 5 ปีที่แล้ว +1

    I hear the guy with a Swiss accent on youtube, I upvote.

  • @errrick
    @errrick 6 ปีที่แล้ว

    Your video sheds a lot of light already so thank you for it! I have a flat 350 mah lipo battery connected to a 3.3c step up/step down regulator and charger module, which powers a bare ESP32 chip connected to a micro buzzer. I'm building a 3d printed credit card size wallet finder, and I want to be able to use a BLE message from my phone to make the buzzer sound when received. What would you recommend as deep sleep settings ? I don't want to charge the battery every day, so having this run at least for 2 or 3 months would be convenient.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      You cannot use deep sleep (or only a very short one) in such a scenario because you do not know when the message will arrive. During deep sleep you have no reception.

    • @errrick
      @errrick 6 ปีที่แล้ว

      Andreas Spiess what if instead, let’s say my phone spams the area with the same BLE message until it gets a response from the device as it wakes up? Also, is actually waking up and turning on BLE on the esp32 more power efficient than just leaving it in low power mode without ever turning BLE off? Let’s say with a 10 second interval between deep sleep cycles

  • @Giblet535
    @Giblet535 6 ปีที่แล้ว

    Excellent video, Andreas. I'll have to build a MicroAmp 10 or 12 projects from now.
    When I want more battery life in a MCU project, I try to drop the clock frequency. It might help to try *rtc_clk_cpu_freq_set(RTC_CPU_FREQ_2M);* although you won't be able to debug it as (I suspect that) the current UART code assumes 80MHz. Lowering the clock is an interesting experiment, even if it doesn't work with the current core because eventually, Espressif will make that work.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I tried it and unfortunately the on time was longer and in the end it used more power :-(

    • @c2h7
      @c2h7 5 ปีที่แล้ว

      What about shutting down one of the 2 cores? Is that possible?

  • @freelancer917
    @freelancer917 6 ปีที่แล้ว

    Hoi Andreas
    Thank you for the video. Did you try to decrease the Wifi ouput power to 0dBm like the BLE? Maybe that would be fair when you compare the current / power consumption.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +3

      Actually, I did not want to be fair ;-) I wanted to compare different technologies with their advantages and disadvantages. But it is a good idea for the range test. Thanks!

  • @Mr-Widget
    @Mr-Widget 5 ปีที่แล้ว

    Can you provide a link to the plain ESP32 breakout board (not dev board) you used? Also, if you could describe the circuit you use to program it, that would be very useful.

  • @mikeattree2202
    @mikeattree2202 6 ปีที่แล้ว

    Excellent video - as always. What barebones ESP32 board are you using? (Mine have 2 resistors, whereas yours appears to have 5...)
    Also, do you know of a barebones ESP32 board with a beefy capacitor - e.g. 220uF?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      Thanks. I have two versions and they appeared in one of my mailbags. I had to add the capacitor. In my case, 220 uF was not enough.

    • @mikeattree2202
      @mikeattree2202 6 ปีที่แล้ว

      I wonder if you though I was asking about the ESP32-WROOM-32 modules? My question was actually about the 'base' or adapter board. I have this type: bit.ly/2gLfAOS, but the ones in your video look different (black, more resistors etc.). I've trawled through your mailbags (and forgive me if I missed them) but I can't see the black version...

  • @MFBcode
    @MFBcode 6 ปีที่แล้ว +1

    Great video!
    I'm a little disappointed with ESP32 BLE power usage. IMHO it was advertised as low power so I expected something which it's more comparable to beacon than wifi.
    Could you repeat this test after some time? For example after 6-12months? Maybe libraries will have some better optimisations or there will be a possibility to program ULP+Bluetooth with arduino?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      Similar feeling here. But I am pretty sure we did not see the end of the story. The BLE in Arduino is very new and I do not have lots of knowledge.

  • @leonvilfand2192
    @leonvilfand2192 2 ปีที่แล้ว

    Thanks Andreas, excellent video. The new ESP32 SoC run BLE 5.0, which means that in theory, these models should have BLE range 4 times larger than the earlier ESP32 SoCs with BLE4.2 (which should only be 10m or so). But what is it in reality? Is there a real difference in BLE range between ESP32 SoC running BLE4.2 vs the newer ESP32 SoC running BLE5.0. ?

    • @AndreasSpiess
      @AndreasSpiess  2 ปีที่แล้ว +1

      Maybe I will have a look at BEL when I get one of those chips. To reach long range the transmitters have to be more powerful and I am not sure if this is the case here.

  • @xmine08
    @xmine08 2 ปีที่แล้ว

    Could you consider doing a Beginners Guide to electric components? That would be grand! Cheers to Switzerland!

    • @AndreasSpiess
      @AndreasSpiess  2 ปีที่แล้ว

      This channel is for advanced Makers or Makers with ambitions. There are other channels with such content. I am sure you find videos with that sort of content.

  • @guilhembonnefille718
    @guilhembonnefille718 3 ปีที่แล้ว

    Thanks for such videao.
    Did ou evaluated the way to use ESP32 as a BLE receiver? Eventually, using ULP coprocessor to await BLE messages?

    • @AndreasSpiess
      @AndreasSpiess  3 ปีที่แล้ว

      I do not think that BLE is on when the main processor is off.

    • @guilhembonnefille718
      @guilhembonnefille718 3 ปีที่แล้ว

      @@AndreasSpiess Thanks for the tip.

  • @santosmedina6641
    @santosmedina6641 6 ปีที่แล้ว +2

    Hallelujah!!

  • @widget623
    @widget623 6 ปีที่แล้ว

    Nice video Andreas - now that SPIFFS is supported under the Arduino IDE for the ESP32 have you considered doing a video on it?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I am not sure. I did not like the spiffs on the ESP8266. Maybe if I have an application

    • @TomaszDurlej
      @TomaszDurlej 6 ปีที่แล้ว

      It's sad, SPIFFS is great for more complicated webpages, with includes one used for wifi configuration.

  • @underwaterjunkie
    @underwaterjunkie 6 ปีที่แล้ว

    Hi Andreas, what were the two BLE beacon products you showed in the video?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      www.aliexpress.com/item/2017-No1-sales-indoor-location-advertisements-broadcaster-CE-and-FCC-certificated-bluetooth-beacon-ble-beacon-NRF51822/32791262582.html

  • @deangreenhough3479
    @deangreenhough3479 6 ปีที่แล้ว

    Andreas. Can you tell me the feature on your oscilloscope @ 8:31 that shows you integrate the yellow curve. Is it a math function? I have a Rigol DS1054Z, so not sure if its a feature on my machine? It looks a wonderful feature, enlightenment would be appreciated. Thank you

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      I think you should find it under “math”. It is there also on my Siglent

  • @DonatoGreco
    @DonatoGreco 5 ปีที่แล้ว

    just to note that @12:28 there is some confusion in the calculation of Battery Capacity & Current consumed.
    mAsec is Battery Capacity consumed, not Current.

    • @AndreasSpiess
      @AndreasSpiess  5 ปีที่แล้ว

      You are right. The word current is wrong.

  • @m3g4byte
    @m3g4byte 4 ปีที่แล้ว +1

    Wonderful video and I learned a lot, but I'll add that I *think* the math was wrong calculating ESP32 battery life at the end of the video. Using the ESP32 as a BLE beacon, we use 84mAs per message. By my math we'd need around 2,000mAh per month if beaconing every 30 seconds. It wouldn't last a whole year off that AAA sized LiFePO4 cell unless it was beaconing VERY infrequently.

    • @AndreasSpiess
      @AndreasSpiess  4 ปีที่แล้ว

      Maybe you are right. I do not remember every detail. I am an old man ;-)

    • @RSP13
      @RSP13 ปีที่แล้ว

      Yup. I got the same result, friend. It was a miscalculation.

  • @peekpt
    @peekpt 6 ปีที่แล้ว

    Nice info, but at first glance I didn't expect the arduino's library will have that kind of performance.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      They still have to go a long way (in BLE)

  • @AbhishekKumar1902
    @AbhishekKumar1902 6 ปีที่แล้ว

    Which is the best separate BLE chip you would recommend for a project which needs BLE only?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I am no BLE specialist. So I do not know

  • @TheBlendax
    @TheBlendax 6 ปีที่แล้ว

    Dear Andreas, do think the ESP32, like you used them as BEACONs, can be used to triangulate positions of other ESP32s ?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I do not know because I am new to BLE

  • @venkatyalamati3285
    @venkatyalamati3285 6 หลายเดือนก่อน

    Thanks for an amazing analysis... kindly post updated link for the code.. given link of github shows like page not found!! (i want the code for disabling wifi and BT in esp32)

    • @AndreasSpiess
      @AndreasSpiess  6 หลายเดือนก่อน

      I left the 3G topic for a few years because these networks do no more work in many countries :-(

  • @ThomasHaberkorn
    @ThomasHaberkorn 6 ปีที่แล้ว

    The BLE beacon sketch is quite interesting. It only contains code in Setup(). The ESP32 reboots after transmit, restarting the process. My question: will variables hold their values? I guess not.. quite a show stopper (unless non volatile memory is used)

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      I just used the sketch without understanding it. The reboot is because of the deep-sleep.

    • @ThomasHaberkorn
      @ThomasHaberkorn 6 ปีที่แล้ว +1

      I just found out: the variable "wakeupCount" is maintained over deep sleeps. It's type is RTC_DATA_ATTR. Very useful! Thanks Andreas for your video, it inspired the idea for a new battery powered project.

  • @ThomasHaberkorn
    @ThomasHaberkorn 6 ปีที่แล้ว

    out of curiosity: using the uCurrent, what current did you measure during ESP32 deep sleep mode? The data sheet claims it only uses 2.5 µA, but is this really the case?
    Thanks for your continous effort!

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      I showed it: 4.2 uA

    • @ThomasHaberkorn
      @ThomasHaberkorn 6 ปีที่แล้ว

      Andreas Spiess sorry, I must've overlooked it. Thanks!

  • @cncdaddio
    @cncdaddio 6 ปีที่แล้ว

    Could you make video about receiving instead of sending? I'm wondering what would be the most power efficiënt way to make a device that springs alive when it receives something.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      Receiving is not very power efficient because the device cannot sleep. You find receivers in my other ESP32 BLE videos

  • @SA-oj3bo
    @SA-oj3bo 5 ปีที่แล้ว

    Hi Andreas. Do you have already an idea about the difference in range between WiFi and BLE? Thx.

    • @AndreasSpiess
      @AndreasSpiess  5 ปีที่แล้ว

      You can try it with your smartphone. BLE usually works only a few meters and not through walls.

  • @ismzaxxon
    @ismzaxxon 2 ปีที่แล้ว

    esp-now ble, esp_now wifi, would be a good up to date test. Also, it seems we can program nrf ble chipsets used in beacons with arduino as of 2021

    • @AndreasSpiess
      @AndreasSpiess  2 ปีที่แล้ว

      The NRF chips are on my list...

    • @ismzaxxon
      @ismzaxxon 2 ปีที่แล้ว

      @@AndreasSpiess The nrf52 is the bluetooth module in airtags and other beacons. I have a photo of an airtag cracked open.

  • @cyo_corner
    @cyo_corner 4 ปีที่แล้ว

    Mr. Andreas do you know what the latency is with BLE and WiFi when communicating between two ESP32?

    • @AndreasSpiess
      @AndreasSpiess  4 ปีที่แล้ว

      Between it is probably the speed of light. Inside I do not know.

  • @tschieftschastis
    @tschieftschastis 6 ปีที่แล้ว

    "and they drive obviously on the wrong side!"... exactly what i thought too! LOL

  • @belenhedderich3330
    @belenhedderich3330 6 ปีที่แล้ว

    Dear Andreas I saw that you published many links. My question is there are anyway that we can support you on ebay or aliexpress buying through somehow your links? Are they only valid for 24 hours? Please let us know
    Thanks

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      This is what I think. But I am no specialist. I know it works with Bangood and with Aliexpress. Amazon and eBay were added on viewers requests. All links should be valid for 24 h after you clicked them. So it would be necessary to start by clicking on one of these links everytime you start your purchase (if you want to support the channel)

  • @electrobob
    @electrobob 6 ปีที่แล้ว

    I always thought that BT seems odd for the ESP32. It makes sense if the ESP is what it was meant to be, a WiFi card. WiFI and BT is better, when the WiFi is the dominant power. But used independently as BT is very very power hungry.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      I still hope, BT will get better on the ESP32

  • @paulopecegueiro1694
    @paulopecegueiro1694 2 ปีที่แล้ว

    Hi Andreas, what about the ESP32S2, ESP32S3 and the ESP32C3?

    • @AndreasSpiess
      @AndreasSpiess  2 ปีที่แล้ว

      I made a video about the C3. Others will follow, I assume…

  • @petrhawliczek3302
    @petrhawliczek3302 6 ปีที่แล้ว

    Hi Andreas, I'd like to ask You to maximum total current of ESP32. I know standard Arduino is 200mA. But I never found ESP32 total current. Thanx, Petr

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      Maybe you consult its datasheet? It is different for different modes.

  • @passaw7
    @passaw7 3 ปีที่แล้ว

    12:06 Cant understand power cons formula. Is it mean 5 microA in deep sleep for one operation(sleep/wakeUp)? Maybe 5microA in 1 hour, and formula 0.005mA×24×365? Nope?
    And what is it mean 8.5mA in ble mode every 10 sec. We are send message every 10 sec and it uncharge battery in 8.5 mA every hour or 24h?
    Do you can explain arduino 168pa(1mhz, 8mhz)+nrf24l01 in ble mode(sketch exists) the same as esp32.

    • @AndreasSpiess
      @AndreasSpiess  3 ปีที่แล้ว +1

      Look at the diagrams before and you will understand. It is the energy used for one wake-up or for transmitting one message.

  • @chiragajmera
    @chiragajmera 4 ปีที่แล้ว

    can you please provide link of beacon used in the video? thank you

    • @AndreasSpiess
      @AndreasSpiess  4 ปีที่แล้ว

      I do no more remember where I bought it :-(

    • @chiragajmera
      @chiragajmera 4 ปีที่แล้ว

      @@AndreasSpiess no problem, keep up the great work!

  • @devrajput2439
    @devrajput2439 3 ปีที่แล้ว

    Can we really make BLE beacon with ESP32 or any other chip which uses very less current (like in microamps) for coin cell operation?

    • @AndreasSpiess
      @AndreasSpiess  3 ปีที่แล้ว

      I do not think so. You have to use another chip.

    • @devrajput2439
      @devrajput2439 3 ปีที่แล้ว

      @@AndreasSpiess please try to make DIY BLE beacon which consume low energy and work long on coin cell.

  • @MisterkeTube
    @MisterkeTube 3 ปีที่แล้ว

    Hi Andreas, thanks for the great videos, but one thing bugs me: "A uses 7000 times less current than B". Then if A would take 1A, B would need 1A - 7000 x 1A = -6999A and we would have the ideal energy source ... Of course everyone understands that you meant that B took 1/7000th of the current of B, but it is this type of incorrect wording that can make rockets explode (see the nice videos from Matt Parker on math mistakes).

  • @Passco666
    @Passco666 4 ปีที่แล้ว

    I was able to make humidity, ligth,temp sensor esp8266 and with 1Amp battery and 5min update, I was able to run max 22days :(

  •  6 ปีที่แล้ว

    The question is, what is the main purpose of integration BLE into ESP32. IMHO, the BLE implementation is not for building standalone BLE tags, but for gateway between BLE and WIFI/RS232/I2C or whatever. For developing BLE devices powered long time from batteries, different chip has to be used. I'm not sure, if ESP32 is primary targeted to standalone BLE devices...

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I agree. But still it should use less power in BLE, I think.

    • @ajaybnl
      @ajaybnl 5 ปีที่แล้ว

      To give ble advantage to arduino users.

  • @ThomasHaberkorn
    @ThomasHaberkorn 6 ปีที่แล้ว +1

    Where to buy the uCurrent?

    • @robatoto
      @robatoto 6 ปีที่แล้ว

      ThomasHaberkorn EEVBlog shop

    • @IncaTrails
      @IncaTrails 6 ปีที่แล้ว

      www.eevblog.com/product/ucurrentgold/

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      Thanks for answering.

    • @ThomasHaberkorn
      @ThomasHaberkorn 6 ปีที่แล้ว

      ->Out of stock! Nevermind, the schematic and Gerber files are available.

  • @davidmcdonald3314
    @davidmcdonald3314 6 ปีที่แล้ว +1

    Ha ha! What's this about us Aussies driving on the wrong side of the road?
    This is an island. We adhere to international navigation rules and pass other vessels on our starboard side! :P

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      :-))

    • @brianhanson9367
      @brianhanson9367 6 ปีที่แล้ว +4

      14. Head-on situations
      When two power-driven vessels are meeting head-on both must alter course to starboard so that they pass on the port side of the other. "Head-on" means seeing the other vessel ahead or nearly ahead so that by night her masthead lights are actually or nearly lined up and/or seeing both her sidelights, or by day seeing a similar aspect of her.[11][page needed] "If you see three lights ahead, starboard wheel and show your red."

  • @Thodoriselissaios
    @Thodoriselissaios 6 ปีที่แล้ว

    How about esp-now power consumption?

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      I did not measure it. It should be quite low, because the processor is on only for a short period

    • @Thodoriselissaios
      @Thodoriselissaios 6 ปีที่แล้ว

      Andreas Spiess I need a wireless sensor for my raspberry pi that can run on coin cell. 1 esp 8266 as gateway direct on raspberry and 1 as a sensor (esp-now) Or an esp32 direct with Bluetooth?

    • @jasonmhite
      @jasonmhite 6 ปีที่แล้ว +1

      It depends on what kind of sensor, but honestly something like the NRF24L01 is probably a better choice.

  • @pissmilker2313
    @pissmilker2313 2 ปีที่แล้ว

    I'm really disappointed with the lack of ESP BLE support within blueZ drivers on Linux.

  • @papaman1037
    @papaman1037 6 ปีที่แล้ว +1

    While I do find your videos very interesting, your battery requirements are not quite real world. If you use a chip that can run stably off of say 3.0v and 10mAh then choosing a battery of that capacity is a very poor selection. As the energy stored is used the battery voltage drops below range in the simpleton example shown. Your pwer density is spot on so simply coupling with 2x the number of batteries is a layman way to better meet the VA requirements. I used to drop sensing instruments into the ocean for later retrieval -- say a few months. There is much more to consider when selection of power cells is performed.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +1

      We talk about two different things. I talk about capacity and you talk about additional safety range. Both are valid points.

  • @chuxxsss
    @chuxxsss 6 ปีที่แล้ว +8

    Hey we don't drive on the wrong side. Maybe you do.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +2

      :-))

    • @bs-tech.solutions
      @bs-tech.solutions 6 ปีที่แล้ว +14

      You have to admit though, even if it's not the wrong side of the road.. it's not the right side of the road..

    • @DougHanchard
      @DougHanchard 6 ปีที่แล้ว

      The last thing I worry about when I'm driving in Australia or England is what side of the road I'm driving on. It's when I attempt to walk across a street crossing that my life is often in endanger for about two days before I become adjusted.

  • @leglessinoz
    @leglessinoz 6 ปีที่แล้ว +24

    No sorry Andreas you all drive on the wrong side of the road.

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +3

      :-)

    • @chlordk
      @chlordk 6 ปีที่แล้ว +1

      Andreas drives in the "right" side of the road. You drive in the "wrong" side. ;)
      See antonyms: www.thesaurus.com/browse/right?s=t

    • @radarmusen
      @radarmusen 6 ปีที่แล้ว +1

      They are driven in the side there are left after the right was taken. :-)

    • @GRBtutorials
      @GRBtutorials 6 ปีที่แล้ว +1

      +2000jago True, steering wheels should be on the left from the inside's perspective.

    • @leglessinoz
      @leglessinoz 6 ปีที่แล้ว

      GRBTutorials well that just makes it awkward when one drives on the left side of a dual carriageway.

  • @phizicks
    @phizicks 6 ปีที่แล้ว

    Who says we are on the wrong side of the road? who also says that North is North? could be south but we just named it north so I believe you guys are down under :P

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว

      Interesting idea. So I can save a trip to "down under" and tell my colleagues, that I have been there ;-)

  • @passaw7
    @passaw7 2 ปีที่แล้ว

    Ble sketch link. 404

    • @AndreasSpiess
      @AndreasSpiess  2 ปีที่แล้ว

      Well possible. This is an old project and I cannot update all links :-(

  • @jumadhaheri
    @jumadhaheri 6 ปีที่แล้ว

    Lol

  • @leachim66
    @leachim66 5 ปีที่แล้ว

    I love your quest to seek the lowest power consumption possible.
    Literally Anyone: My module uses only .01 nanoamps at full power
    Andreas: I think we can do better.

    • @AndreasSpiess
      @AndreasSpiess  5 ปีที่แล้ว

      I do not know which module you measured ;-)

  • @MPElectronique
    @MPElectronique 4 ปีที่แล้ว

    Cant be battery powered :(

    • @AndreasSpiess
      @AndreasSpiess  4 ปีที่แล้ว

      It can. just use a big battery ;-)

    • @MPElectronique
      @MPElectronique 4 ปีที่แล้ว

      @@AndreasSpiess do u use a battery for that? 8 ma for battery powered application is quite a lot.

    • @AndreasSpiess
      @AndreasSpiess  4 ปีที่แล้ว

      I do not use it anymore.