Project Simple Robot: An Autonomous AI Exploration Robot
1. Project Overview
Traditionally, the way robots move towards a certain location or object is through specifying the geometric coordinates that it can use and follow. Now with the help of object detection models, we can instead accomplish this through relatively straightforward means such as stating the name of an object to be used as a movement command instead. The goal of this project is to create an AI robot that can explore a given environment autonomously to carry out its command and build human-understandable maps of their explored surroundings. We plan to achieve this by combining both spatial mapping with object detection as well as natural language interaction in our project.
2. System Architecture
The way the AI robot works is by first listening out for the command: "Hey Robot" which serves as a wake word. Once the wake word is received, the robot enter a ready state to listen for and transcribe user speech to text for the model, the model thinks on that transcribed command, continuously voices out its thought processes, and eventually acts on it. To prevent collisions between the robot and its surrounding obstacles, trigger signals will be sent to the ultrasonic sensors to emit ultrasonic waves before taking every movement action. Once the relative distance of the robot to its surroundings is calculated, it should navigate accordingly towards (or away from) directions where the resulting distance does not exceed its threshold to collision distance.

The AI robot’s architecture is built around three major pipelines:
A. Perception
The perception system gives the robot awareness of its environment so it can explore, navigate, and act on user commands. It combines camera vision, object detection, and distance sensing to understand both what is around the robot and how far things are.
1. Pi Camera – Visual Understanding
- Captures continuous video of the environment.
- Helps the robot observe objects, people, and surroundings.
- Supports mapping and identifying landmarks for navigation.
2. YOLOv8n – Object & Person Detection
- Processes camera frames to detect objects in real time (~2 fps).
- Identifies items mentioned in user commands (e.g., “chair,” “cup”).
- Helps the robot understand where objects are located in the room.
- Enables features like Follow-Me, object-based navigation, and semantic mapping.
3. Ultrasonic Sensors – Collision Prevention
- Four ultrasonic sensors (front, back, left, right) constantly measure distance to obstacles.
- The robot slows down, stops, or reroutes when objects are too close.
- Ensures safe movement even when the camera view is unclear or dim.
4. Environment Awareness & Early Mapping
- The robot uses object detections + distance readings to form a basic map of its surroundings.
- Helps it explore rooms, avoid obstacles, and remember locations.
- Enables more human-like navigation:
“Go near the table.” → Robot identifies the table and moves toward it safely.
5. Sensor Fusion
- Combines camera detection with ultrasonic measurements for more accurate perception.
- Vision tells what is present; ultrasonic tells how close it is.
- This makes navigation stable in:
- Poor lighting
- Crowded areas
- Fast movement scenarios
B. Decision & Language Interface
- Wake-word detection: “Hey Mekk”.
- Speech-to-Text (Whisper) → convert user commands to text.
- Tiny Llama / custom LLM agent → interprets commands, explains its reasoning aloud (TTS), and generates actionable steps.
- Text-to-Speech (Coqui TTS) → Robot narrates its thought process, enhancing transparency.
C. Motion Control & Execution
- Motor control via L298N driver with GPIO mapping from uploaded documentation (page: Motor Driver Connection Chart ).
- Supports:
- Forward
- Backward
- Turn Left
- Turn Right
- Maintain/adjust distance
3. Web-Based Robot Interaction Interface
Developed a full UI to remotely operate the robot. Features include:
A. Live Camera Streaming
- Real-time Pi-Cam feed rendered in the browser.
- "LIVE" badge indicator.
B. Action & Observation Feed
- Scrollable log section showing:
- Movement actions
- Object observations
- Timestamped decisions
C. Manual Control -
Movement keys (W/A/S/D) for:
- Forward
- Left
- Backward
- Right
D. Custom Command Box
- Allows typed natural-language commands such as: “Mekk, move to the coffee table and rotate 180 degrees.”
4. Tech Stack (Hardware & Software)
| Hardware Component | Purpose |
|---|---|
| Wheel Motors + Wheels (4 pcs) | Allows the robot to navigate its surroundings |
| L298N Motor Driver | To control the movement direction, duration and speed of the robot |
| 7 Inch HDMI LCD Display | To display the various facial expressions of the robot |
| Omnidirectional Microphone | Allows the robot to receive verbal commands from the user |
| USB Speakers | Allows the robot to voice out its thought processes |
| Jumper Cables (20cm, Female to Female) | To connect the motor driver and ultrasonic sensors to the robot |
| 5V Power Bank | To power the RPi |
| 7.4V Rechargeable Battery Pack + Charger | To power the wheel motors and motor driver |
| Pi Camera | Allows the robot to observe its surroundings and identify objects using the model |
| Ultrasonic Sensors (4 pcs) | Allows the robot to prevent collisions with surrounding objects |
| Battery Holder | To hold the 7.V batteries and allow power connections to the motor driver |
| MicroSD Memory Card 64GB | RPi on board storage |
| Raspberry Pi 4 Model B | Brain of the robot |
| 1K Ohm Resistors (12 pcs) | To build a voltage divider for the ultrasonic sensors |
| Acrylic Sheets | To reinforce the robot chassis |
| Glue Gun | To assemble all components together |
| Software Component | Purpose |
|---|---|
| Python 3 | Main programming language used to run the robot’s code. |
| YOLOv8n (Object Detection Model) | Helps the robot recognize people and objects in real time. |
| Whisper (Speech-to-Text) | Converts the user’s spoken commands into text. |
| Coqui TTS (Text-to-Speech) | Allows the robot to speak and explain what it is doing. |
| Tiny Llama | Understands natural-language commands and decides what actions the robot should take. |
| Rpi.Gpio Library | Controls the Raspberry Pi’s pins to manage motors and sensors. |
| Curses Library | Allows keyboard-based manual control of the robot through the terminal. |
| OpenCV | Processes camera images before they are sent to the object detection model. |
| Node.js (Web Backend) | Runs the web server that lets users control the robot from a website. |
| WebRTC | Sends live camera feed and robot status updates to the website instantly. |
| Linux (Raspberry Pi OS) | Operating system that runs all robot programs and services. |
| Autodesk Fusion 360 | Used to design the robot’s 3D chassis and parts. |
| Bash / Shell Tools | Helps start, manage, and automate robot programs. |