#174 Bluetooth BLE on ESP32 works! Tutorial for Arduino IDE

Поделиться
HTML-код
  • Опубликовано: 17 дек 2017
  • Good news! My fake Polar H7 Bluetooth heart Rate sensor works on my ESP32 using the Arduino IDE. I will show you what I had to do. And much more!
    Today I can show you
    - How you can build a sensor which sends data via BLE to a client
    - A client which can receive these values and display them in Serial Monitor
    - The mysterious BLE2902 client characteristic configuration and how it works
    - The details of the protocol used by the heart rate measurement characteristics. This will help you to build other sensors based on different standardized services and characteristics
    Links:
    First tutorial video about BLE: ru-clip.com/video/2mePPqiocUE/видео.html
    Sketches: github.com/SensorsIot/Bluetooth-BLE-on-Arduino-IDE
    Neil Kolban's Github: github.com/nkolban
    ESP32 board used: bit.ly/2sOMR3E

    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    My Patreon Page: www.patreon.com/AndreasSpiess
    If you want to support the channel and buy from Banggood use this link to start your shopping: bit.ly/2jAQEf4 (no additional charges for you)
    facebook.com/profile.php?id=100013947273409
    twitter.com/spiessa
    www.instructables.com/member/Andreas%20Spiess/
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my main job
  • Наука и техникаНаука и техника

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

  • Roland Stiebel
    Roland Stiebel Месяц назад

    Hi Andreas, Thanks again for your great video. I just tried to do the same with a Bluetooth Joystick. But I get an error
    bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x003e
    while searching the web I found you had the same problem and asked for help.
    Can you tell me, what I have to do?
    Hardware: Wroom32 and HZ-2749 joystick
    Thanks a lot!

    • Roland Stiebel
      Roland Stiebel Месяц назад

      +Andreas Spiess ok. Thanks anyway!

    • Andreas Spiess
      Andreas Spiess  Месяц назад

      I do not know more than written into the post you mention and my example files. They worked at that time and I did not touch BLE since.

  • CHURCHMANIA
    CHURCHMANIA 3 месяца назад

    Great Video. I'm getting results with my ESPs spoofing your heart rate monitor. My only problem is that I need to use another type of data that is a little larger than your example. I have tried to use other service UUIDs to get data larger than a the little 8bits used in the heart rate moniter(180D). I'm trying to transfer gyroscope data over BLE so I need a data type that can hold 0-360. Also, all of the services have very specific uses. What service/characteristic do you recommend?

    • Andreas Spiess
      Andreas Spiess  3 месяца назад

      I did not further work with BLE. So I am not a big help. But I think, together with Goole you will be able to find a solution. BLE is not limited to the ESP32 and maybe somebody else solved it.

  • Iñaki Inchaurregui
    Iñaki Inchaurregui 4 месяца назад

    Hi! Do you know if you can change the name of the bluetooth so that it appears as we want, when looking for it with another device?

  • ezanchet
    ezanchet 4 месяца назад

    Many thanks Andreas, this video was very useful for a project I'm doing !
    I'm watching all your videos and are inspirational :-)

  • Rodrigo Franco
    Rodrigo Franco 6 месяцев назад

    Thank you Andreas, I have learned a lot with your videos...
    greetings from Mexico.

  • Vasko Tomanov
    Vasko Tomanov 7 месяцев назад

    Great Video :) I'm trying to get my ESP32 to send data for
    2 x voltmeters
    1 x temperature
    1 x humidity
    1 x GPS coordinates
    using BLE to my phone
    (I'm using nRF Connect on the phone for testing)
    I cannot see a example how to create my own custom service with 3 x float , 1x integer, and 2 x double - values that can be displayed on the phone or may be use some of the already defined GATT Services ?
    Any suggestions will be well appreciated...

    • Andreas Spiess
      Andreas Spiess  7 месяцев назад

      I am not a BLE specialist. But I think, if you can transfer one characteristic, you can also transfer the other values. You find a link for all defined GATT services.

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

    But if you have two HR monitors that uses the same UUIDs and measurement, how do you define to which one to connect? Do you use the MAC address to differentiate?

    • Andreas Spiess
      Andreas Spiess  7 месяцев назад

      I do not know. Unfortunately, I am not a BLE expert.

  • Matt Gipson
    Matt Gipson 7 месяцев назад

    Any chance you could do a video showing how to send data back and forth between 2 esp32s using BLE?

    • Andreas Spiess
      Andreas Spiess  7 месяцев назад

      I have no plans for BLE for the moment. But this can change if more functionality appears.

  • Jami Susijärvi
    Jami Susijärvi 8 месяцев назад

    And yes, now i do get navigation info from Android/iPhone to ESP32 from Komoot (distance to next turn, where to turn and road name). But that Komoot is not very good software. Any info of better ones that sends info thru BLE?

    • Jami Susijärvi
      Jami Susijärvi 7 месяцев назад +1

      To get navigation information from phone to motorcycle display (i have talked about this project with Onno Dirkzwager because plan is to use also iotappstory in this project).
      I think i have to work more with Kamoot. At least roads at my neighborhood are partly missing, but Kamoot is using OpenStreetMap so i can make that better.

    • Andreas Spiess
      Andreas Spiess  8 месяцев назад

      I love komoot because it is quite precise with telling me the road quality also in other countries. What would be the goal of such a project?

    • Jami Susijärvi
      Jami Susijärvi 8 месяцев назад

      github.com/komoot/BLEConnect

  • Jami Susijärvi
    Jami Susijärvi 8 месяцев назад

    This was really useful for my projects. I think i allready have to test today

  • ksrm kadapa
    ksrm kadapa 8 месяцев назад

    I need vedios on how to install library esp32 on ardunio die plz help me

    • Andreas Spiess
      Andreas Spiess  8 месяцев назад

      There are a few videos around. just google.

  • Flavio Dexter
    Flavio Dexter 8 месяцев назад

    Am I the only one who gets "sketch too big to compile" ? sketch uses 106% of program storage space. I'm using a doit esp32 dev kit V1
    PS: the arduino setup is working because if I compile a esp32 ble sniffer example everything works

    • Andreas Spiess
      Andreas Spiess  8 месяцев назад

      I saw the issue too now. BLE is still under heavy development for the Arduino IDE...

    • Flavio Dexter
      Flavio Dexter 8 месяцев назад

      github.com/SensorsIot/Bluetooth-BLE-on-Arduino-IDE/issues/3 Looks like it is a config issue with the esp32/arduino library at least on windows.
      Modifying the boards.txt file removed the issue, still I'm not able to get any output on the serial monitor after compiling and configuring your sketch.

    • Andreas Spiess
      Andreas Spiess  8 месяцев назад

      So far I did not read any other comments like that if I remember right.

  • Maneco Urquhart
    Maneco Urquhart 9 месяцев назад

    Excellent once again Andreas, would like to know if it's possible to add feedback in the sensor to notify that the client received data?

    • Andreas Spiess
      Andreas Spiess  9 месяцев назад

      I think many things are possible, but I am a beginner in this topic.

  • 김홍두(공과대학)  ­
    김홍두(공과대학)  ­ 9 месяцев назад

    Please help me the following error during compilation:
    In file included from D:\Download\ESP32_BLE_UART_Demo\ESP32_BLE_UART_Demo.ino:22:0:
    C:\Users\user\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\src/BLEDevice.h:16:20: fatal error: esp_bt.h: No such file or directory
    compilation terminated.
    I am using Sparkfun ESP32 thing.

    • 김홍두(공과대학)  ­
      김홍두(공과대학)  ­ 9 месяцев назад

      Thank you for your reply. Yes, it turns out wrong ESP32-BLE library from Git-Hub. Please guide to everybody there is ESP32-BLE-Arduino library. I enjoy your video..

    • Andreas Spiess
      Andreas Spiess  9 месяцев назад

      I have no idea. But maybe you re-install the ESP32 support. Something seems to be wrong with it.

  • Doug Hanchard
    Doug Hanchard 9 месяцев назад

    Just an observation, for a retired Electrical Engineer, I bet you are busier now than when you were working full-time! Nice job!

    • Andreas Spiess
      Andreas Spiess  9 месяцев назад +1

      I am not retreated. I still work. Here we stop at 65 and I am only 61 :-(

  • Peter Whyte
    Peter Whyte 9 месяцев назад

    Hi Andreas, so excited! - tonight I got my Garmin 935 to find and connect to my "fake" polar h7 using your sketch - thank you so much - I am now a fan of the ESP32 and will leave the world of the ESP8266 for bigger and better things!! :)

    • Andreas Spiess
      Andreas Spiess  9 месяцев назад

      Great! Thanks for your feedback.

  • Hosszú Dániel
    Hosszú Dániel 9 месяцев назад

    So if I would buy an ESP32 then I could use it to read the heart rate data from my Polar H7? Unfortunately I haven't found any working solution for Arduino Uno + Bluetooth module + Polar H7. By the way, great videos and very informative commentary!

  • Vincent Horn
    Vincent Horn 10 месяцев назад

    Grüetzi Andreas
    did you connect a ESP32 BLE client to your Polar H7 ?
    The HR caracteristic returns me different value formats like :
    6 83
    22 83 218 2
    22 84 221 2 206 2
    Why does the H7 not sending always the same format ?
    The first (6 83) and the second (22 83 218 2) seems correct from the flag point of vue (respect. 8byte HR value and 8byte HR + 16b RR).
    But how should I understand this 22 84 221 2 206 2 ?

    I noticed that the Polar H7 delievers a unkown service on the UUID = 6217ff4b-fb31-1140-ad5a-a45545d7ecf3.
    Any idea on this vendor specific UUID ?
    Vincent

    • Andreas Spiess
      Andreas Spiess  9 месяцев назад

      Unfortunately, I do not know more than presented in this video. And I do no more remember all details. I think the links to the underlying documentation is in the comment. Maybe you find a solution.

  • ThomasHaberkorn
    ThomasHaberkorn 10 месяцев назад

    Is there a way to set the BLE transmit power or is it fixed?

    • Naasik Hendricks
      Naasik Hendricks 8 месяцев назад

      I had a similar question. The RSSI or dBm adjustment file. That will determine the range and application space. One can use more Powerful dBm for Controlled indoor application.

    • Andreas Spiess
      Andreas Spiess  10 месяцев назад

      I do not know. But I think, it is variable (maybe not in the Arduino IDE). But on the ESP32, most of the current is used because the device is on for way too long, not for the BT sender.

  • Ilzam Ismail
    Ilzam Ismail 10 месяцев назад

    Can you advise purpose or meaning of below code?
    // If we are connected to a peer BLE Server, update the characteristic each time we are reached
    // with the current time since boot.
    if (connected) {
    if (onoff) {
    Serial.println("Notifications turned on");
    pRemoteCharacteristic->getDescriptor(BLEUUID((uint16_t)0x2902))->writeValue((uint8_t*)notificationOn, 2, true);
    }
    else {
    Serial.println("Notifications turned off");
    pRemoteCharacteristic->getDescriptor(BLEUUID((uint16_t)0x2902))->writeValue((uint8_t*)notificationOff, 2, true);
    }
    onoff = onoff ? 0 : 1;
    }

    • Andreas Spiess
      Andreas Spiess  10 месяцев назад

      Maybe you ask this question on Github (BLE library, nkolban). He is the creator and knows much more about his code than me.

  • tablatronix
    tablatronix 11 месяцев назад

    This is great, does anyone know if its possible to send btle notifications to IOS without software or a custom app ? Is there like a prowl for bt ?

  • Neuralian Metazoan
    Neuralian Metazoan 11 месяцев назад

    Thank you! Just received my first esp32s, off to try them out now ...

  • Nisse Nilsson
    Nisse Nilsson 11 месяцев назад

    Hi... thanx for great videos!
    I'm having a little trouble...
    I want to send longitude and latitude in Location and Speed Characteristic 0x2A67
    www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.location_and_speed.xml
    How should I set up the setValue array?

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      You have to understand each byte and first distinguish, which you need and which not. Then, you have to fill /decode the important ones. Takes some time but is possible. Happy New Year, too.

    • Nisse Nilsson
      Nisse Nilsson 11 месяцев назад

      I have tied your sketch with success.. I think I'm stuck with the Characteristics.setValue..
      the HeartRate Flags is 8bit, and the Location is 16bit... should I split it? byte location[xx] = { 0b00100000, 0b00000000,.. and so on.. ?
      All I get in NRF connect is an array of hex(?) values...
      Anyway... I will have a closer look at it next year... :)
      Happy New Year!

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Exactly as described in this document. But you might have to read it a few times and try. Use NRF connect to see what is sees. This will help you to correct your code. Maybe you use my fake Polar sensor sketch as a reference. Yours seems to be more complicated, though.

  • C Dawson
    C Dawson 11 месяцев назад

    Andreas, this is amazing. Have you been able to get the client to automatically reconnect to the server if the connection is lost, or the client is reset? Or is this only achieved through bonding/pairing?

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад +1

      I did not do this work so far. I am a real BLE beginner and just started the journey...

  • NerdyPi
    NerdyPi 11 месяцев назад

    Do you think it would be possible to turn an ESP32 into a Bluetooth HID using this stuff as a base? I want to see about making my own Bluetooth controller with one I have laying around.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      It should be possible. I found this link: github.com/asterics/esp32_mouse_keyboard . It is not for the Arduino platform.

  • Andy Phan
    Andy Phan 11 месяцев назад

    Andreas please waive your magic wand once again and show us how to receive data via bluetooth and retransmit it via MQTT.

  • Davide Menegalli
    Davide Menegalli 11 месяцев назад

    Hi Andrea, i found your channel today while searching for wifi devices, and i discovered that you're in Swiss too like me, how small is this world :) You have gained a new follower, best regards ! Davide

  • Rud Dog
    Rud Dog 11 месяцев назад

    Not sure if you entertain this type request on your channel if you prefer requests of this type are not made then please disregard this post.
    In need of a detailed video walking, no crawling, through the steps for several items related to the NodeMCU ESP8266.

    How to see what is loaded in the memory of the device.

    How to erase the contents of the memory.

    How to load different firmware, for example, MicorPython then back again to ESP8266 original firmware.

    List the tools for best carry out the listed items above.

    Discuss NodeMCU memory amounts used and why. Have seen discussion on 1Meg and 4Meg but not sure how they are implemented.

    Lastly, if you can dumb it down I am a hobbyist and started my journey down using IOTs a few months back and need all the hand holding I can get.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад +1

      How to see what is loaded in the memory of the device.
      You cannot see it. You have to know what you loaded into the memory. Maybe there is a possibility to extract the low level code, but this is not very readable for humans

      How to erase the contents of the memory
      For sure there are functions to erase flash memory. But I do not know them. However, this is usually done by the programmer itself before it uploads the new code.

      How to load different firmware, for example, MicorPython then back again to ESP8266 original firmware.
      As soon as you load something on the ESP8266 all flash memory is erased. So you can switch firmware just by loading a new one on the device

      List the tools for best carry out the listed items above.
      I use the Arduino IDE to do that. Micropython has its own infrastructure to work with the ESP8266. And there are more tools available. However, the Arduino IDE is best for beginners.

      Discuss NodeMCU memory amounts used and why. Have seen discussion on 1Meg and 4Meg but not sure how they are implemented.
      Most ESP8266 boards have a 4MByte Flash chip. Old ESP-01 boards have only a 1M chip. You select the chip size before compiling and uploading your code in the IDE.

      Lastly, if you can dumb it down I am a hobbyist and started my journey down using IOTs a few months back and need all the hand holding I can get.
      There are many videos around on how to get started with the ISP8266. Maybe you watch one or two of them. It is not very complicated.

  • PodróżeMałe&Duże
    PodróżeMałe&Duże 11 месяцев назад

    thank you for all of your work :) 10/10 :))
    cant wait for next episode :)

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад +1

      You are welcome. The next episode should be out by now.

  • SiddyYT
    SiddyYT 11 месяцев назад

    First of all: I'm a big fan of all your videos!! Your recent videos inspired me to play around with ESP32 and the Xiaomi Mi plant sensor and it works like a charm! Check github.com/sidddy/flora if you're interested in an ESP32-based Xiaomi Mi plant sensor BLE client, pushing the measurements to an MQTT server. So, also a big thanks to you from my "guinea-pig-plant" for the much improved supply of water and fertilizer! ;-)

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Thank you for the link. I will try it over the Christmas days.

  • 1an Email
    1an Email 11 месяцев назад

    Well done Andreas! Loved the inclusion of "Dinner For One" its a true classic that can be watched over and over :)
    Have you seen the new LolinESP32 Pro? It uses the new Wrover module and has an SD card reader, step up from the Wroom module equipped Loloin32's.
    Have a great xmas and looking forward to see what projects you present in the new year. Love your work!

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      I have a pro in the mail. We will see what I will do with it. For the moment I have no special project in mind

  • Hans Schenker bei Google
    Hans Schenker bei Google 11 месяцев назад

    Solid swiss work! Not giving up before having found the solution! Thank's a lot for your work in the public!! :-)

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      You are welcome. Giving up after a few days only usually is no good option...

  • Timothy Woo
    Timothy Woo 11 месяцев назад +3

    Great video! I was inspired by this video and decided to write my own Instructable on how to make an easy Android app to send and receive data from the ESP32 in Arduino IDE. Check it out! www.instructables.com/id/ESP32-BLE-Android-App-Arduino-IDE-AWESOME/

    • Timothy Woo
      Timothy Woo 9 месяцев назад

      Thanks, glad you liked it!

    • Vilander Kiminami
      Vilander Kiminami 9 месяцев назад +1

      Thxxx Timothy Woo, Thxx Andreas!!!!!

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад +2

      Thank you for the link. Very good instructable. I also watched a few of these Thunkable videos and plan to do some tests with it.

  • John Spounias
    John Spounias 11 месяцев назад

    Thanks nkolban and the rest of the community for all the work put in to make it happen.

  • Ten Minute Tokyo 2
    Ten Minute Tokyo 2 11 месяцев назад

    Ah so that is how you stay in such good shape.

  • CosmicBandito69
    CosmicBandito69 11 месяцев назад

    Maybe I'm crazy, but it seems like you are using the ble_2902 to reverse the normal operation. It seems like the sensor wants to be a server, and the app or database or whatever wants to be a client. It seems like it is already set up to be used that way. The server would notify about changing sensor values, since the sensor is the server, and the client would be that which displays or records the sensor values, and maybe doesn't need to send any notifications.

    • CosmicBandito69
      CosmicBandito69 11 месяцев назад

      Thank you. Certainly most of the documentation always refers to the (GAP) peripheral sensor as a (BLE) server and the (GAP) central as a (BLE) client.

      After studying more, If I were implementing my own heart monitors and displays (for something like a gym or hospital), I would probably emulate i-beacons, cramming the data into parts of the advertising data and scan response GAP payloads (whatever is allowed by i-beacons). Then I could monitor multiple sensors at once. With something like temperature sensors, you could save a lot of battery by adjusting the frequency (and power) of the advertising data payloads going out, since it also advertises how frequently GAP advertising data payloads will be sent out. It would never actually connect, it would just send out advertising data payloads that match the i-beacon/eddystone format containing the data. Thank you for your helpful videos. Sorry to drag you back here :) I bet you end up exploring beacons at some point either for energy savings, or very accurately triangulating people's location in buildings and such using multiple beacons and their signal strength (in an app running on a person's phone). There I go trying to run before learning to walk again.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад +1

      There is a two-way communication between the two devices. If someone calls a data transmitter a "server" then it changes all the time. AFAIK server and client are not very well defined roles and were the reason for a lot of confusion also in the past.
      For me (and this seems also the way GATT sees it) the server is connected to the sensor and the client to the "display". That is easy enough to be understood by me ;-)

    • CosmicBandito69
      CosmicBandito69 11 месяцев назад

      Dang it, the nomenclature of server and client is confusing, since they are kind of acting like both at different times. What I meant to say is that the sensor seems to want to be a (ble) client, listening for a (ble) server to ask for data, and sending the data when the (ble) server asks . The (ble) server could display, record, modify, or utilize the sensor data. The GAP and GATT roles can be switched and mixed as one needs, I guess: community.nxp.com/thread/332319

  • Bike Vids
    Bike Vids 11 месяцев назад

    DOOD!

  • Agim Ramqaj
    Agim Ramqaj 11 месяцев назад +1

    Hi Andreas, did you measure how much energy does esp use in client or server mode?

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      :-)

    • Agim Ramqaj
      Agim Ramqaj 11 месяцев назад +1

      Andreas Spiess i'm sure you'll update us on that topic :) keep up the good work!

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад +1

      No not yet

  • Fabio Cristini
    Fabio Cristini 11 месяцев назад

    Incredible work, as usual. Well done.
    I'm trying to use your samples to read my Flower Care (miflora) sensor (not sure if it's genuine as most of the common apps does not work with it).
    Have you have already started to analyze the protocol of your?
    I've a 4 custom services: FE95, FEF5, 1204, 1206. Do you have something similar??
    Ciao
    Hjfabius

    • chegewaras
      chegewaras 11 месяцев назад

      This is not true. ESP32 can see all services like any other devices.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      The client sketch searches first for a service and then for a characteristic. If you do not see it in serial monitor during scan it will not connect. So far I did not try to more than one service/ characteristic.
      I would try to start with my examples and then start changing. It took me a long time till everything worked. Even minor changes resulted in failures...

    • Fabio Cristini
      Fabio Cristini 11 месяцев назад

      Meaning that ESP cannot connect to not advertised services? I tried using the BLE_client example changing UUID as per what I've on the app, but connection is not enstablished.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      AFIIU the ESP only sees the advertised services. The other apps see all

    • Fabio Cristini
      Fabio Cristini 11 месяцев назад

      Have you ever encountered cases where IOS Nordic app see 4 services linked to a device while esp32 with arduino ide only see one?

  • Istvan Zilizi
    Istvan Zilizi 11 месяцев назад

    Big Thanks for this Andreas! I really think I can learn from you new things! It is time to experiment!

  • Gianluca Cembrani
    Gianluca Cembrani 11 месяцев назад

    As inspiring as usual, thanks for this present, Andreas! I'll start looking into a miflora-to-mqtt project soon. Marry Christmas, my friend.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Please show us your findings! Merry Christmas, too

  • Luis Gatica
    Luis Gatica 11 месяцев назад

    This is great thanks Andreas!!! Have you tried the BLE 5.0???

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      ESP32 cannot do it and I hardly understand 4.0 ;-)

  • Giampiero Raschetti
    Giampiero Raschetti 11 месяцев назад

    Nice work Andreas. I just got the same Polar H7 device and successfully tried your sketch. Really useful examples. I'm looking in Kolban's snippets for work in progress on ibeacon but not so easy to integrate under arduino IDE .. too much rust on my brain :-)

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Thanks for the link. I will have a look at ir

    • Giampiero Raschetti
      Giampiero Raschetti 11 месяцев назад

      ok. In the case it may be useful my last message on ESP32-snippets (by qrpfun) github.com/nkolban/esp32-snippets/issues/271

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Thanks for the feedback. Maybe I will have a look into beacons later.

  • DontAskMe
    DontAskMe 11 месяцев назад +2

    Another interesting topic would be how high the power consuption is when the ESP32 is solely used as a BLE server. Does it save much energy compared to a ESP8266 on wifi?
    Yet another topic would be to receive data via blutooth and retransmitt it via MQTT. That could be used for the plant monitor (the one you used in the video) to intergrate it in node red.
    btw: do you have an aliexpress affilitate link, to support you by shopping there?

    • Christos Moutevelis
      Christos Moutevelis 11 месяцев назад

      BLE sensors need to work with a CR2032 battery for six months to a year . ESP32 is good for making a cheap BLE to WiFi Gateway ( instead of having a full raspberry 3 for example ) . If you need a simple BLE sensor you should perhaps try the nRF or Dialog BLE chips . They even cut consumption by selecting the right amount of flash memory model needed for each application down to a few nA in sleep mode !

    • John Spounias
      John Spounias 11 месяцев назад

      110-130mA @ 5v is how much my ESP32 with max RSSI setting and linear converter 1117, 2 i2c devices + flash uses, so its not bad for peripherals for ultra low power though not yet.

    • John MacLeod
      John MacLeod 11 месяцев назад

      I'd like to find a very low powered, programmable device with built-in BT (like the ESP32) to build BLE sensors. If you know of one, or how to make the ESP32 run like that - maybe on its super low power processor - that might be interesting. Then you could make a cat food monitor without a USB lead to trip her up as it would run for years on a button battery!

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      1. MQTT should be easy.
      2. I am also interested in power consumption ans sleep modes.

    • axel magnus månsson
      axel magnus månsson 11 месяцев назад

      banggood methinks. and yes power consumption is really an interesting race for these gadgets now.

  • Das Kässpätzle
    Das Kässpätzle 11 месяцев назад

    Great, thanks to you and also the helping viewers ;-)

  • Ozgur Butuner
    Ozgur Butuner 11 месяцев назад

    Wow, thats great! Future: diy garmin edge 1000 :)

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Maybe too complicated for me...

  • Charles Thatisall
    Charles Thatisall 11 месяцев назад

    Congratulation Andreas! Glad you got it working :)

  • Chris B
    Chris B 11 месяцев назад

    Nice one Andreas will watch it in the morning.

  • legoscratch
    legoscratch 11 месяцев назад

    Esp32 smartwatch?

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      With an e-ink display maybe...

    • Luis Gatica
      Luis Gatica 11 месяцев назад

      legoscratch i like to see that too

  • Media Will
    Media Will 11 месяцев назад

    Great work. I can now use BLE for my projects. Thank you.

  • Max E. Mergenthaler
    Max E. Mergenthaler 11 месяцев назад

    This is Christmas - such amazing stuff to look into during the coming season.....

  • peopledrivemecrazy
    peopledrivemecrazy 11 месяцев назад +7

    Amazing work.

  • Frank Werner-Krippendorf
    Frank Werner-Krippendorf 11 месяцев назад

    Thank you so much for that awesome update. Will try immediately on the LoPy board. Adding BLE to my projects is a big PLUS! Vy 73 de HB9FXQ

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Thanks for your feedback!

    • Frank Werner-Krippendorf
      Frank Werner-Krippendorf 11 месяцев назад

      Can confirm it is working w. LoPy boards: twitter.com/HB9FXQ/status/942343732405391361

  • Dean Greenhough
    Dean Greenhough 11 месяцев назад +12

    Andreas you have done it again👍 I believe many peoples Christmas has come early.
    Outstanding work by you and your contributors, thank you all.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      You are welcome. I am happy to have such a wonderful community!

  • Lars Andersen
    Lars Andersen 11 месяцев назад

    Awesome! My dream goal would be to make a crank force sensor for my unicycle. Thanks for sharing!

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад +1

      That should now be possible together with my cat video (weight measurement)

  • northshorepx
    northshorepx 11 месяцев назад

    WOW WOW WOW WOW perfect!!!!! thank you so much!

  • Shane Bekker
    Shane Bekker 11 месяцев назад

    I wonder if this useful information applies to BLE 5.0. Would be cool if it did. Thanks again for your time in explaining these things for us.

    • Naasik Hendricks
      Naasik Hendricks 8 месяцев назад

      BLE is a complete standard. If you able write, the complete standard then you able to access the ble. The RF is only a hardware function. The ble is a standard and protocol. That is not hard just time consuming and involved...

    • chegewaras
      chegewaras 11 месяцев назад

      BLE 5.0 is backward compatible. Yes, all info from this vid will work with BLE 5.0.

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      ESP32 is not on 5.0 So we have to wait...

    • Luis Gatica
      Luis Gatica 11 месяцев назад

      Shane Bekker have you see some MCU’S with BLE 5.0? I think they re not Comercial at this time

  • Joey Bushagour
    Joey Bushagour 11 месяцев назад

    Great as always!

  • ThomasHaberkorn
    ThomasHaberkorn 11 месяцев назад

    Very useful! Can't wait to try it. Thanks Andreas !

  • Asger Vestbjerg
    Asger Vestbjerg 11 месяцев назад +1

    Thanks for sharing 😀👍 interesting stuff

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      I am also glad we can use BLE now for our projects.

  • Cristi Istrate
    Cristi Istrate 11 месяцев назад

    Great conclusion for your last video on ble.

  • Doug Manatt
    Doug Manatt 11 месяцев назад

    My first 2 ESP-32s will come about Christmas time. With your help I will be using them soon!

  • Johno Scott
    Johno Scott 11 месяцев назад

    Well done. Good to get some closure on this problem

    • Andreas Spiess
      Andreas Spiess  11 месяцев назад

      Maybe it is the opening for many other questions like energy consumption, deep sleep, range and others...

  • Anas Omary
    Anas Omary 11 месяцев назад +3

    Absolutely Brilliant !

  • Kachongui Kach
    Kachongui Kach 11 месяцев назад

    Hi Andreas, it's always good to see a new video coming up.