Support for HLK-LD2410 in latest Tasmota (missing the documentation) #17555
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 81 replies
-
You need your own build to enable this optional feature, |
Beta Was this translation helpful? Give feedback.
-
Hi, I did my own build, connected TX and RX wires to RX and TX on WEMOS, but get no values.
Are GPIO1 and GPIO3 OK or do I have to choose some other GPIO?
![image](https://user-images.githubusercontent.com/36878607/210136365-852b2e20-4e3a-4cbe-9cd4-67e45bab4b1c.png)
![image](https://user-images.githubusercontent.com/36878607/210136369-40814830-b9e0-402a-99fb-cd8a2053b22c.png)
|
Beta Was this translation helpful? Give feedback.
-
Try swapping the wires. Sometime there is ambiguity if TX/RX are meant from the ESP or the sensor point of view |
Beta Was this translation helpful? Give feedback.
-
Swapped the wires now it works. |
Beta Was this translation helpful? Give feedback.
-
as as replacment for compiling maybe the all-sensors.bin includes this new sensor? the webinstaller has the allsensor.bin |
Beta Was this translation helpful? Give feedback.
-
I did add the edit: i know i'm not supposed to change any env apart from tasmota and tasmota32 but i can't get platformio to use the right board when im using these enviroments |
Beta Was this translation helpful? Give feedback.
-
Hi, any idea how to use those distance values in rules? |
Beta Was this translation helpful? Give feedback.
-
I already did my build and have it configured. But the values are always 0. |
Beta Was this translation helpful? Give feedback.
-
Hi. Today I built a custom firmware using the line below: #ifndef USE_LD2410 // Human Presence detector It all works, it will send the distance values to MQTT. But it will not send null (0.0) values to MQTT. So when I leave the room the Tasmota GUI will show 0.0 cm, but 0.0 will not be sent to MQTT. MQTT keeps the earlier value until the 5-min refresh state cycle hits. Any suggestions? Thank you |
Beta Was this translation helpful? Give feedback.
-
Yes, you are correct. It seems I have to set up a rule that whenever the value changes it should publish an MQTT topic. Will look into it. Thank you Br, |
Beta Was this translation helpful? Give feedback.
-
Hi, if anyone could help. I tried using the tasmocompiler on gitpod to make my custom build, using an ESP-WROOM-32, so on boards i selected ESP32 Generic. On step 4 i added the following
as suggested earlier.
but nothing seems to work. I am using the Tasmota Web Flasher to flash the custom firmware, and it goes well, it erases and fully install the firmware. |
Beta Was this translation helpful? Give feedback.
-
Hi, since distance detection 0 (no presence) doesn’t get published instantly. I noticed it took almost 4-5 minutes |
Beta Was this translation helpful? Give feedback.
-
Dear All,
So, how can I put these in the step 4 (I am using TasmoCompiler) |
Beta Was this translation helpful? Give feedback.
-
I am trying to get a LD2410B working with no luck: https://vi.aliexpress.com/item/1005007139061447.html? Is the following wiring and configuration correct? |
Beta Was this translation helpful? Give feedback.
-
I thought of adding the following also in to the discussion if somebody might find it useful. My first unit of LD2410B became faulty due to a mistake by me and had to wait until newly ordered units arrived. I have setup a ESP-01 based prototype for my further testing. I am looking for a small enclosure to fit this in.| Basically I have used following to quickly build the prototype.
ESP-01 has only 4 x GPIO's exposed and were connected as follows:
Since I have pin headers to connect GPIO0 & GPIO2, instead of the LED a buzzer module can also be plugged in here. Also we can use the For example to retrieve the firmware version:
I have tried few other commands and the responses get displayed when in Weblog 4 level. The last line which shows the Firmware version in human readable form comes from the driver itself when the response is received. |
Beta Was this translation helpful? Give feedback.
-
Here is a summary of what I have done to get the output like this ie. the sensitivity setting vs actual detected levels at each distance point
Activate the Engineering Mode by issuing commands (this can be done manually also)
Periodically issue the command to capture the sensitivity settings
Grab the data from E section:
Draw the Google Chart in the W section
Console output:
|
Beta Was this translation helpful? Give feedback.
-
Like many others I can't seem to get my LD2410 working. I compiled 3 different bins, first one using these settings 2nd with these settings 3rd with these settings (I copied code just as above, with some lines indented in once place) I am putting these settings in user_config_override.h file I am guessing the compiling did work since when I flashed the bins when I go to configure the module I can select LD2410rx/tx for my pins. I set Tx pin as LD2410tx and Rx pin as LD2410rx When I restart the tasmota on top I get this Tasmota I then went back to configure module, and I swapped the pins, so the TX pin got LD2410 Rx and Rx pin got LD2410 Tx, rebooted tasmota and got same result as above. Somewhere someone mentioned that power might be the issue as some china d1 minis (what I use) don't have enough power. I do have the HLK app that connects via bluetooth to the sensor, and I confirmed senor itself is working fine as I am able to access it via bluetooth and the readings are good. Tomorrow I plan to set up another d1 mini and another sensor, to see if the issue is with one of the hardwares, but I am leaning towards it not being the case. I did make sure there is continuity between the jumper cables. What else could I try? Or what am I missing? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
You need your own build to enable this optional feature,
USE_LD2410
. Once you have that, the gpio configuration gets specific tx/rx pins for LD2410, and of course connect them to the board.