Iclegend S3KM1110 mmWave sensor
Overview
This sample fetches data from a iclegend,s3km1110 sensor and prints:
Occupancy and “target status” by reading the
SENSOR_CHAN_PROXstandard channel, as well as theSENSOR_CHAN_S3KM1110_TARGET_STATUScustom channel which provides additional information regarding the detected presence (static, moving, or both).Detection distance using the
SENSOR_CHAN_DISTANCEstandard channel, moving-target and static-target distances using theSENSOR_CHAN_S3KM1110_MOVING_DISTANCEandSENSOR_CHAN_S3KM1110_STATIC_DISTANCEcustom channels respectively.Energy of moving and static targets using the
SENSOR_CHAN_S3KM1110_MOVING_ENERGYandSENSOR_CHAN_S3KM1110_STATIC_ENERGYcustom channels respectively.
Building and Running
Build for a XIAO board with the Seeed Studio 24GHz mmWave Sensor for XIAO:
# From the root of the zephyr repository
west build -b xiao_esp32c6/esp32c6/hpcore --shield seeed_xiao_hsp24 samples/sensor/s3km1110
west flash
Sample Output
mmWave Sensor Report
====================
Presence occupied
Target Static target
Distances
*********
Detection 0.390 m
Moving target 0.630 m
Static target 0.630 m
Energies
********
Moving 0%
Static 80%