S ScienceFairProjects.info
Hard⏱ time3 hr$ cost26

Line-Following Robot

Infrared sensors keep a small robot glued to a black track as it races a loop.

Start building ↓
fig — working model Result first

The build

Step 01

Mount IR sensors

Fix two downward IR sensors at the front.

Step 02

Wire the motors

Connect motors through a driver to the controller.

Step 03

Make a track

Lay black tape on a light floor.

Step 04

Tune & run

Program it to steer toward the line and follow it.

Working Principle

Each sensor reads how much light reflects: black absorbs, white reflects, so the robot steers to keep the line centred between its sensors.

The science behind it

A closer look

It's closed-loop control: sensor error (drifting off the line) feeds a steering correction many times per second.

Take it further

Variables to test

  • 1 Add a third centre sensor — does it track tighter?
  • 2 Speed it up — where does it lose the line?

More Robotics