Seeking Library or Example Code for XM125 Radar Sensor with Arduino for Parked Vehicle Detection

Hello SparkFun Community,

I am currently working on a project that involves using the XM125 radar sensor for detecting parked vehicles. I am using the Arduino platform for this project, but I have encountered some challenges.

Most of the available resources and libraries I’ve found are tailored for Python rather than Arduino. I am looking for a specific library or example code that can facilitate the integration of the XM125 sensor with an Arduino for the parked vehicle detection.

If anyone has experience with the XM125 radar sensor and Arduino for the detection of parked vehicle, or if there are any existing libraries or code examples available, I would greatly appreciate your assistance.

This was the very first hit in a web search for “arduino xm125”. I’m surprised you missed it.

this includes only sfeQwiicXM125.cpp and header file which works fine for distance and presence detection.
But i am looking for parked vehicle detection with obstruction enabled which doesn’t seem to have on arduino library.
<class acconeer.exptool.a121.algo.parking._ref_app.RefAppConfig(*** , range_start_m: float = 0.3 , range_end_m: float = 1.5 , hwaas: int = 32 , profile=Profile.PROFILE_2 , update_rate: float = 10.0 , queue_length_n: int = 5 , amplitude_threshold: float = 15.0 , weighted_distance_threshold_m: float = 0.1 , signature_similarity_threshold: float | None = 60.0 , obstruction_detection: bool = False , obstruction_distance_threshold: float = 0.06 , obstruction_start_m: float = 0.03 , obstruction_end_m: float = 0.05 )>

I would not expect example code to cover such a specific application as “parked vehicle detection”, since the criteria will depend heavily on circumstances.

You would undoubtedly have to change anything you find, so you might as well write your own code.