How azzmou/smart-mobile-base-ai works
This is a two-controller mobile robot: the Raspberry Pi captures video, tracks a target in either HSV color or EfficientDet-Lite0 mode, and sends movement commands to an Arduino; the Arduino handles motors and ultrasonic safety. The shown Python excerpt supports the vision, decision, and serial relationships. The Arduino source is present in the tree but unsampled, so its internal behavior and the protocol’s implementation are not expanded.
Main entry points: robot_finale.py Runtime entry · motor_controller.ino Arduino controller
Components 11
Vision and tracking
- Runtime entry
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Hybrid tracker
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - HSV tracking
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - EfficientDet detection
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Detection visualization
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py
Robot control
- Motion decision
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Serial link
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Arduino controller
OneDrive/Desktop/smart-mobile-base-ai/src/motor_control/motor_controller.ino - Motors and sensors
Other components
- Operator
- USB webcam
Connections 12
- Operator → Runtime entry: selects mode
README.md - USB webcam → Runtime entry: provides frames
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Runtime entry → Hybrid tracker: initializes and calls
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Hybrid tracker → HSV tracking: dispatches color mode
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Hybrid tracker → EfficientDet detection: dispatches ML mode
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - HSV tracking → Detection visualization: draws tracking
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - EfficientDet detection → Detection visualization: draws detections
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Runtime entry → Motion decision: passes target result
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Motion decision → Serial link: sends movement commands
OneDrive/Desktop/smart-mobile-base-ai/src/vision_ai/robot_finale.py - Serial link → Arduino controller: transfers commands
README.md - Arduino controller → Serial link: reports obstacle
- Arduino controller → Motors and sensors: controls and senses