#179

  Переглядів 68,978

Andreas Spiess

Andreas Spiess

6 років тому

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 років тому
I've never seen someone explain things so clearly. You even summarize it all !
@AndreasSpiess
@AndreasSpiess 6 років тому
That is what I try to do in all my videos ;-)
@fredericvandenplas3860
@fredericvandenplas3860 5 місяців тому
​@@AndreasSpiessk
@arcadeuk
@arcadeuk 6 років тому
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
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@LarryKapp1
@LarryKapp1 6 років тому
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 !
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you for your support!
@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!
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@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!
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@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.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you!
@justdoingodswork
@justdoingodswork Рік тому
Thank you it helped alot in understanding the current consumption of esp32.
@AndreasSpiess
@AndreasSpiess Рік тому
Glad the video was helpful!
@NorbertHarrer
@NorbertHarrer 6 років тому
Tons of useful information. Great job!!!
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@colinpamplin9976
@colinpamplin9976 6 років тому
Thanks Andreas, another very informative and well presented video.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@viniciusnoyoutube
@viniciusnoyoutube 6 років тому
Very good video! Nice work as always.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@joaofgf
@joaofgf 6 років тому
once again, great video! thank you Andreas ;)
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@distancelab2010
@distancelab2010 6 років тому
Thank you so much Andreas. Very interesting ..
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you.
@vizmohanan
@vizmohanan 6 років тому
Detailed and useful video. Thanks :)
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@avejst
@avejst 6 років тому
Thanks for sharing 😀👍
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@venkir1408
@venkir1408 4 роки тому
great work and very much in detailed with statistics :-)
@AndreasSpiess
@AndreasSpiess 4 роки тому
Many thanks!
@HelmutTschemernjak
@HelmutTschemernjak 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 років тому
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 :)
@faidularcs
@faidularcs 5 років тому
Awesome explaining 💝👏👏👏👏
@AndreasSpiess
@AndreasSpiess 5 років тому
Thank you!
@brycedavey1252
@brycedavey1252 6 років тому
Good to know, nice work
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@deangreenhough3479
@deangreenhough3479 6 років тому
Another excellent tutorial 😀
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you!
@nicudica4678
@nicudica4678 6 років тому
Great work!!! Keep it on! Regards!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you!
@XTronical
@XTronical 6 років тому
Fantastic video, great stuff.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks!
@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.
@KarmaDonyo
@KarmaDonyo 3 роки тому
another excellent video....thank you
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome!
@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!
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome
@HansVledder
@HansVledder 6 років тому
Thumbs up, Andreas!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks!
@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 років тому
I know this from my ESP8266 experiments. There I used Tantalum SMD capacitors which were quite bad...
@Regimantas_Baublys
@Regimantas_Baublys 3 роки тому
Thanks :) very informative video :)
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad it was helpful!
@sumaxeme
@sumaxeme 6 років тому
Great Video!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks!
@supers7100
@supers7100 6 років тому
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 років тому
Upd. That topic was on github esp-idf repository github.com/espressif/esp-idf/issues/947#issuecomment-359211747
@AndreasSpiess
@AndreasSpiess 6 років тому
Often in Chinese products, the software and the manuals are the weak point.
@c2h7
@c2h7 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?
@ufohunter3688
@ufohunter3688 6 років тому
Tony Elder is one smart dude. I love what he's done with the ESP32 on github.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@deangreenhough3479
@deangreenhough3479 6 років тому
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 років тому
Actuall, the video was finishes at 2am. So I was graceful about the two extra hours...
@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.
@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
@AndreasSpiess
@AndreasSpiess 6 років тому
:-))
@pa3deeghztv302
@pa3deeghztv302 6 років тому
Nice video andreas
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@tasa4904
@tasa4904 5 років тому
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.
@AndreasSpiess
@AndreasSpiess 5 років тому
I think I have to wait till this functionality arrives in the Arduino IDE.
@henriquewebersoeiro7790
@henriquewebersoeiro7790 4 роки тому
how I do that ?
@theunderdog2205
@theunderdog2205 6 років тому
✌ good information
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@varunhome2
@varunhome2 6 років тому
Nice one
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks!
@Rothammel1
@Rothammel1 6 років тому
Danke dir
@AndreasSpiess
@AndreasSpiess 6 років тому
Bitte, gern geschehen
@TaaviJuursalu
@TaaviJuursalu 6 років тому
Nice to know the difference.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@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!
@santosmedina6641
@santosmedina6641 6 років тому
Hallelujah!!
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@isoguy.
@isoguy. 6 років тому
Thankyou
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@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.
@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.
@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
@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
@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.
@northshorepx
@northshorepx 6 років тому
@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 років тому
It is an NRF81522 chip.
@justinmiller4406
@justinmiller4406 5 років тому
I really appreciate all of your videos Andreas. Do you know what types of chips / technology your beacon uses?
@AndreasSpiess
@AndreasSpiess 5 років тому
Usually Nordic NRF Type chips.
@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?
@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...
@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
@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 років тому
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!
@MFBcode
@MFBcode 6 років тому
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.
@bardenegri21
@bardenegri21 6 років тому
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 років тому
Nrf81522
@bardenegri21
@bardenegri21 6 років тому
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.
@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.
@bar10dr
@bar10dr 5 років тому
I hear the guy with a Swiss accent on youtube, I upvote.
@AndreasSpiess
@AndreasSpiess 5 років тому
Thank you!
@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.
@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 роки тому
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.
@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.
@deangreenhough3479
@deangreenhough3479 5 років тому
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 5 років тому
I think you should find it under “math”. It is there also on my Siglent
@tschieftschastis
@tschieftschastis 6 років тому
"and they drive obviously on the wrong side!"... exactly what i thought too! LOL
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@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)
@venkatyalamati3285
@venkatyalamati3285 4 місяці тому
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 4 місяці тому
I left the 3G topic for a few years because these networks do no more work in many countries :-(
@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
@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.
@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 років тому
I showed it: 4.2 uA
@ThomasHaberkorn
@ThomasHaberkorn 6 років тому
Andreas Spiess sorry, I must've overlooked it. Thanks!
@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.
@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 років тому
I just used the sketch without understanding it. The reboot is because of the deep-sleep.
@ThomasHaberkorn
@ThomasHaberkorn 6 років тому
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.
@m3g4byte
@m3g4byte 4 роки тому
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 10 місяців тому
Yup. I got the same result, friend. It was a miscalculation.
@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.
@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 років тому
Receiving is not very power efficient because the device cannot sleep. You find receivers in my other ESP32 BLE videos
@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)
@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
@SA-oj3bo
@SA-oj3bo 4 роки тому
Hi Andreas. Do you have already an idea about the difference in range between WiFi and BLE? Thx.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You can try it with your smartphone. BLE usually works only a few meters and not through walls.
@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
@paulopecegueiro1694
@paulopecegueiro1694 Рік тому
Hi Andreas, what about the ESP32S2, ESP32S3 and the ESP32C3?
@AndreasSpiess
@AndreasSpiess Рік тому
I made a video about the C3. Others will follow, I assume…
@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 років тому
I still hope, BT will get better on the ESP32
@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!
@petrhawliczek3302
@petrhawliczek3302 5 років тому
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 5 років тому
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 роки тому
Look at the diagrams before and you will understand. It is the energy used for one wake-up or for transmitting one message.
@devrajput2439
@devrajput2439 2 роки тому
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 2 роки тому
I do not think so. You have to use another chip.
@devrajput2439
@devrajput2439 2 роки тому
@@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).
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are right.
@OndrejPavelka
@OndrejPavelka 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.
@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 :(
@davidmcdonald3314
@davidmcdonald3314 6 років тому
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 років тому
:-))
@brianhanson9367
@brianhanson9367 6 років тому
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."
@ThomasHaberkorn
@ThomasHaberkorn 6 років тому
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.
@papaman1037
@papaman1037 6 років тому
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 років тому
We talk about two different things. I talk about capacity and you talk about additional safety range. Both are valid points.
@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 років тому
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.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I never tried it.
@leglessinoz
@leglessinoz 6 років тому
No sorry Andreas you all drive on the wrong side of the road.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@chlordk
@chlordk 6 років тому
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 років тому
They are driven in the side there are left after the right was taken. :-)
@GRBtutorials
@GRBtutorials 6 років тому
+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.
@chuxxsss
@chuxxsss 6 років тому
Hey we don't drive on the wrong side. Maybe you do.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-))
@bs-tech.solutions
@bs-tech.solutions 6 років тому
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.
@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 :-(
@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 ;-)
@jumadhaheri
@jumadhaheri 6 років тому
Lol
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@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.
Каха и фастфуд  #непосредственнокаха
00:30
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 696 тис.
Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Переглядів 143 тис.
Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Переглядів 186 тис.
Best power saving mode - Much Deeper Deep Sleep ESP8266
10:30
DIY TECH BROS
Переглядів 93 тис.
How America RUINED the world's screws! (Robertson vs. Phillips)
9:46
Stumpy Nubs
Переглядів 288 тис.
How does NB-IOT and CAT-M1 / LTE-M compare to LoRaWAN (Tutorial)?
21:58
Andreas Spiess
Переглядів 52 тис.
НЕ ВЫБРАСЫВАЙ СТАРЫЙ РОУТЕР D-LINK! #shorts
0:59
БИТВА ЗУМЕРОВ. iPhone 15 Pro / Samsung S23 Ultra / Realme 12 Pro Plus
13:58
😮Бутер по цене Айфона😱
0:34
Demin's Lounge
Переглядів 416 тис.
Самые крутые шпионские гаджеты
0:48
veloloh
Переглядів 2,1 млн