#176

  Переглядів 218,600

Andreas Spiess

Andreas Spiess

6 років тому

Presence detectors/Sensors are essential for today’s home automation systems In earlier videos we looked at PIR and radar sensors, and we were even able to use Wi-Fi on our smartphones to sense our presence. All have advantages and disadvantages.
Today, we create the ultimate presence detector. And the best: It costs only a few dollars. How does this ultimate presence sensor work? Of course, with Bluetooth low energy and an ESP32.
- In this tutorial we will build a valuable BLE application which can solve a real problem
- We will learn how BLE advertising in detail works
- We will trace BLE packets to the last bit. I am sure this will help us in future projects
- We will connect the sensor to Mosquitto MQTT broker and to Node-Red on a Raspberry Pi
Links:
Sketch: github.com/SensorsIot/Bluetoo...
BLE tutorial: www.argenox.com/a-ble-advertis...
Wireshark old versions: www.wireshark.org/download/wi...
BLE Sniffer: www.adafruit.com/product/2269
ESP32 Development board used: bit.ly/2q0kMpH
ESP32 Barebone: bit.ly/2vXQouD
Nut Mini Tracker: bit.ly/2q31pMF
iTag: s.click.aliexpress.com/e/fMFUNBQ
Mi-Mand 1 no more available. Replacement: bit.ly/2pWjKL8
or: bit.ly/2q3gVYU or s.click.aliexpress.com/e/YnYBiuR
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
My Patreon Page: / 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)
Official Wemos Store: s.click.aliexpress.com/e/jUzBiIq
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 main job

