For anybody reading the comments; you don’t necessarily need the ESP unless you are doing some automation like timing, logging etc. the sensor can be wired directly to a relay to turn on/off a light or power to a device when presence is detected. The motion sensor (HLK-LD2410C) can be fine tuned via Bluetooth. Read the manufacturer description on how to adjust settings such as distance, field of view, delay.
Good Video. I use these all over my house with Home Assistant and ESPHome. They work very well for presence detecting. The ESPHome code i use set's up zones (3 in fact) so it can be triggered based on the zone (distance) you are from the sensor. I use them to turn on and keep lights on in a room. They work well with the BH1750 light/lux sensor to know when to turn a light on or not based on motion and how much light is currently in the room.
@@marinehm I see the 5v units actuall have a linear voltage regulator to drop it to 3.3. I use the 5v version for units that are constantly powered, but for battery units, the wasted power is detrimental, even a couple of milliamps shortens battery life a lot.
I haven't personally used it but you can use the OUT pin directly to trigger a relay without any microcontroller in between. Make sure that the relay is rated for the voltage or to be safe, you can use a transistor.
Hi there, would you recommend these to avoid false positive alarms? I'm using ZY-M100 Tuya linked to home assistant but having huge amount of false positive alarm. To avoid that I have linked 2 sensors but still now and then I'm having false positive. Main use of this is to detected human when comes to terrace. That is how I stumble upon your video of using HC-SR04 and ESP8266 so idea is to implement that as well, which I did, but now with median filter I'm getting false negative :D And if I turn off filter there are to many spike values from HC-SR04. To sum it all, what would you advise to use in such application? Considering that you have implemented all possible solutions, presence sensor, ultrasonic and laser(VL53L0x) what would you advise to use and in what combination? Many thanks...
Can you elaborate a bit more on what you actually need to detect? Just movement or sitting presence as well? Right now, it sounds like a simple PIR might do the trick for you.
Could we use this outdoors say for instance to turn porch or patio lights on? I guess the real question is how well does it perform outdoors and can we enclose it in something for protection from the environment?
It would not be good to use outdoors as it's motion based, so anything moving such as a tree limb blowing in the wind, trash of any type, dogs, cats, birds, incest's, will trigger it.
dear sir i m using HLK-LD2020 basic model cant work so you can help me on code with arduino uno board .but now i m testing with esp32 .everting is ok like wiring with esp32 but the error is "Failed to communicate with the sensor "
Hey, I'm not aware of LD2020 version. A common mistake is to not have Rx nad Tx reversed on the board so please check that and also make sure to use correct pin numbers or GPIO numbers.
Thanks! Sure you can. The sensor uses UART so look for examples on how to setup UART on the RPi. I haven't connected it personally but should be fairly easy.
I'm actually working on connecting this sensor to a pico w. Would love to hear if you got this working. I'm struggling a bit with the gates/sensitivity and getting false positives...
@@Unrealizedlosses What is triggering the sensor? Try averaging the values before reacting so you can filter out false positives. I did not worked much with the sensor beyond the demo but during that initial testing the readouts were quite good.
Is it possible to see distance in mm? Or isn't it accurate enough. I'm trying to measure distance to moving strip. Think this can be a solution since the environment is bad. With smoke and mist.
Just considering that a human is quite large, measuring to a mm precision is not really that viable. Laser distance measuring might be a better option but if the environment is bad you might not be able to use that. Can it be enough that you know the movement in the ballpark? Why it needs to be that precise?
Sorry, I thought I already had that in the description 😅 I added it now, but here it is as well: www.tastethecode.com/human-presence-detection-with-millimeter-wave-sensors
These are nice sensors. The only drawbacks are that they use a lot of current when compared to PIR sensors and cost quite a bit more. If you are not running on batteries, they can be a nice option. Does anyone know if they are FCC type accepted for use in a potential product?
I found this useful, but one thing this didn't clear is that will the mmWave detect any object other than humans that might be sensitive. I want to use this in a store room automation prototype, and there may be many things in the store eoom, so i want to know about the false reading probability
When I tested it, it wasn't detecting my chair if I was not sitting in it. I'm not sure about the technical details of how it does it but it should be ok.
@@Maharishi. It will detect any movement, so pets or a fan can trigger it. When it detects something "stationary" it simply means it is only moving very small amounts (such as breathing). There are even more sensitive mmwave devices (60GHz) that can detect heart rate.
@@TasteTheCode Consider this... a microwave oven operates at 2.4ghz... and wifi is around the same freq. With blood cancer being the most common cancer in children, and microwave ovens are cooking food by effecting water molecules in our food... what do you think wifi is doing to our blood? Now... bump that freq up 90% and you have a wide range of additional problems, and if it gets up to the 60 range, than you have oxygen issues to worry about... so i'd suggest even if you go through airport don't have them radiate your cells with this non-sense mmw device which runs at 30ghz+ you can always request a pat-down which is radiation free and doesn't dysregulate your cells, blood and promote inflammation, oxidative stress, and more... there is much more to this, but to avoid censorship i better refrain from saying too much in a comment because yt often deletes my comments w/ various topics
@@TasteTheCode So its really not a "smart home" if you keep adding more and more devices on wifi... you are going to end up causing focus issues, and a wide range of additional problems requiring your body to detox more often, and add additional burden to your immune system, which isn't even being taught correctly in med school. so most doc's are clueless on how to actually regulate the body and its setup that way
@@TasteTheCode Radiation from wireless technology affects the blood, the heart, and the autonomic nervous system “Exposure to electrosmog generated by electric, electronic, and wireless technology is accelerating to the point that a portion of the population is experiencing adverse reactions when they are exposed. The symptoms of electrohypersensitivity (EHS), best described as rapid aging syndrome, experienced by adults and children resemble symptoms experienced by radar operators in the 1940s to the 1960s and are well described in the literature. An increasingly common response includes clumping (rouleau formation) of the red blood cells, heart palpitations, pain or pressure in the chest accompanied by anxiety, and an upregulation of the sympathetic nervous system coincident with a downregulation of the parasympathetic nervous system typical of the "fight-or-flight" response. Provocation studies presented in this article demonstrate that the response to electrosmog is physiologic and not psychosomatic. Those who experience prolonged and severe EHS may develop psychological problems as a consequence of their inability to work, their limited ability to travel in our highly technological environment, and the social stigma that their symptoms are imagined rather than real.” pubmed.ncbi.nlm.nih.gov/24192494/
@@TasteTheCode “Cancer was first associated with exposure to electromagnetic fields (EMF) in 1979 when Wertheimer and Leeper reported that children dying from cancer resided more often in homes believed to be exposed to higher EMF than did healthy control children”... pubmed.ncbi.nlm.nih.gov/1626106/
For anybody reading the comments; you don’t necessarily need the ESP unless you are doing some automation like timing, logging etc. the sensor can be wired directly to a relay to turn on/off a light or power to a device when presence is detected. The motion sensor (HLK-LD2410C) can be fine tuned via Bluetooth. Read the manufacturer description on how to adjust settings such as distance, field of view, delay.
Thanks for the input!
Good Video. I use these all over my house with Home Assistant and ESPHome. They work very well for presence detecting. The ESPHome code i use set's up zones (3 in fact) so it can be triggered based on the zone (distance) you are from the sensor. I use them to turn on and keep lights on in a room. They work well with the BH1750 light/lux sensor to know when to turn a light on or not based on motion and how much light is currently in the room.
Thanks for sharing!
I've used the BLE version, but you cleared up the use of the 2410. Thanks. I prefer the 3.3v version without BLE.
Thanks! I haven't looked at the BLE options but I might give it a go just to see how it works.
Hey, I’m just curious as to why you prefer the 3V version without BLE?
@@marinehm I see the 5v units actuall have a linear voltage regulator to drop it to 3.3. I use the 5v version for units that are constantly powered, but for battery units, the wasted power is detrimental, even a couple of milliamps shortens battery life a lot.
Excellent vid, have liked & subbed !
Thanks!
Thanks for this tutorial 👌
My pleasure 😊
Thank You
👍👍👍
Would this sensor catch movement behind a light glass / plastic shower door? My PIR sensors don't register such movement.
Hmmm not sure, I guess it might but I can't confirm.
is there any mmwave sensor can use without esp series for triggering relay like HC-SR501 PIR motion sensor
I haven't personally used it but you can use the OUT pin directly to trigger a relay without any microcontroller in between. Make sure that the relay is rated for the voltage or to be safe, you can use a transistor.
Hi there, would you recommend these to avoid false positive alarms? I'm using ZY-M100 Tuya linked to home assistant but having huge amount of false positive alarm. To avoid that I have linked 2 sensors but still now and then I'm having false positive. Main use of this is to detected human when comes to terrace. That is how I stumble upon your video of using HC-SR04 and ESP8266 so idea is to implement that as well, which I did, but now with median filter I'm getting false negative :D And if I turn off filter there are to many spike values from HC-SR04. To sum it all, what would you advise to use in such application? Considering that you have implemented all possible solutions, presence sensor, ultrasonic and laser(VL53L0x) what would you advise to use and in what combination? Many thanks...
Can you elaborate a bit more on what you actually need to detect? Just movement or sitting presence as well? Right now, it sounds like a simple PIR might do the trick for you.
Could we use this outdoors say for instance to turn porch or patio lights on? I guess the real question is how well does it perform outdoors and can we enclose it in something for protection from the environment?
It would not be good to use outdoors as it's motion based, so anything moving such as a tree limb blowing in the wind, trash of any type, dogs, cats, birds, incest's, will trigger it.
There is nothing preventing the sensor to be used outdoors. As long as there is an appropriate enclosure to shield it from the rain it should be OK.
dear sir i m using HLK-LD2020 basic model cant work so you can help me on code with arduino uno board .but now i m testing with esp32 .everting is ok like wiring with esp32 but the error is "Failed to communicate with the sensor "
Hey, I'm not aware of LD2020 version. A common mistake is to not have Rx nad Tx reversed on the board so please check that and also make sure to use correct pin numbers or GPIO numbers.
Thank you for sharing .
You are welcome!
🙏 HLK-LD1125H-24G please for ESP32 idramirezs
This should be exactly as shown in the video. It as well uses serial communication.
Good video. May I know is it ok for me to connect the sensor to Raspberry Pi. I am figuring out how can I use the raspberry pi to control it.
Thanks! Sure you can. The sensor uses UART so look for examples on how to setup UART on the RPi. I haven't connected it personally but should be fairly easy.
I'm actually working on connecting this sensor to a pico w. Would love to hear if you got this working. I'm struggling a bit with the gates/sensitivity and getting false positives...
@@Unrealizedlosses What is triggering the sensor? Try averaging the values before reacting so you can filter out false positives. I did not worked much with the sensor beyond the demo but during that initial testing the readouts were quite good.
If you get the BLE version you dont need a esp, it just popup in Home Assistant.
Thanks for pointing that out. I think I do have the BLE version but I do not have BLE enabled in Home Assistant. Maybe I'll try it out. 👍
Is it possible to see distance in mm? Or isn't it accurate enough. I'm trying to measure distance to moving strip.
Think this can be a solution since the environment is bad. With smoke and mist.
Just considering that a human is quite large, measuring to a mm precision is not really that viable. Laser distance measuring might be a better option but if the environment is bad you might not be able to use that. Can it be enough that you know the movement in the ballpark? Why it needs to be that precise?
Hey, can you share code which you dumped to esp32?
Sorry, I thought I already had that in the description 😅 I added it now, but here it is as well: www.tastethecode.com/human-presence-detection-with-millimeter-wave-sensors
@@TasteTheCode Thank you
Hey is there any tutorial for connecting esp to home assistant?
Yes, I have several projects where I connect it using ESPHome
@@TasteTheCode Thanks
These are nice sensors. The only drawbacks are that they use a lot of current when compared to PIR sensors and cost quite a bit more. If you are not running on batteries, they can be a nice option. Does anyone know if they are FCC type accepted for use in a potential product?
I don't know for sure about FCC but I've seen them in products already. The Aqara fp2 is an example.
Isn't the ESP32 3.3v whilst the LD2410 5v?
Yes, the power input is 5V but the logic output is 3.3V. So the power pin is connected to the Vin pin on the ESP.
Anyone know if you can use 2 or more in the same room, or do they upset each other.
Not sure, I haven't tried to have more than one in the same room at once.
I can't wait till all you guys get your hands on neuralink ❤❤❤❤❤❤❤
what is wrong with you?
Huh?!?!?
I found this useful, but one thing this didn't clear is that will the mmWave detect any object other than humans that might be sensitive. I want to use this in a store room automation prototype, and there may be many things in the store eoom, so i want to know about the false reading probability
What else might be moving there except from humans? Even if there are a lot of stuff inside, things don't move on their own.
@@TasteTheCode this sensor can detect stationary target, so i don't want any of the stored products to be falsely detected as a stationary human
When I tested it, it wasn't detecting my chair if I was not sitting in it. I'm not sure about the technical details of how it does it but it should be ok.
@@TasteTheCode thank you, atleast it doesn't detect regular furniture as targets, and if it does detect other products, I'll manage it
@@Maharishi. It will detect any movement, so pets or a fan can trigger it. When it detects something "stationary" it simply means it is only moving very small amounts (such as breathing). There are even more sensitive mmwave devices (60GHz) that can detect heart rate.
Is this sensor detects only human or it will detect animal also?
No idea, I don't have any animals to test with but I guess it might.
Animals yes. According to the documentation "moving curtains" and "plants moving with AC or whatever" could also confuse the unit
@@Unrealizedlosses Thanks for sharing!
This is motion detection, not presence.
The sensor will detect you even if you are stationary.
@TasteTheCode tried it. Not really. It's still based on motion, even if tiny one.
You get two values, one if a motion and another if just presence is detected. Even if someone is sleeping in the room, you can know.
I wouldn't put this in your home.. extremely toxic
Toxic? How is it toxic? Can you please elaborate?
@@TasteTheCode Consider this... a microwave oven operates at 2.4ghz... and wifi is around the same freq. With blood cancer being the most common cancer in children, and microwave ovens are cooking food by effecting water molecules in our food... what do you think wifi is doing to our blood? Now... bump that freq up 90% and you have a wide range of additional problems, and if it gets up to the 60 range, than you have oxygen issues to worry about... so i'd suggest even if you go through airport don't have them radiate your cells with this non-sense mmw device which runs at 30ghz+ you can always request a pat-down which is radiation free and doesn't dysregulate your cells, blood and promote inflammation, oxidative stress, and more... there is much more to this, but to avoid censorship i better refrain from saying too much in a comment because yt often deletes my comments w/ various topics
@@TasteTheCode So its really not a "smart home" if you keep adding more and more devices on wifi... you are going to end up causing focus issues, and a wide range of additional problems requiring your body to detox more often, and add additional burden to your immune system, which isn't even being taught correctly in med school. so most doc's are clueless on how to actually regulate the body and its setup that way
@@TasteTheCode Radiation from wireless technology affects the blood, the heart, and the autonomic nervous system
“Exposure to electrosmog generated by electric, electronic, and wireless technology is accelerating to the point that a portion of the population is experiencing adverse reactions when they are exposed. The symptoms of electrohypersensitivity (EHS), best described as rapid aging syndrome, experienced by adults and children resemble symptoms experienced by radar operators in the 1940s to the 1960s and are well described in the literature. An increasingly common response includes clumping (rouleau formation) of the red blood cells, heart palpitations, pain or pressure in the chest accompanied by anxiety, and an upregulation of the sympathetic nervous system coincident with a downregulation of the parasympathetic nervous system typical of the "fight-or-flight" response. Provocation studies presented in this article demonstrate that the response to electrosmog is physiologic and not psychosomatic. Those who experience prolonged and severe EHS may develop psychological problems as a consequence of their inability to work, their limited ability to travel in our highly technological environment, and the social stigma that their symptoms are imagined rather than real.”
pubmed.ncbi.nlm.nih.gov/24192494/
@@TasteTheCode “Cancer was first associated with exposure to electromagnetic fields (EMF) in 1979 when Wertheimer and Leeper reported that children dying from cancer resided more often in homes believed to be exposed to higher EMF than did healthy control children”...
pubmed.ncbi.nlm.nih.gov/1626106/