ESP32S3 HLK-LD1125H Human Presence Sensor

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this is a human presence detection radar and its manufacturer is claiming that it can detect movement even behind obstacles so can it really do that in this tutorial we will be testing the limits of this module and interface it using esp32s3 and show the radar data on a round display which has a NASA looking user interface implemented using lvga Library we have got a radar to test today so without any further Ado let's Jump On In turn your dream project into reality with pcbway I've personally used their services to produce my own prototype for future iot projects ordering your own PCB has never been easier before with a lot of features they also have open source community so there are many projects to have a look at find the link in the description okay so here's the human presence radar that I have it's from highlink hlk ld1125h so the Manufacturing Company claims that this radar is able to penetrate objects so in this tutorial we'll be testing this uh it's action interfaced over uart so I'm going to use connect board in order to read data from it the sport I've designed it before in my previous tutorials this board has esp32 S3 and I've also designed this 3D printed case I will insert the radar inside it like this and now we are good to go okay so now let's do the connections and see our setup all right so here's the hardware that we are going to use in this tutorial here I have connect board that I have designed before and it has the esp32 S3 that's deriving this round display over SPI and here of course I'm running lvga library in order to get this nicely looking interface we will have a look at this user interface design in more details uh during this tutorial in addition to that here I have this human presence radar and it's being interfaced over uart it's connected to the uart of the esp32 S3 in order to read the distance and human detection data so actually currently the reader is sending continuous data over uart and the esp32 is printing this data on this display we will be having a test in order to see the limits of this sensor the manufacturer company is claiming that this radar is able to detect objects behind obstacles so we are going to do that so as you can see this radar operates at 24 gigahertz So currently I don't have any functionality for this rotary encoder but in the upcoming tutorial I will be integrating this to the current firmware so I can navigate between the radar interface and the Smartwatch that I've designed before so stay tuned for that part I'm sure that it's going to be quite beneficial for you alright so here's the setup that I'm going to use for a distance measuring test a human behind obstacle test so in this test I will be having an open area for testing around 6 meters starting from this point to that wall so as you can see here I've placed the radar inside this case facing that side so it can detect any Motion in the open area and for the object detection and measuring test I will be using this filament spool and I will roll it in the open area and see the distance measuring on the round display so let's see how it goes [Music] all right okay so in this experiment I'm testing the radar against a door made out of wood and it was actually able to detect me as if there was no obstacle between so I was moving in the open room and it was able to detect me all the time and of course measuring the distance between foreign okay so this time I will be testing the radar against a different obstacle material so here I have a door made out of metal so let's see if it can detect me behind that door during this test I was moving away behind the door until it stops detecting me so here the test was by putting the radar module against the wall to see if it can detect me behind that wall however it was not able to detect any motion even when I was close to the wall on the other side okay so now let's move on to the firmer part of course first of all we need to have a look at the packets that are received over uart from the human detection radar and this is the document of the module that we are using so these are the pins that we have it's supplied by 5 volt ground uart reception and transmission in this tutorial actually I'm not using the reception pin because it can receive commands that can set the radar the output data when it starts detection motion at a specific distance but in this tutorial we are skipping that part so here we can see the packets that are being transmitted from the module we can zoom in so in resist package there are two types of motion here we can see the occurrence packet and the movement packet so the movement packet will be received when the radar will detect an active motion and the occurrence packet will be received when a very slight movement is detected and after the movement type is received we can see the distance and then we can see the value so the radar is actually able to detect movements up to 9 meters and it can detect human presence within 4 meters range which is quite acceptable alright so this is the firmware running on the esp32 S3 it's actually the same one I've used for a smartwatch tutorial but here I have disabled the tasks that are related to mqtt and Wi-Fi and in the lvgl part I've changed the screen in order to print the distance on the round display and added a uart configuration because I need to communicate with the human detection radar so here in the uart reception task I'm actually parsing the data I received from the radar and obtaining both the detected distance and the movement type so let's go inside this function and see how it's implemented so here in the substrate function I'm actually moving this pointer to point at everything after this equal sign so if we have a look at the packets that are being received so this will allow me to point to the value of the distance detected and after that I'm extracting the distance value and transforming it from a string to float type and then I'm converting the value from meters to centimeters and this part is responsible for determining the movement type whether it is active movement or static movement and then this function will return the detected distance value in form of integer so I don't deal with floats and the main code so in case of a real detected distance I'm sending this data to the system queue which on the other hand will be used by the lvjl a task so here I I'm reading the value from the queue and then sending them to the user interface handling function so so if we open this function I'm converting the detected distance to meters and centimeters separately so I can form such a string so I can show it this way on the round display and depending on the detected movement type I'm either showing movement or a static string on the upper side of the display and of course these formed strings are sent to the lvga library so they are printed and depending on the value received from the detected distance I'm changing the arc showing on the screen in order to show how far the detected object is this brings me to the end of this video I will be sharing all the materials related to this tutorial on my GitHub repository so you can play with it or even develop it if you have learned something new from me please like this video share it among your friends and tell them about usotronics see you in the upcoming tutorials and bye bye
Info
Channel: Useful Electronics
Views: 13,413
Rating: undefined out of 5
Keywords: useful electronics, esp32, esp32s3, esp32 tutorial, esp-idf, esp32 programming, esp, esp32 iot, esp32 display, lvgl, esp32 lvgl, esp32 display lcd, esp32 display project, esp32 arduino, esp32 lvgl tutorial, lvgl example, esp32 lvgl esp-idf, esp32 t display, esp32 tft, display, squareline studio, Embedded ui, esp32 round display, human presence sensor, hi link, HLK-LD1125H, ld1125h radar, penetration sensor, esp32 motion sensor, distance sensor, esp32 radar, mmwave sensor
Id: RXj-JX6W-YE
Channel Id: undefined
Length: 9min 22sec (562 seconds)
Published: Sat Aug 05 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.