ncmreynolds / ld2410

An Arduino library for the Hi-Link LD2410 24Ghz FMCW radar sensor.
GNU Lesser General Public License v2.1
178 stars 37 forks source link

Mega2560 example code #18

Open Spiridusu opened 11 months ago

Spiridusu commented 11 months ago

Hello. Does anyone have an example code, similar to the basicSensor example, but for the Arduino Mega 2560 using a SoftwareSerial?

tonhuisman commented 11 months ago

Looking at the specs of that Mega 2560, it having 4 HW serial ports, and a meager 16 MHz clock-speed, why would you want to use software serial to achieve the required 256000 baud serial speed? That looks like a silly plan, as a much more stable and performant alternative is available.

Spiridusu commented 11 months ago

I have already used 2 ports with other sensors and I want to connect 4 more sensors.

tonhuisman commented 11 months ago

Are you installing multiple of these LD2410 sensors, or something different, that possibly (read: most likely) uses a lower baud-rate, so that could maybe use SoftwareSerial? (Just trying to find a feasible solution...)

Have you already tried to use SoftwareSerial with this LD2410 sensor? It could work, though I don't know what the load will be...