How do-gongil/vl53l8cx-tof works
This repository is an ESP32-S3 firmware and PC viewer for live 8×8 VL53L8CX distance measurements. The main workflow acquires sensor data over I2C, emits one serial frame per measurement, then reads, validates, and displays the latest valid frame as a heatmap. The viewer also reports status lines and marks invalid cells. Relationships are supported by the sampled firmware and viewer source and the README; build, test, and demo assets are omitted.
Main entry points: tof_viewer.py Read serial frames · main.cpp Acquire measurements
Components 7
Sensor firmware
- Acquire measurements
src/main.cpp - Serialize frames
src/main.cpp
Viewer input
- Read serial frames
tools/tof_viewer.py - Validate frame
tools/tof_viewer.py
Viewer display
- Render heatmap
tools/tof_viewer.py
Other components
- VL53L8CX sensor
- Viewer user
Connections 6
- VL53L8CX sensor → Acquire measurements: provides readings
README.md - Acquire measurements → Serialize frames: formats measurements
src/main.cpp - Serialize frames → Read serial frames: streams frames
README.md - Viewer user → Read serial frames: starts viewer
README.md - Read serial frames → Validate frame: validates lines
tools/tof_viewer.py - Validate frame → Render heatmap: updates display
tools/tof_viewer.py