Back to Homepage

PID Control: Centroid-Based Line Following

Robotics · OpenCV · PID Control · ROS

This project implements line following using OpenCV's centroid detection algorithm on a Raspberry Pi-controlled robot. The camera captures video feed, OpenCV detects the line centroid, and a P controller adjusts the angular speed to keep the centroid centered in the frame.

Algorithm Introduction

Simulation Demo