⟵ Back to projects

Line-Following Robot

November 2025

Line-Following Robot cover

Overview

This is a sample project page that shows every formatting feature you can use. Replace it with the real story of your project — what you built, why, and what made it interesting.

A photo of the robot

Key features

How I built it

  1. Wired the IR sensor array to the analog pins
  2. Tuned the PID constants by trial and error
  3. Added a small OLED display for live debugging

Status checklist

A note

Tip: start at a low speed while tuning the PID — it makes the behavior much easier to read.

A bit of code

Inline code looks like analogRead(A0). A code block looks like:

int error = setpoint - position;
int correction = Kp * error + Kd * (error - lastError);
lastError = error;

What I learned

Next steps

What you’d improve if you revisited it.