Using HLK LD2451 radar for speed measurment

Read ok, Data = F8 x = 0
Read ok, Data = F7 x = 1
Read ok, Data = F6 x = 2
Read ok, Data = F5 x = 3
Read ok, Data = F4 J = 1
Read ok, Data = F3 J = 2
Read ok, Data = F2 J = 3
Read ok, Data = F1 J = 4
messagesize 11

1 4 7C <<<<

To better explain: when no object is near I get >>>>> <<<<<< , otherwise far less characters than expected. as >>>> 1 3 FF <<<<

If it can be of help to anyone: in the app connected via Bluetooth the sequence of characters appers to be conformal to the data sheet, however trough serial seems that no very few (and wrong) characters are sent between head and tail.

Has anyone managed to configure this module to get an adequate picture from the radar? I tried using it with the hklink android application, but this is almost chaotically changing data, very rarely coinciding with the position of cars on the road. I tried different settings, but did not get the expected result.

Hi, is a complete mess for me too. The producer's only answers to my email was the manual, which I already have... My attempt to fetch data from serial was exactly because data from app is a mess, but at least seems that the data format is OK, which appears to not be the case in my tests. I'm just guessing: perhaps there are different firmware release with different specs ? The app (at least in my case) is not reporting any available update.

I only tried it with me walking towards the radar.
That is working fine, i get consistent data through serial showing one object traveling towards the radar at 1-5km/h (i dont have enough space to run towards it :slight_smile: )

Hi Dennis, can you share the code ?

The code im using is in the first post. Or do you want me to post the response data from the radar?

Sorry for the misunderstanding: actually the output you're able to intercept. I can get right the header and the tail but in the between either nothing or garbage :frowning:
Look @ post 20 & 21.

Thanks !

Here is some example output from my radar with me walking towards it.

10:37:26.311 -> Messagesize 1:7 Messagesize 2:0
10:37:26.311 -> messageSize = 7
10:37:26.311 -> Data[0] = 1
10:37:26.311 -> Data[1] = 1
10:37:26.311 -> Data[2] = 80
10:37:26.311 -> Data[3] = 3
10:37:26.311 -> Data[4] = 0
10:37:26.311 -> Data[5] = 3
10:37:26.311 -> Data[6] = A0
10:37:26.311 -> Data[7] = F8
10:37:26.359 -> Data[8] = F7
10:37:26.359 -> Data[9] = F6
10:37:26.359 -> Data[10] = F5
10:37:26.406 -> Read ok, Data = F4
10:37:26.406 -> Read ok, Data = F3
10:37:26.406 -> Read ok, Data = F2
10:37:26.406 -> Read ok, Data = F1
10:37:26.406 -> Messagesize 1:7 Messagesize 2:0
10:37:26.406 -> messageSize = 7
10:37:26.406 -> Data[0] = 1
10:37:26.406 -> Data[1] = 1
10:37:26.454 -> Data[2] = 80
10:37:26.454 -> Data[3] = 3
10:37:26.454 -> Data[4] = 0
10:37:26.454 -> Data[5] = 4
10:37:26.454 -> Data[6] = F7
10:37:26.454 -> Data[7] = F8
10:37:26.454 -> Data[8] = 3F
10:37:26.454 -> Data[9] = BF
10:37:26.454 -> Data[10] = FF
10:37:26.501 -> Read ok, Data = F4
10:37:26.501 -> Read ok, Data = F3
10:37:26.501 -> Read ok, Data = F2
10:37:26.501 -> Read ok, Data = F1
10:37:26.501 -> Messagesize 1:7 Messagesize 2:0
10:37:26.501 -> messageSize = 7
10:37:26.501 -> Data[0] = 1
10:37:26.548 -> Data[1] = 1
10:37:26.548 -> Data[2] = 80
10:37:26.548 -> Data[3] = 3
10:37:26.548 -> Data[4] = 0
10:37:26.548 -> Data[5] = 4
10:37:26.548 -> Data[6] = A6
10:37:26.548 -> Data[7] = F8
10:37:26.548 -> Data[8] = F7
10:37:26.548 -> Data[9] = F6
10:37:26.548 -> Data[10] = F5
10:37:26.595 -> Read ok, Data = F4
10:37:26.595 -> Read ok, Data = F3
10:37:26.643 -> Read ok, Data = F2
10:37:26.643 -> Read ok, Data = F1
10:37:26.643 -> Messagesize 1:7 Messagesize 2:0
10:37:26.643 -> messageSize = 7
10:37:26.643 -> Data[0] = 1
10:37:26.643 -> Data[1] = 1
10:37:26.643 -> Data[2] = 80
10:37:26.643 -> Data[3] = 3
10:37:26.643 -> Data[4] = 0
10:37:26.643 -> Data[5] = 4
10:37:26.643 -> Data[6] = FF
10:37:26.643 -> Data[7] = F8
10:37:26.643 -> Data[8] = F7
10:37:26.643 -> Data[9] = F7
10:37:26.643 -> Data[10] = F5

Im using softwareserial at 115k baud but im told this doesnt always work well. I can see that you are using softwareserial aswell. Perhaps try to lower the baudrate using the configuration command for this or use a harware serialport?

Thanks for the answer. I've tried to connect the HW port to the radar and sw serial for debugging. Perhaps the release of the board is different . Also no success connecting a straight serial to a serial monitor. Wich Arduino you used ? I did try with UNO and ESP8266 but no way. What puzzles me is that I consistently get Head & Tail perfectly but not the same amount of data that you get.

Im using a regular unbranded UNO compatible board. Im guessing that your radar is defective in some way.

hay i am also working on this sensor to use it with esphome using esp32, can u please share your code and wiring diagram with me.. it may help me

The code is in the thread start.
Just connect radar TX pin to pin 2 on arduino and radar RX pin to arduino pin 3.

5v and GND is self explanatory.

1 Like

Hi, mybe mine are with a faulty firmware release. May I aske where did you get them so I get the same module ? Thanks !

Sure, i got mine of AliExpress. From this store:
https://vi.aliexpress.com/item/1005007400649760.html?spm=a2g0o.order_list.order_list_main.41.35de1802V6WZnU&gatewayAdapt=glo2vnm

Thanks, I've used the "official: site of the producer, how is it possible that your is "better" ? I'm getting crazy !

https://vi.aliexpress.com/item/1005007301556986.html?pdp_npi=4%40dis!EUR!€%208%2C21!€%208%2C21!!!8.26!8.26!%40211b6f0717371531556647673de90f!12000040128370532!sh01!IT!128504923!X&spm=a2g0o.store_pc_home.productList_2009884228446.1005007301556986&gatewayAdapt=glo2vnm

BTW, the bluetooth app reports v 1.09.24101417 . device HLK-LD2451_AD95 . What about yours ???

Mine is 1.07.24072217
HLK-LD2451_69E8