Skip to content

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

  1. 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).
  2. Motor Control
    • Functions for forward, backward, left, right, and stop.
  3. 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.

Output

Solution

Ultrasonic_Sensor_RGB_Buzzer_OLED