How binh705-engineer/camera-obstacle-avoidance-robot works
This repository is a camera-guided obstacle-avoidance robot: the desktop app displays a camera feed, lets the operator select an obstacle color, estimates obstacle density across three image regions, chooses a movement state, and sends motor commands. The Python excerpt documents the ESP32-CAM and motor-controller firmware roles and their connection. The firmware files are present in the tree but were not excerpted, so their internal behavior is not expanded here; the empty README provides no additional evidence.
Main entry points: algo_v7_v3.py Obstacle vision · code_camv2.ino ESP32-CAM firmware · dk_dong_co_wifi_v3.ino Motor Wi-Fi firmware
Components 9
Desktop controller
- Controller UI
algo_v7_v3.py - Robot link
algo_v7_v3.py - Run logging
algo_v7_v3.py
Vision and navigation
- Camera stream
algo_v7_v3.py - Obstacle vision
algo_v7_v3.py - Avoidance states
algo_v7_v3.py
Robot firmware
- ESP32-CAM firmware
code_camv2/code_camv2.ino - Motor Wi-Fi firmware
dk_dong_co_wifi_v3/dk_dong_co_wifi_v3.ino
Other components
- Operator
Connections 9
- Operator → Controller UI: selects obstacle
algo_v7_v3.py - ESP32-CAM firmware → Camera stream: provides video
algo_v7_v3.py - Camera stream → Obstacle vision: supplies frames
algo_v7_v3.py - Controller UI → Obstacle vision: processes frames
algo_v7_v3.py - Obstacle vision → Avoidance states: passes densities
algo_v7_v3.py - Obstacle vision → Robot link: sends motor commands
algo_v7_v3.py - Robot link → Motor Wi-Fi firmware: HTTP drive commands
algo_v7_v3.py - Obstacle vision → Controller UI: updates display
algo_v7_v3.py - Controller UI → Run logging: writes run data
algo_v7_v3.py