Back to Projects
Robotics IoT

Robot Racer

An autonomous vehicle prototype capable of navigating a colored track using computer vision. It processes camera input in real-time to adjust steering and throttle.

Python Raspberry Pi Computer Vision ML

Problem

Navigating a physical track with varying lighting conditions using only a single low-cost camera.

Solution

Used OpenCV for lane detection (color thresholding + edge detection). A basic regression model predicts the steering angle based on lane curvature. The Python controller runs an optimized high-frequency loop on the Pi.

# System Architecture

Embedded System Architecture. The Raspberry Pi runs a Python main loop that polls the Camera, processes the frame (OpenCV), calculates error (PID Controller), and adjusts PWM output to the Motor Driver HAT.

Key Features

  • Real-time Lane Detection
  • PWM Motor Control
  • Computer Vision Pipeline
  • Remote Data Telemetry
  • Manual Override Mode
Client A
Client B
API
GW
Auth Func
Game State
Payment
Figure 1.0: Robot Racer High-Level Architecture

# User Flow & Journey

Initialization

Step 01

Calibrate camera and sensors.

Sense

Step 02

Capture frame and preprocess.

Plan

Step 03

Calculate deviation from center line.

Act

Step 04

Adjust servo and DC motor duty cycle.

Flow Analysis

Autonomous operation loop.

Discuss this Project
← Back to Projects Contact Me →