Appearance
Task 5 - Make a Simple Colorful Obstacle Avoidance Alphabot with RGB and display condition of Alphabot in OLED Display
Task
Make a Simple Colorful Obstacle Avoidance Alphabot with RGB and display condition of Alphabot in OLED Display
Functions To Do
- Ultrasonic Obstacle Detection
- If an obstacle is ≤ 20 cm, the robot stops, turns right (with a beep and red LEDs).
- If the obstacle is 20–35 cm, it moves forward cautiously (yellow LEDs).
- If no obstacle (> 35 cm), it moves forward freely (green LEDs).
- Motor Control
- Functions for forward, backward, left, right, and stop.
- Visual & Audio Feedback
- RGB LEDs (NeoPixel) change color based on distance (red/yellow/green/blue).
- Buzzer beeps when avoiding obstacles.
- OLED Display shows distance and robot status.