КОМЕНТАРІ: 559
@deangreenhough3479
@deangreenhough3479 6 років тому
May I wish you and all 52k subscribers another wonderful year of Andreas Spiess videos. What a year it has been. Thank you Andreas, wonderfully inspiring and always, worth the time watch over and over again. Bless you for your kindness, hard work, precision and most of all for sharing and listening. Your my electronics Grandfather for sure.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you, Dean, I also wish you and your family a Happy New Year. We will see where our journey will bring us in 2018...
@MaxintRD
@MaxintRD 6 років тому
Hi Andreas, thank you for all the great videos in the past year. They were not only quite useful and interesting, but also very inspiring. I know making these videos took a lot of time and appreciate the effort you take to keep them interesting for your viewers. I wish you and your family all the best for the next year!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you for your nice words. I also wish you a Happy 2018!
@franzmaurer2744
@franzmaurer2744 6 років тому
Hi Andreas, I also wish you and all of your readers a happy New Year. Looking back, I realize how much I learned from your videos this last year! I am so grateful for that. Thanks!
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome. I also wish you a Happy New Year and maybe, together, we can learn more next year...
@ReevansElectro
@ReevansElectro 6 років тому
Brilliant as usual! Well scripted and I like the way you changed the order to give those who aren't enthused by the details a chance to ring up a view for your channel and also it give the rest of us who love the details a tantalizing view of what's to come. I wish you a very prosperous and exciting New Year.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you for your feedback. I also wish you a Happy New Year!
@nogmeerjan
@nogmeerjan 6 років тому
I think this starts to smell like a real new product. People detection combined with people recognition. Sounds like a alarm and home automation in one go. I need to look at this more closely. Thanks for all the great good hard work.
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome to develop it further. This is the idea of this channel!
@alidollar1994
@alidollar1994 6 років тому
You have guided and helped us all hobbyists in 2017 brilliantly, 2018 will surely be more amazing with all the new cool videos and ideas. Happy New Year!
@AndreasSpiess
@AndreasSpiess 6 років тому
Happy New Year to you, too!
@BerndSchmitt-Martinique
@BerndSchmitt-Martinique 3 роки тому
its always a pleasure to detect NEW FIELDS of application with your help and orientation. THANK YOU FOR YOUR HELP to so many makers.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you liked the video!
@pinealservo
@pinealservo 6 років тому
A number of years ago I did a lot of research and experimenting on this kind of proximity tracking. It was fun but frustrating, because a number of technologies get really close to creating a great experience, but there were always fatal flaws. The most success we had was with a very similar setup; we used small computers with Bluetooth 4.0 as tracking stations and recorded all the BLE advertisements received. We got a number of different fitness bands and such things (these were the first generation of FitBit and similar devices) and we had great success at measuring relative proximity. But we soon discovered that smart watches tended to either have MAC randomization (this is a capability of all BLE devices, but they don't all use it) enabled or wouldn't emit advertisements unless they were "awake". For a consumer device to track the owner's presence, it would really have to have its own "wearable" beacon and a pairing process that would allow paired trackers to recover the real MAC (this is also part of the BLE spec, I believe). More and more BLE devices will be un-trackable by a generic tracker due to either not transmitting advertisements all the time or using randomization--without randomizing, you could be tracked *anywhere* as your travel about, and that's a legitimate privacy concern that most companies are becoming wise to. For a home-use hobby tracking system, there are a number of things that could work: 1. Find, as you did, some sort of wearable that always emits advertisements and doesn't use MAC randomization. As long as it still works, you're good, but if you upgrade to a newer version it probably won't be as trackable. 2. Find a source of cheap "beacon" type BLE devices--these are designed to be tracked by unauthenticated devices, mostly so apps can use them for local positioning in a retail environment. Some of these are designed to run for a year or more of constant beacon transmission on a coin cell. You'll have to make a wearable out of one of these yourself, and it won't do anything useful aside from turning your light on! 3. Write or install a smartphone app that will turn your smartphone into a "beacon" emulator. These apps are usually meant to help "beacon" app developers to test their apps without a bunch of actual beacon devices by instructing the smartphone to emit the advertisements that a beacon would, which would then be detectable by your tracker device. You have to remember to keep the app running if you want to be tracked, though.
@AndreasSpiess
@AndreasSpiess 6 років тому
I agree with your analysis. Beacons would be a good idea. But somehow they do not match the scenario in my opinion. AFAIK are beacons fixed and your Smartphone gets info about something interesting. In the use case, it is vice versa and a think, we should find a way to pair the devices with our "presence detector" if we want to use devices with random MAC addresses. But so far, I do not know how to do that and also if it is possible to have two different "paired connections" at the same time. So, a lot of things to learn for me...
@NikDoof
@NikDoof 6 років тому
I've actually created a similar system with a RPi with a USB Bluetooth device and have been planning to move this over to a dedicated ESP32 for a little more stability. Great video as always!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks. And an ESP32 is maybe also cheaper...
@asiw
@asiw 6 років тому
Another fantastic step forward. I have enjoyed the journey with you over the last 12 months and wish you health and happiness for 2018.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. I also wish you a Happy New Year!
@joepremkes
@joepremkes 6 років тому
All the best for 2018! Thanks for all your great video's this year, I look forward to them every week and they are a great inspiration!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you for your feedback and also a Happy New Year!
@LanceThumping
@LanceThumping 6 років тому
I love all these Bluetooth videos. They've inspired me to try and put together a Bluetooth HID with an Esp32 to make a custom game controller. It's going to take awhile because it seems quite a bit more difficult than the heart rate monitor.
@AndreasSpiess
@AndreasSpiess 6 років тому
I do not know how hard it is. Did you see this link? github.com/asterics/esp32_mouse_keyboard
@chegewaras
@chegewaras 6 років тому
Im just working on HID library for esp32. I have some results but still a lot to do. You can see 2 examples on my yt channel, a keyboard and mouse. Gamepad is the only hid device i can make working on my windows 10 laptop, im having issue with keyboard and mouse but they work on android phone.
@LanceThumping
@LanceThumping 6 років тому
I'll be sure to check both of those out when I get a chance in the next few days. Hopefully I'll be able to put together what I need.
@3dgussner958
@3dgussner958 6 років тому
Thanks for Sunday morning video. Wish you a Happy New Year!
@AndreasSpiess
@AndreasSpiess 6 років тому
I also wish you a Happy New Year!
@jameswiser
@jameswiser 6 років тому
Thank you for the time and effort you put into your videos and projects. They are very useful and helpful !
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@paulraita4092
@paulraita4092 6 років тому
I wish you happy new year! I have learned a lot from Andreas Spiess. Thank you for sharing your video.
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome! A Happy New Year to you, too
@JungleJake1664
@JungleJake1664 6 років тому
Your videos and work is always brilliant, well done and look forward to an exciting 2018.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you for your nice words!
@coli24200
@coli24200 6 років тому
Thanks Andreas!... have a good year full of good health and several projects !
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. I wish you the same!
@gweliver
@gweliver 6 років тому
Thanks so much for this very informative video! Happy New Year to you too!
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@MArifinDobson
@MArifinDobson 6 років тому
Superb. Thank you very much Mr. Swiss Accent. Happy new year from Indonesia.
@AndreasSpiess
@AndreasSpiess 6 років тому
Happy New Year to you, too!
@devorrahtester5439
@devorrahtester5439 6 років тому
Thank you Andreas and Happy New Year! Another great video. This is exactly what I was working on until I felt a little overwhelmed and then got side tracked. I bought 2 different iBeacons from Banggood a few months back and was experimenting with this exact process (but in reverse). I was programming an app that would constantly sniff for iBeacons with specific names. I managed to do that but then got tripped up in implementing an authentication system on the iBeacons so that it could send a safe command to the app like opening a web page. To achieve it that way, I would have to learn the Nordic NRF5xxx API and would require a Segger programmer which I purchased. This allows me to place the inexpensive iBeacons over a large region (my urban farm) without needing a network. Those little iBeacons (I'll leave a link) are very inexpensive and have up to 50 meters of range. If you only need a few feet of range then you have the capability to lessen the signal and save allot of battery power. They advertise that a beacon can last up to a year. These are the two iBeacons that I purchased: www.banggood.com/Estimote-Beacons-Type-Bluetooth-4_0-Module-NRF51822-Chipset-IBeacon-with-Silicon-Case-p-1103872.html?rmmds=search&cur_warehouse=CN and this one before I new the difference between chips: www.banggood.com/Bluetooth-Nordic-Ibeacon-Sticker-CC2640-Ibeacon-Beacon-Bluetooth-Beacon-with-Long-Range-p-1103871.html?rmmds=search&cur_warehouse=CN Have a great new year and please keep exploring this subject.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks for the feedback.For the moment I still hope I do not have to go the way of learning Nordic technology. BLE for the moment is enough to learn and I still hope the level of standardization is high and that we can use standard hardware on one side. But I also fear the whole security issues. They usually complicate things a lot... I wish you a Happy New Year, too.
@devorrahtester5439
@devorrahtester5439 6 років тому
Thank you, Andreas. Keep up the good work!
@korgmangeek
@korgmangeek 4 роки тому
Hi Andreas (great channel) Only yesterday I learned some stuff about iBeacons (introduced in 2013). Some devices have sensonrs and transmit also some data. Great battery life. With 2032 coin cell battery, I think more than 1 year.
@AndreasSpiess
@AndreasSpiess 4 роки тому
They are similar to the nut I used and also can be used for this purpose.
@FootWoodClimbing
@FootWoodClimbing 6 років тому
Happy new year and thank you so much for your videos and hard work.
@AndreasSpiess
@AndreasSpiess 6 років тому
I also wish you a Happy New Year!
@willofirony
@willofirony 6 років тому
Awesome video and excellent research. Thank you and have a very happy and productive new year, Andreas.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks. I also wish you a Happy New Year!
@manickn6819
@manickn6819 6 років тому
Happy new year to you too. Please do continue the good work.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. I will!
@giorgosiotis1557
@giorgosiotis1557 4 роки тому
Top of the top. Very usefull script and profetional presentation. Thank you . George from Athens Greece
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@myounges
@myounges 6 років тому
Thanks Andreas very informative! Happy New year!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. Happy New Year, too!
@keithofarns8738
@keithofarns8738 6 років тому
Thank you! This will become very useful for me. I might not upset my wife so much when forgetting about my shops lights.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-))
@onlyrgu
@onlyrgu 6 років тому
You can theoretically covert ESP 32 to a Bluetooth sniffer by turning the wifi completely off. Please correct me if I'm wrong. Thank you for making my 2017 an IoT Year. Your videos inspired me to built lot of home automation projects (Got 20 + ESP boards already). Have Awesome new year and greetings from Electronic City ,India
@AndreasSpiess
@AndreasSpiess 6 років тому
I also wish you a Happy New Year (I do not know when it starts in India). As I mentioned in my video I switch the Wi-Fi off during the BLE scan. So you just do not switch it on if you do not need it. It is in one function together with the MQTT publishing...
@ghismo
@ghismo 6 років тому
Happy new year, thanks for sharing !
@AndreasSpiess
@AndreasSpiess 6 років тому
Happy New Year, too!
@petermeiner3574
@petermeiner3574 6 років тому
auf deutsch, da persönlich an Dich! Hallo Andreas, ich möchte mich herzlich bei Dir bedanken für dieses Jahr. Deine Videos sind mittlerweile für mich ein muss... der Sonntagmorgen hat eine neue Routine ;-) Auch deine Art und Weise ist immer sehr ansprechend, ich würde mir diesen Stil für einige andere Kanäle wünschen. Ich finde es fast unglaublich, wieviel Du produzierst! Kaum vorstellbar, wieviel Zeit Du hier investierst. Schade, dass ich es einfach (beruflich) nicht schaffe, mal bei Dir in der Nähe zu sein (das Bier steht ja noch aus!). Ich wünsche Dir und deiner Familie einen guten Rutsch in neue Jahr und ich freue mich schon darauf, was Du nächstes Jahr wieder hier (hoffentlich) machen wirst!
@AndreasSpiess
@AndreasSpiess 6 років тому
Hallo Peter, vielen Dank für deine netten Worte. In meiner Lebensphase habe ich mehr Zeit für meine Hobbies, da ich dank meiner selbständigen Kinder nicht mehr so viel Geld verdienen muss... Nach 100'000 Subscribern plane ich sowieso mal eine Weltreise zu meinen interessierten Abonennten. Vielleicht ergibt sich ja da eine Gelegenheit für ein Bier... In der Zwischenzeit wünsche ich dir und deiner Familie einen guten Rutsch ins neue Jahr!
@klassichd10
@klassichd10 6 років тому
Just a note regarding the radar sensors: The radar sensors RCWL-0516, HB100 (10.525GHz), CDM324 (24GHz) are NOT interfered by the presence of an ESP8266 or ESP32. But they are interfered by a ripple on the supply chain. I did not manage to supply them by a switch mode regulator - even with additional low pass filterimng. For my the best and easiest way is to use a dedicated 7805 linear(!) regulator just for the radar sensors and the amplifiers you need for the CDM324 or HB100. After amplification you can feed the signal to an analog input of the ESP32 and perform a FFT to calculate the velocity. It works.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks for the clarifications! I probably will come back to you for the CDM324 or HB100 and FFT, because we plan a project for counting bicycles driving on a particular road. We would like to test if we can do it with these cheap sensors and would have to know in which direction they move...
@klassichd10
@klassichd10 6 років тому
With these simple doppler radars it is possible to measure abs(v_rel) but not the direction of v_rel. To do this you need a quadrature decoder providing two outputs. Or a FMCW modulation, or pulse doppler. Maybe you can modify the module? Or buy a ready made? Using a quadrature signal you can use the complex FFT directly. The complex FFT has two inputs. When using no quadrature signal (as the cheap doppler modules deliver) you fill the img path of the FFT with zeroes. The cheap sensors delivers just some mV of signal amplitude. You can use the cheap LM358 boards from ebay as amplifiers.Innosent has e.g. the SMR-31x series with quadrature output www.innosent.de/radarsensoren/smr-radar-serie/ Maybe you can get a module, or maybe that Mr. Weidmann can help.Some useful links: Arduino FFT: github.com/kosme/arduinoFFT/blob/master/Examples/FFT_03/FFT_03.inoWeidmann article: nic.ath.cx/PDF/sensors/radar/CDM324-doppler/InnoSenT/InnoSenT_applicaton_note_I_07_07.pdf www.innosent.de/fileadmin/media/dokumente/Downloads/InnoSenT_Applikationsschrift_1_-_web.pdf University script covering Doppler measurements www.acfr.usyd.edu.au/pdfs/training/sensorSystems/14%20Doppler%20Measurement.pdf Infineon briefing: www.infineon.com/dgdl/Infineon-Radar+FAQ-PI-v01_00-EN.pdf?fileId=5546d46257fa4a9c015805d6f1c558cbDiscussion on EEVBLOG over these modules. User "LaserSteve" seems to know how to modify the cheap modules: www.eevblog.com/forum/projects/what-is-the-output-of-these-doppler-radar-modules/ Keep us informed! Thanks!
@CarstenMeyer
@CarstenMeyer 6 років тому
I would love to see an updated video of espX with radar sensors.
@VegasStreets
@VegasStreets 6 років тому
I had to use a quality 2 AMP USB charger to my esp8266 and shut off the wifi between scans with my RCL-0516 and some delays
@klassichd10
@klassichd10 6 років тому
In my case the Radar sensors did not work properly using a swich mode power supply at all. Neither supplying together with the ESP8266 on one supply did work. So, an extra linear power supply (via 7805) for the Radar sensors worked. Some guys on Pete Scargills blog recommended Filterung using Pi filters but for me the 7805 turned out to be better and easier.
@bassome3000ify
@bassome3000ify 6 років тому
Can you make a video series of "how you learn"? Like how you tought yourself about BLE for example. With practical examples just as in any other video you make. Learning videos on learning :D
@AndreasSpiess
@AndreasSpiess 6 років тому
Interesting Idea. But I fear this is like riding a bicycle: I can do it but have no clue, how I do it. I have a plan of doing a video on chasing errors. Maybe this goes a little in your direction.
@justinmallaiz4549
@justinmallaiz4549 6 років тому
Thanks Andreas, your videos are great! I'm hoping you might evaluate the panasonic Grideye thermal sensor for human detection.. With some data processing you should be able to determine whether your entering a room, or leaving a room.. you also possibly determine your location in room, add gesture controls, and ignore non moving heat sources (like a soldering iron or other equipment... I think there's a lot of potential i haven't seen used with this sensor.. the programming for processing will be a bit of challenge (I have some experience mostly in the java / python department) I'm sure you can also count on some community support... Thanks again for your vids!
@AndreasSpiess
@AndreasSpiess 6 років тому
This sensor is quite expensive and therefore will not find a big market. If this changes, I might consider buying one.
@01110aDz01110
@01110aDz01110 5 років тому
Thanks Andreas, love your videos. I just got myself an ESP32 and after a few hours of trying to get it setup (I stuffed up the Arduino IDE a few times) I got it working. The problem I'm facing is that when it first starts it finds the device fine and send the message to MQTT but after that it wont find it again; 09:53:05.698 -> WiFi connected, IP address: 192.168.1.105 09:53:05.698 -> Connect to MQTT server... 09:53:05.698 -> Attempting MQTT connection...connected Waiting for 60 seconds 09:54:06.922 -> BLE Scan restarted..... off 09:54:36.929 -> 09:54:36.929 -> BLE Scan restarted..... off 09:55:06.928 -> 09:55:06.928 -> BLE Scan restarted..... off Is this how its suppose to work or is there a way to get it to re-send the message to MQTT every time it scans it?
@AndreasSpiess
@AndreasSpiess 5 років тому
It does not find any devices which are switched off or are connected to another device. Both do not advertise. I do not remember the code, but it should be straightforward and you can change it according to your needs.
@offgridsweden
@offgridsweden 6 років тому
Awesome man. Greetings from Andreas on Off Grid Sweden
@AndreasSpiess
@AndreasSpiess 6 років тому
:-) Happy New Year!
@offgridsweden
@offgridsweden 6 років тому
Andreas Spiess Happy New Year to you to
@evert-arias
@evert-arias 6 років тому
Very useful information. Thanks for sharing.
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome!
@bricoarn8651
@bricoarn8651 6 років тому
Bonjour Andreas comme toujours une analyse de très bon niveau, des informations pertinentes aussi bien pour les débutants que les plus chevronnés... quel plaisir de vous suivre ! Excellentes fête de fin d'année pour vous, les vôtres et... votre chaîne UKposts bien cordialement
@AndreasSpiess
@AndreasSpiess 6 років тому
My French, unfortunately, is not very good, but I understand it. Thank you for your feedback and I also wish you a Happy New Year!
@HendraKusumahiot
@HendraKusumahiot 6 років тому
once again you solved my problem. Happy new year sir.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. I also wish you a happy New Year
@wojciechmac7843
@wojciechmac7843 6 років тому
Hello, Your UKposts channel is one of the best about electronics. Well done. I am waiting with interest for every next episode. Best regards, macnet.pl
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you for your nice words!
@andresperez5020
@andresperez5020 6 років тому
Happy new year andreas. Thanks for all.
@AndreasSpiess
@AndreasSpiess 6 років тому
You are welcome. And a Happy New Year, too.
@jumadhaheri
@jumadhaheri 6 років тому
Happy new year. And hope for more awesome videos
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. Happy New Year to you, too!
@knightautomation2020
@knightautomation2020 3 роки тому
Thank you so much bro! Great video !!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you liked it!
@norberthartmann5075
@norberthartmann5075 6 років тому
Einen guten Rutsch und Start ins neue Jahr 2018!
@AndreasSpiess
@AndreasSpiess 6 років тому
Dir ebenfalls ein glückliches neues Jahr!
@tlamont941
@tlamont941 6 років тому
Great video, I do something similar with Estimote beacons, Pi3 and Homeseer home automation. Each of our three cars has a beacon on the dash and when the nodejs code on the Pi3 has not heard form a beacon for over 2 minutes it tells homeseer the car has left, and when it hears from the beacon again it tells homeseer the car has returned. Cheers tony
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks for your feedback. I think this technology has many uses. We just need ideas...
@ellisdeon
@ellisdeon 6 років тому
Thank you, Happy new year
@AndreasSpiess
@AndreasSpiess 6 років тому
Same to you!
@georgedone7997
@georgedone7997 6 років тому
Great video. I was planning to build a antiburglary human presence sensor operating behind glass (where PIR cannot be used) and planning to use dopler radar and ESP32. Disapointing to read they are not operating reliably when in close proximity to each other but at least I spared the effort. Any suggestion on what approach should I use ?
@AndreasSpiess
@AndreasSpiess 6 років тому
I never used doppler radars, only small sensors (in one of my videos). They did not influence each-other too much. But they seem to be very demanding for the power supply (see another comment). So I would give them a try. You also do not lose a lot of money if they do not fulfill your expectations;-)
@TMAGNarrative
@TMAGNarrative 3 роки тому
Thanks a lot ! I made an anti-theft key alarm using this .
@AndreasSpiess
@AndreasSpiess 3 роки тому
Very good!
@mitchese1
@mitchese1 6 років тому
Thanks for the details, I want to try this out with my home automation. Do you have any details on the distance that BLE works with the sensor? Do you have your ESP32 at the doorway of your workshop to detect within 1m of the doorway, or can you have it anywhere? Does the light trigger when you walk in the room directly above/below your workshop
@AndreasSpiess
@AndreasSpiess 6 років тому
I did not do any range tests using BLE but think, that not all devices send with full power. They can choose which power they want to use for sending to save battery. So you have to try with your devices. I included an RSSI (signal strength) check to restrict the range if you want
@kevinherbst2133
@kevinherbst2133 6 років тому
First of all: Thank You for this (and your other) Video(s)! I, as a non-programmer and non-engineer, am just fiddeling with the script and I'm wondering: Could it be that I can't scan for a device (my "MI Band 2") while it's paired with my phone? (sorry for my not-the-best english)
@AndreasSpiess
@AndreasSpiess 6 років тому
If devices are paired they stop sending signals to other devices.
@onurolce
@onurolce 6 років тому
I wish to you and your family Happy new year dear Andreas !:)
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. The same to you!
@adivacaru
@adivacaru 6 років тому
Hey Andreas, First of all happy new year! I think your video just inspired me to add some new members to my self built smart devices family. I‘m curious if you tried getting the heart rate from one of those armbands and if one can determine from that if the person who wears it is sleeping or not. This could be useful to turn stuff off after one falls asleep, ore in some cases disable the lights in the bedroom when the girlfriend is sleeping :p
@AndreasSpiess
@AndreasSpiess 6 років тому
I am not sure if the Polar watches send the measured heart rate in BLE or if they store it and only synchronize it with the app on the Smartphone. But the Heart rate sensor sends its signal but is not as comfortable...
@andresc4
@andresc4 6 років тому
Happy new year!!! I learned a lot about IoT and arduino in general, by far the best series of video tutorials about ESP. Regarding this video, did you found a way to get the RSSI from th BT devices?
@jjorsett
@jjorsett 6 років тому
He must have access to the RSSI. In reply to my question about how he prevents his devices from being recognized from too far away, Andreas replied that he uses the signal strength. Maybe he'll talk about how he does that in a future video.
@AndreasSpiess
@AndreasSpiess 6 років тому
If you look at the code you find the line where I compare the RSSI with a value to restrict the range
@andresc4
@andresc4 6 років тому
I would like to be able to scan all posible BLE devices to build a list of mac+rssi , on your example code you use Serial.println(advertisedDevice.getRSSI()); , but on the BLE_scan example that call is not preset,how can I list rssi values from BLE_scan example ?
@AndreasSpiess
@AndreasSpiess 6 років тому
I am sure you find it out by combining the two scripts.
@RichardEricCollins
@RichardEricCollins 6 років тому
Happy new year all :) Andreas, have you considered using a RPi and camera looking at the door? I wonder if a bit of machine learning could know when your come in and go out of the lab.
@AndreasSpiess
@AndreasSpiess 6 років тому
So far I did not do any video and pattern recognition. It is still on my list. To recognize me would be easy: Just count the wrinkles... I also wish you a Happy New Year!
@bardenegri21
@bardenegri21 6 років тому
Happy new year Mr. Spiess, I wish you many happy years of hacking and many subscribers.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you for your wishes. Also Happy New Year!
@ashajjar
@ashajjar 6 років тому
I love you man .. you made my day ... cheers :)
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you!
@chirodiesel
@chirodiesel 3 роки тому
Hello there and thank you. I am looking to create social distancing alarm watches for children with audio/visual alerts based on the esp32 chipset. My question is whether or not the chipset has built in BLE to transmit proximity values in addition to what I already know it has the capability to do regarding reception of the signals. If it does, is there a significant latency period between switching modes between transmission and reception of signals, and if there is, can it be set to toggle between the two without absolutely draining a sub 1000 mAh battery in under 2 hours? Again, thank you so much. Great informative channel.
@dakshparekh9015
@dakshparekh9015 3 роки тому
Have you made it? I am working on a quite fimiliar project lol.
@chirodiesel
@chirodiesel 3 роки тому
@@dakshparekh9015 yes. Bluetooth drains onboard battery in 30 mins and the units almost need to face one another to work. Would you like the code?
@brycedavey1252
@brycedavey1252 6 років тому
This this principle is used at my university to do check-in on in my lectures to record attendance
@AndreasSpiess
@AndreasSpiess 6 років тому
What kind of devices do you use to carry with the students? And how long do they last with one battery?
@brycedavey1252
@brycedavey1252 6 років тому
Andreas Spiess smart phone/device with a app called ilancaster, the the app uses the phones Bluetooth to find the beacons, each room has a different beacon.
@AndreasSpiess
@AndreasSpiess 6 років тому
I see. So, the Smartphone has the active part and does the logging. This is the other way round as I do it for the moment. But it is an interesting idea, also for other applications where you have to log time.
@mhcox55
@mhcox55 6 років тому
Nice video! I recently got a Google Home and have been thinking of trying something similar to your project using a Fitbit Charge 2 as the BLE wearable device and have the Google Home use Google's Nearby API to sense room occupancy and the have Google Home turn on a light, turn on the heat, etc. Still much to learn about Nearby API, Google Home, and if Fitbit and Google Home can interact.
@AndreasSpiess
@AndreasSpiess 6 років тому
A lot of fun ahead :-)
@laurichilhorst7395
@laurichilhorst7395 2 роки тому
Hi Andreas. As always, a very cool video. I have a question. I recently bought a small and cheap BLE iBeacon to play around with. The device is powered by a coin cell and features a push button. Is it possible to use such a device to trigger events on my Esp32? I would like to be able to use a small key-ring sized device to trigger a simple function on my Esp32. So I should like to know how to detect if the button on the iBeacon is pressed.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You should see the beacon with your ESP32. Just try it.
@northshorepx
@northshorepx 6 років тому
Happy new year Andreas. I wasn't able to watch the video when i came out as we were already doing new year's eve celebrations. I did like how you were able to use the sniffer to decode the packets. Thanks for the content for this year. I have a small small challenge for you (well it's for me) but you might have an idea. What if you want to detect someone within say a metre distant from a location, not not as close as RFID, and not as far as BLE? What technology would suggest investigating? I'm thinking some form of inductance based sensor for proximity, coupled with your BLE detector for individual. What do you think?
@AndreasSpiess
@AndreasSpiess 6 років тому
Happy New Year to you, too. Maybe you want to add image recognition to your list of possible technologies? And the usual suspects like passive and active IR and Radar? Or a combination.
@northshorepx
@northshorepx 6 років тому
Yeah I think a combination. I don't think image recog is enough. Thank you for your suggestions.
@Cromonus
@Cromonus 4 роки тому
Hi, great video! What's the power consumption of the ESP32 while detecting present devices?
@AndreasSpiess
@AndreasSpiess 4 роки тому
80-100mA
@NextLevelCode
@NextLevelCode 3 роки тому
I like this idea a lot. I’m thinking though I could use an esp32 for Bluetooth and an esp8266 for WiFi. Connect them together with uart. Then I could have a continuous stream of Bluetooth RSSI measurements being transferred to the mqtt. No switching on and off the different radios. With a few different nodes measuring the same RSSI should be able to do some triangulation. What do you think about that?
@AndreasSpiess
@AndreasSpiess 3 роки тому
This is possible. I did it like that for my 433MHz receiver and an ESP-01 module.
@romiolover6852
@romiolover6852 6 років тому
happy new year from France
@AndreasSpiess
@AndreasSpiess 6 років тому
Same to you!
@niniliumify
@niniliumify 6 років тому
Happy New Year!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. The same to you!
@lauro7352
@lauro7352 3 роки тому
Hi Andreas, thanks for your great videos they are a source of inspiration. I need a hint for my project. I have 5 ESP32 connected in a mesh via BLE. I would like them to sense how physically distant they are from each other. It's for a game and I'm interested in approximately knowing their distance when they are between 10cm and 1 meter far apart. Is this feasible? (PIR, Ultrasound and laser won't work as they don't distinguish an esp. RFID and Hall sensor don't have proper range) thanks.
@AndreasSpiess
@AndreasSpiess 3 роки тому
The only thing you have is RSSI. Unfortunately this value is heavily influenced by the environment. Covid trackers try to use BLE on smartphones to do exactly that. Maybe you google and find some research about the topic...
@lauro7352
@lauro7352 3 роки тому
@@AndreasSpiess ok, thanks. Now I know there isn't a simple solution I just overlooked
@debuggerau
@debuggerau 4 роки тому
interesting, thank you for sharing
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thanks for watching!
@89bschmidt
@89bschmidt 5 років тому
Dear Thanks for your videos! Could i ask for how can i do to adapt your code for detects advertising messages of BLE devices and compares it with stored MAC addresses and If ALL MAC matches, it sends an MQTT message. Thanks in advance
@AndreasSpiess
@AndreasSpiess 5 років тому
UKposts is my hobby. I provide my examples. The rest is up to the viewer. I am sure with a little googling you will manage to write it yourself.
@nathanw851
@nathanw851 6 років тому
I haven't done this myself, but I understand that you can decode GSM headers using SDR/GNURadio. Presumably these headers contain some sort of device hardware address? It might be another route to investigate as it'd be pretty much rock solid for finding any devices regardless of wifi/BLE being turned on.
@AndreasSpiess
@AndreasSpiess 6 років тому
you are probably right. I never looked into GSM protocol so far.
@mol2626
@mol2626 Рік тому
Thank, this gets me closre to a goal i have, id like to remind myself to not eat to much every time i enter the kitchen, but also id like to not spam me forever, do you have any idea on the range that the notification is sent?
@AndreasSpiess
@AndreasSpiess Рік тому
You can limit the RSSI which limits the range
@albygnigni
@albygnigni 6 років тому
Could you use the phone as a BLE tag? That's always in my pockets and has BLE always on. Thanks for the videos and happy new year!.
@AndreasSpiess
@AndreasSpiess 6 років тому
As I mentioned, I am not sure if they also change their MAC address. Then it would not be possible. Just try it. Maybe you can also start a program like NRF connect to "fake" an advertiser.
@chegewaras
@chegewaras 6 років тому
Yes, you can. Just deppends on phone model
@xenoskeras825
@xenoskeras825 5 років тому
Hi Sir Andreas, thank you for making such amazing contents and help inspire people to build new things from what you had presented. Great videos man!! I'd like to ask a question, is it possible to "restart" (stop everything and re-initialize)the initialization of the BLE so that ESP32 can connect to multiple BLE by using the BLE Service and characteristics. I also would like to try transmitting my data using the advertisement layer which is through the BLE "name" but I cannot find how to change the name after the BLE Initialized. A little help would be greatly appreciated, thank you once again!!
@AndreasSpiess
@AndreasSpiess 5 років тому
Maybe you use the script and do some experiments. You always can restart an MCU, either programmatically or by< pushing the reset button.
@xenoskeras825
@xenoskeras825 5 років тому
@@AndreasSpiess Hi, I tinkered with some of the code and found that it is possible to have multiple BLE connection to a server. This is done by disconnecting the client after it has read the characteristics value and insert "delay" so that it doesn't reconnect for that period of time. Since there is no connection done by the server, the server re-advertises making it accessible by other clients. The reset button works obviously, but since the data that i would like to advertise is variable, i need to store the data that I want to send first in the non-volatile memory of the ESP and then brought it up when the program resetted. From what I read, this creates a problem because the non-volatile memory in a microcontroller might fail and hence make the ESP32 Unuseable. Anyways, my current concern is that the data that i'm trying to be transmitting cannot be received simultaneously by multiple esp32s hence i'm trying to improve this build. I'm digging in ways to still advertise the service even when it is connected to another ESP32. Thanks a lot for the help,and sorry for my bad english because its not my native language.
@babakhallajian684
@babakhallajian684 6 років тому
Hi Andreas I think one of the Best human presence detectors is thermal D6T-44L-06 from Omron and I think you interested in multiple sensors for a human presence such as combination of PIR and radar in one box and I find that HB 100 has better response than $1 radar sensor
@AndreasSpiess
@AndreasSpiess 6 років тому
1. Other viewers suggested the D6T-44L-06 too. But it is a little pricey (>60$ incl. shipping here in Switzerland) 2. I never used the HB100. Mainly because it needs additional circuitry. But this will change. I have a few here and some CDM324 are on route...
@ionciubotaru
@ionciubotaru 6 років тому
Hi Adreas, Great video. Till now you detect humans using PIR, radar sensors, wifi or BLE. All those methods are good or bad. Please consider a device to sniff the GSM signal, because a family member can have wifi on or off, BLE always off, but never GSM off I am looking forward for a video about this subject. Happy New Year
@AndreasSpiess
@AndreasSpiess 6 років тому
GSM would be another possibility. But because it has to travel bigger distances it is much stronger. So I am not sure if you can restrain it to one room or so. I never looked into it. Happy New Year, too.
@ionciubotaru
@ionciubotaru 6 років тому
Of course GSM detector it's not for turn on the light. I like to use it to "turn the house ON/OFF". When a family member is inside or near the house I wish to deactivate alarm, turn heating on, wather pump on. Do you know such a device to scan the GSM network and report the IMEI's to a raspberry ?
@AndreasSpiess
@AndreasSpiess 6 років тому
No, I never dealt with GSM. Another viewer mentioned GNUradio with SDR dongles as a way to go. ( www.rtl-sdr.com/sniffing-analyzing-gsm-signals-gr-gsm/ )
@FlevopolderAviator
@FlevopolderAviator 6 років тому
Nice video/project Andreas! Question... What libraries do I need to install besides Neil Kolban his Arduino Lib? I am getting this "fatal error: esp_gap_ble_api.h: No such file or directory" error... (also with Neil his lib examples). I guess it has something to do with Adafruit IDF, must this framework also be installed?
@AndreasSpiess
@AndreasSpiess 6 років тому
You do not need any ble libraries, they are built in to the original distribution. Just install newest ESP32 support
@FlevopolderAviator
@FlevopolderAviator 6 років тому
problem solved.
@AndreasSpiess
@AndreasSpiess 6 років тому
:-)
@davesemmelink8964
@davesemmelink8964 3 роки тому
I needed a lazy way to take attendance in my class and remembered this project. I have it working now, but initially had a problem compiling: Sketch too big. I couldn't find the option to re-partition the storage, but eventually thought of changing the board from ESP32 DOIT to ESP32 Dev Module. Now the Partition Scheme option appears under Tools and I could change to Huge App, and all was well after that. I wonder did the libraries grow so much in 2 1/2 years? And why does the DOIT board not have the partition option? More lessons learned...
@AndreasSpiess
@AndreasSpiess 3 роки тому
This is a definition in the boards file and the creator of the doit file did not want to have this definition changeable.. I always use the dev board because it contains all options
@Ramdaron
@Ramdaron 10 місяців тому
Hello Andreas and thanks for your video! Have you tested iBeacon with NRF51822 or NRF52810? Aliexpress has several options for tags on this chip. In theory, this should give a good result. This question is especially relevant now for HomeAssistant users who want to set up automations when they change location - "ibeacon" integration was added not so long ago. I found information about testing Chipolo One, but they did not achieve success there. For me personally, work through the EspHome Bluetooth Proxy is of particular interest
@AndreasSpiess
@AndreasSpiess 9 місяців тому
I never programmed an NRF5xxx beacon :-(
@Spitfireman01
@Spitfireman01 4 роки тому
Hi, first thank you for all of your videos - they are very helpful. I am trying to load this sketch onto my ESP32 Firebeetle and i get an error message telling me that the SKETCH is too big. I have stripped out al of the comments and still I get the error message - can you suggest a way to resolve this. Thanks Peter.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You have to watch my video about more memory on the ESP32
@Hessijames79
@Hessijames79 6 років тому
Try Gigaset G-Tags as BLE Tokens. They are small, send constantly with an interval of about one second (if left unpaired) and the battery lasts about 36 months.
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks for the tip. I assume they are similar to my "nut" tags, but maybe have a bigger battery.
@chriswes4746
@chriswes4746 6 років тому
Great Video and a happy 2018. The code works, but if I try to use MQTT TLS/SSL with WiFiClientSecure.h the Code is just to big (102%) for a 4Mb Dev-board.
@AndreasSpiess
@AndreasSpiess 6 років тому
Security is always expensive ;-) I also wondered why the code is so big but did not investigate because it was ok for me.
@marcelwelter
@marcelwelter 6 років тому
Hi Andreas What is the disadvantage of sending a SCAN_REQ too often? Do the beacons respond to it immediately with and therefore use more battery? Or do they only transmit after their broadcast delay time has been exceeded? Or what is / where does the SCAN_RSP come from? En Gruess!
@AndreasSpiess
@AndreasSpiess 6 років тому
As I showed there are a few more messages exchanged. Not a big deal.
@xisop
@xisop 3 роки тому
Hi Andreas, Thank you so much for all your video´s. Really helping me out. I was wondering about your git code. On line 76 there is a value presented. The code writes -80. Is this where I can set the minimal signal strength for my BLE device? i.e. if I want my BLE device fairly close to the sensor I can change the value to lets say -50?
@AndreasSpiess
@AndreasSpiess 3 роки тому
I think so. Maybe you try it
@xisop
@xisop 3 роки тому
Will do. I hope to have some time this week. I'll let you know in a comment 👍
@xisop
@xisop 3 роки тому
I've been tinkering yesterday, had to resize the partition in order to flash the code to my esp. Flash went OK, but when I monitor the serial connection I only see some unidentified characters. Had to change the baud-rate. Unfortunately it doesn't work on my cell phone's Bluetooth mac. I'll keep trying other devices
@xisop
@xisop 3 роки тому
Got everything working. The previous called line 76 is indeed the signal strength. When the beacon is detected the scan code restarts every half second u til the device is in range. Wifi connection is established within 1 second and mqtt is posted. Thanks for your effort Andreas. 🙏
@eclecticlife
@eclecticlife 3 роки тому
Thanks for the great video. Do you know why my smart watch is not detected by the esp32 when it's connected to the phone? As soon as I turn the BT of the phone off and the watch disconnects, it's detected by the esp32. Thanks!
@AndreasSpiess
@AndreasSpiess 3 роки тому
BLE devices stop to announce if connected. So you cannot detect them with this method
@teachertechnology1
@teachertechnology1 3 роки тому
If it's still helpful... Some devices, for example the Mi Band, on the default phone's app (Mi Fit) allows a setting for the band to always be visible. I'm just about to test this but maybe that's how to have it both ways.
@soovui
@soovui 2 роки тому
Hi Andreas, Like to check with you, are you able to teach how to detect the ibeacon battery status level and send notification to mqtt server? This could be a very interesting topic.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You should be able to do this using my BLE videos...
@kokoscom
@kokoscom 6 років тому
Interesting! I also got some BLE itag (same from Aliexpress) - Make sure that are bluetooth 4.0! Distance (outdoors approx 15-20m) - indoors - within the same room. (or next room). For some reason the insist to switch off automatically. (keyring...).. Still trying to find out if i can configure them somehow
@AndreasSpiess
@AndreasSpiess 6 років тому
As I said in the video mine also switches off after a time. Maybe to save energy? The Nut tag does not switch off.
@tjagusz
@tjagusz 6 років тому
George Georgiou maybe pairing that iTag with ESP32 would help? I'm looking for a way to use it, because I want to use that extra button. This way I could have presence detector and a remote control as same time. Did You solve problem with iTag power off after some time?
@tjagusz
@tjagusz 6 років тому
Andreas Spiess iTag pairs with phone, then using for example using iTracing 2 app You can use that button on iTag to trigger something in Your phone. Maybe pairing it with ESP32 would solve power off problem. Did You try to pair it? You could use iTag as presence detector and button on it to start radio in Your office. From mobile app You can turn on beeping of iTag (to find lost keys for example) this can be used as a reminder - MQTT could send message to ESP32 to start beeping that iTag. That device has lot of potential, please consider another video on it. P.S. Your channel is AWESOME!
@raulz77
@raulz77 6 років тому
Happy New Year. Wondering if you have played with BLE 5.0 which support mesh.
@AndreasSpiess
@AndreasSpiess 6 років тому
No, I did not look into BLE 5.0
@paolomanna2992
@paolomanna2992 6 років тому
I’ve noticed you used the new Wemos Lolin32 Pro, with the ESP32-WROVER, SD card & PSRAM: is that a bit of overkill, as simpler/cheaper versions could work, or is there a reason behind the choice? Also, do you plan to review it? Mine haven’t arrived yet, and there’s little info around about how to take advantage of its features…
@AndreasSpiess
@AndreasSpiess 6 років тому
I just used it for the photo because it came in the mail this day. For the tests, I used an Arduino UNO-like ESP32 board (I left a link in the description). But any ESP32 will go.
@soovui
@soovui 4 роки тому
hello Andreas, love your tutorial so much. Extremely interesting. I don't have esp32 but I had only HC08 and nodemcu esp8266, can i use your ino files code, can you advice what i need to change in using your ino files code given?
@AndreasSpiess
@AndreasSpiess 4 роки тому
Unfortunately they will not work.
@chrissioson9230
@chrissioson9230 5 років тому
@Andreas Spiess May you recommend a sensor to detect a unique code/chip for a person?
@AndreasSpiess
@AndreasSpiess 5 років тому
The detector can only detect what it sees. You need a unique transmitter for that.
@chrissioson9230
@chrissioson9230 5 років тому
may you recommend a sample of that transmitter? I'm a student and looking for any assistance because I love electronics especially sensors. Appreciate your response anyway. ^__^
@AndreasSpiess
@AndreasSpiess 5 років тому
You saw one in the video, I think. (s.click.aliexpress.com/e/cCSf94Sy)
@cymeriandesigns
@cymeriandesigns 6 років тому
This is a nice idea, but doesn't BLE have a substantial range? How do you prevent the ESP32 from detecting your device when you're not in the room but are nearby or even across the house? Is the ESP32's range limited to a few meters?
@ParthBhat
@ParthBhat 6 років тому
Cymerian Designs exactly something I was about to type. And yeah I own a mi band 2 , after watching your very first video about ble I played around with my mi band to to sniff the packets and see what data I am getting like you did for your polar heart rate device. But the mi band 2 doesn't give me anything. Besides that my phone's Bluetooth is always running and is connected to my mi band 2 so I can see the incoming calls on my band. Will that connection between my phone and band, effect the automation or the ble presence application , will the esp32 still detect the band ? Thanks a lot for always sharing the knowledge with us.. Cheers!
@AndreasSpiess
@AndreasSpiess 6 років тому
1. I compare the signal strength with a number to limit range 2. As we saw in my last BLE videos, advertising stops if a device is paired. So, you see, we still have to continue working on BLE...
@andreisima1977
@andreisima1977 6 років тому
I might be wrong here... Due to the fact that if paired advertising stops, I think that is a dead end there. Also I think that is unpractical to have a device that keeps advertising just for detection. Pairing might be the good way of doing this, but we have to use a device just for that. I am wondering if RFID cards can do the trick. Not those big coin style ones more like the ones on a sticker like they have in shops to prevent shoplifting. Here again might be a dead end due to the cost of the gates that detect RFID... Nice series BTW. You got a new subscriber for that. I will try the esp32 board with micropython since Arduino lang and Java are not for me.
@grooverdehond
@grooverdehond 6 років тому
There is a difference between pairing and connecting. if connection is lost(out of range) it starts advertising again.
@chegewaras
@chegewaras 6 років тому
Cymerian Designs, you can setup scanning for device and if you find one then you can check RSSI level. With this is can aproximate distance how far device is from esp32. Parth Bhat, most likely you mi band 2 is a peripheral, which mean in most cases it stops advertising when its connected to your phone due to decrease power usage. Most peripherals is designed this way and can be connected with just 1 device at the same time. If you are using modern android smartphone, (dont know how about iPhones), then you can turn on bluetooth advertising all the time and use smatphone instead to detect presence.
@JasonMeredith
@JasonMeredith 4 роки тому
Andreas, do you have a Wemos D1 / PIR /IFTTT tutorial anywhere on the interwebs? awesome shop you've got there!
@AndreasSpiess
@AndreasSpiess 4 роки тому
No. But I think a video about an Amazon button which is connected to IFTTT and could easily be changed to use a PIR
@ambienceisland741
@ambienceisland741 6 років тому
Hi Andreas, Excellent video using ESP32. I have followed ur instructions and successfully setup the BLE detection. I, however need to send data to my Home Automation setup (Domoticz) in a set format. I am unable to do in the #define PAYLOAD part of ur program. I can send MQQT data in this format to Domotiz only {"command": "switchlight", "idx": 2450, "switchcmd": "On" } Using this syntax instead of using "XXX" in the PAYLOAD section throws up compiler errors. Please help / guide. Many Thanks
@AndreasSpiess
@AndreasSpiess 6 років тому
I do not know Domoticz. Maybe somebody else can help? Or Google?
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 2 місяці тому
Is it possible to use ble for precision tracking like air tags? Do you have a video on uwb?
@AndreasSpiess
@AndreasSpiess 2 місяці тому
No, it has no UWB. And so far, I have no video about UWB. It is on the list, but not a lot of info around...
@AkramButNot
@AkramButNot 4 роки тому
Hi Andreas, what do you think of using MEMS Thermal Sensor like the Ormon D6T-44L ? They wouldn't require any external device I think.
@AndreasSpiess
@AndreasSpiess 4 роки тому
These are well known PIR sensors. I never used them and do not know if they are better than the cheap Chinese PIR sensors of AliExpress
@AkramButNot
@AkramButNot 4 роки тому
Andreas Spiess actually they are not PIR but active IR sensors So they also work with static persons, it they are sleeping for example
@WagonLoads
@WagonLoads 2 роки тому
Can you get the esp32 Bluetooth to detect and or link to a Tile Keyfob tracking device or the app that tracks it?
@AndreasSpiess
@AndreasSpiess 2 роки тому
I do not know :-(
@leglessinoz
@leglessinoz 6 років тому
Andreas, can this be used to detect and act for just a single BLE device or can it be setup to detect one of a number of devices?. ie any one of several people
@AndreasSpiess
@AndreasSpiess 6 років тому
There is an array in the code where you can enter multiple device addresses
@UlfBartsch
@UlfBartsch 6 років тому
Hello Andreas, in the meantime, have you discovered how long the device will last when the device will advertise all the time? For example the Mi Band.
@AndreasSpiess
@AndreasSpiess 6 років тому
The Nut still advertises. The miband only lives for about 30 days. But this is because it does much more
@kgazzar007
@kgazzar007 6 років тому
Happy newyear
@AndreasSpiess
@AndreasSpiess 6 років тому
Thank you. Same to you, too!
@ddjazz
@ddjazz 4 роки тому
Hi andreas , what sketch did you use to view the detected devices in serial window at 2:15 ?
@AndreasSpiess
@AndreasSpiess 4 роки тому
I do not remember :-(
@19trwind82
@19trwind82 6 років тому
Thanks for another useful video! Is the 52379 on the display @0:57 showing how many subscribers you have? Frohes neues Jahr und Alles Gute für 2018!
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks! Yes, you saw my subscriber counter. It is a motivator to keep going when something does not work as I expect ;-) Happy 2018, too
@DavidLeeMenefee
@DavidLeeMenefee 6 років тому
Happy New Year! PEACE...from electronicwizard
@AndreasSpiess
@AndreasSpiess 6 років тому
Thanks. Same to you!
BLE with ESP32 tutorial part 1: the Server
25:23
MoThunderz
Переглядів 67 тис.
Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Переглядів 145 тис.
РАДУЖНАЯ ГОРКА 🌈😱
00:30
ВИОЛА 🐰
Переглядів 3,4 млн
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 704 тис.
Do THIS If You Hate Your Job
10:08
Adam Savage’s Tested
Переглядів 207 тис.
Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Переглядів 187 тис.
The BEST Smart Home Room Presence Detection I've Tried!
10:39
Everything Smart Home
Переглядів 177 тис.
Why Doesn’t Everyone Use This Animation???
23:59
Theo - t3․gg
Переглядів 20 тис.
463 Why most Arduino Soil Moisture Sensors suck (incl. solution)
10:59
Andreas Spiess
Переглядів 58 тис.
ESP32 WiFi Range Testing - 10km using Directional Antenna
5:42
Bluetooth Proximity Detection | FireBeetle ESP32
5:20
Davy Wybiral
Переглядів 100 тис.
Какой MacBook выбрать в 2024 - М1, М2 или М3?
24:56
GOOGLE СДЕЛАЛИ НЕВОЗМОЖНОЕ! Это круче любого Samsung, Apple и Xiaomi…
13:16
Thebox - о технике и гаджетах
Переглядів 63 тис.
SELPHY celebrates 20th Anniversary"Birthday"(Canon Official)
0:31
Canon Imaging Plaza
Переглядів 126 тис.
😍ЛУЧШАЯ фишка Айфон 15🍏
0:35
Demin's Lounge
Переглядів 559 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 14 млн