How nagarjuna282/vehicle_collision_warning_system_using_a_tof_laser_range_sensor_and_ works
This is a BeagleBone Black VL53L0X collision-warning prototype. Its implemented path is Device Tree instantiation, kernel I2C ranging, character-device reads, and a user-space polling display. The README also describes filtering, closing-speed/TTC calculation, and risk classification, but the sampled application only prints measurements; those analytics are shown as documented, unverified capability. Kmemleak material is a separate verification branch. Relationships are based on the README and sampled excerpts; no unsampled source behavior is assumed.
Main entry points: vl53l0x_app.c Collision Analytics · vl53l0x_dt.c Single-Shot Ranging · kmemleak_test.sh Leak Scan · BB-I2C2-VL53L0X-00A0.dts I2C Overlay
Components 17
Hardware Setup
- I2C Overlay
device_tree/BB-I2C2-VL53L0X-00A0.dts
Kernel Sensor Driver
- I2C Probe
driver/vl53l0x_dt.c - Sensor Initialization
driver/vl53l0x_dt.c - Single-Shot Ranging
driver/vl53l0x_dt.c - Error and Range Status
driver/vl53l0x_dt.c - Character Device
driver/vl53l0x_dt.c
User Application
- Measurement Poller
application/vl53l0x_app.c - Distance and Status Output
application/vl53l0x_app.c - Collision Analytics
application/vl53l0x_app.c - Distance Filtering
application/vl53l0x_app.c - Closing Speed and TTC
application/vl53l0x_app.c - Risk Classification
application/vl53l0x_app.c
Leak Verification
- Intentional Leak Module
kenel_memory_leak/driver/memory_leak_driver_code.c - Leak Scan
tests/kmemleak_test.sh
Other components
- Operator
- VL53L0X Sensor
- Kernel Kmemleak
Connections 17
- I2C Overlay → I2C Probe: instantiates device
README.md - VL53L0X Sensor → I2C Probe: I2C response
README.md - I2C Probe → Sensor Initialization: initializes
driver/vl53l0x_dt.c - Sensor Initialization → Single-Shot Ranging: enables ranging
README.md - Single-Shot Ranging → VL53L0X Sensor: reads distance
driver/vl53l0x_dt.c - Single-Shot Ranging → Error and Range Status: handles results
driver/vl53l0x_dt.c - Error and Range Status → Character Device: returns measurement
driver/vl53l0x_dt.c - Character Device → Measurement Poller: serves device reads
README.md - Operator → Measurement Poller: starts polling
README.md - Measurement Poller → Distance and Status Output: prints result
application/vl53l0x_app.c - Measurement Poller → Collision Analytics: may analyze
README.md - Collision Analytics → Distance Filtering: filters distance
README.md - Collision Analytics → Closing Speed and TTC: estimates motion
README.md - Collision Analytics → Risk Classification: classifies risk
README.md - Intentional Leak Module → Kernel Kmemleak: creates detectable leak
kenel_memory_leak/driver/memory_leak_driver_code.c - Operator → Leak Scan: runs verification
README.md - Leak Scan → Kernel Kmemleak: scans allocations
README.md