LD2420 is working only in ASCII mode

Viewed 42

Hi
I had purchased a LD2420 sensor
I had connected it to ESP32 as per the sketch shown in https://github.com/cyrixninja/LD2420. But I understand that my sensor is working only in ASCII mode and not in binary mode. Because of this
the existing libraries are not able to process the data. Also I understand that the firmware running on my sensor is Version 1.0.0.

Is there a way to upgrade the firmware to the latest version so that I can use this sensor and complete my design

Another problem is when I communicate with sensor using the following sketch
#define RX_PIN 16 // LD2420 TX -> ESP32 RX
#define TX_PIN 17 // LD2420 RX -> ESP32 TX

void setup() {
Serial.begin(115200);
Serial2.begin(115200, SERIAL_8N1, RX_PIN, TX_PIN);
}

void loop()
{
if (Serial2.available())
{
String line = Serial2.readStringUntil('\n');
line.trim();
Serial.println(line);

}
}

I see that sensor is always showing Human presence even when no human is around. Is there a way to resolve this problem

Regards
Girish

2 Answers

Hello Girish, thank you for your feedback.the latest firmware is V1.6.1, which can be upgraded through the OTA serial port of the upper computer.
Could you pls send a email to me, then i will send you the newest firmware and the upgrade way.
My email: info@hlktech.com

Hi
Thanks a lot for your response.
Can you pls share the link to your GitHub where the arduino/ESP32 libraries are stored

Regards
Girish

Hello, sorry for the inconvenient, we haven't the official GitHub account for arduino/ESP32 libraries, so we can not to share this, wish you can understand.

Related