This is a work-in-progress project, born from my original concept and rapidly implemented. It’s my hope that you find inspiration in this endeavor and feel motivated to enhance and evolve it further. I look forward to seeing how the community can transform this into an even more extraordinary and marvelous project.
(*chatgpt )
The goal is to automate based on predicting user behaviors.
Assumptions:
- Calculating motion vectors to determine the direction in which a person is moving.
- Predicting behaviors based on tracking the trajectory of movement, likely using a neural network.
- The ability to create zones and triggers, such as circles or polygons.
- The option to expand the system with sensors monitoring breathing, heart rate, and heartbeat, which can be particularly useful in caring for infants and the elderly.
- Minimizing delays in the system’s response.
- A simple tracking algorithm for assigning unique identifiers (IDs) to tracked individuals.
Challenges and Problems:
- Calibration of sensors relative to each other is time-consuming and cumbersome.
- Blind spots within the sensor range can lead to calibration loss.
- Detectors sometimes return distorted data, resulting in a “warped” Cartesian system.
Solutions:
- Using a custom UART controller, bypassing HA. The controller serializes data into JSON format to reduce database load and minimize delays. Only then do the triggers return information to the sensors in HA.
- Combining ld2410+ld2450, as seen in the attached photo, increases the efficiency of detecting the presence of people and static objects.
- To limit noise, points are filtered only to the area they cover (defined by the user). The idea is to prevent reflections from, for example, the front of a refrigerator from misleading the system.
How does it work?
- For each sensor, I adjust the Cartesian system by rotating and shifting it.
- Data from the sensors are streamed.
- For each returned point, I search for the nearest point with an assigned ID. This process takes into account the speed and direction of the object’s movement.
- Checking if an object is within a polygon or within a point’s radius, then sending a trigger.
The LD2461s are arriving in January, and it’s going to be fun