|
LD2410Async
Asynchronous Arduino ESP32 library for the LD2410 mmWave radar sensor
|
The LD2410 sensor supports several operation modes, each with different behavior and purpose.
In normal detection mode the sensor automatically transmits new detection data, usually several times per second.
The transmitted data includes:
Detection state is the most relevant. It can have the following values:
Unless auto config has been explicitly triggered, only the values 0-3 occur.
All detection data is represented in the DetectionData struct, which also includes an engineeringMode flag that indicates whether engineering data fields in the struct are valid.
Engineering mode behaves similar to normal detection mode but provides additional data for detailed analysis:
This mode allows deeper inspection of what the sensor is detecting. The extended data is also part of the DetectionData struct and can be distinguished using its engineeringMode flag.
To control engineering mode:
To check whether engineering mode is currently active:
Configuration mode is required to send configuration commands to the sensor.
All commands in the LD2410Async library automatically handle enabling and disabling config mode as needed.
Because entering config mode can take significant time (120-3300 ms) and may occasionally fail and then requiring retries (handled internally), it can be more efficient to explicitly control config mode when sending multiple commands in sequence. In this case:
To check whether config mode is currently active: