Tesla blinker
Control the blinker lights of a Tesla model 3 Highland with gestures
How gesture detection works: The Vl53L7CX sensor is connected via I2C and interrupt to the STM32F401 board. When a threshold is reached in a zone the sensor send interrupt signals and the detection algorithm can start. The STM32F401 starts to receive measurements of the tof zones. When 2 horizontal virtual zones are crossed this detects an upward/downward movement. For this detection to happen fast enough the sensor zones has to be scanned at 30 Hz. The software is setup a state machine:
GESTURE_STATE_TRACK ==> Tracking the movement
GESTURE_UP
GESTURE_DOWN
https://github.com/user-attachments/assets/3f844df6-d86f-4fa8-8943-76a7297d0469
https://github.com/user-attachments/assets/6f33676a-7c70-4880-a525-950e92ba5b38
https://github.com/user-attachments/assets/bca40b13-84a1-4f48-908f-f1100396e0e3
The source code of the project is on Github: https://github.com/ginodecock/TeslaBlinker
When driving by enhanced autopilot the blinker controls not just control the blinker lights but also your lane changing. When blinker control is done with this project you actually are driving by gestures. I can say, driving to work this morning made driving a new fun experience

Updates from the author