Projects / Ideas / Two-sensor line follower

Two-sensor line follower

IntermediateRoboticsIdeaReviewed
In short

How do you build a two-sensor line follower?

A cheap two-wheel chassis follows a black line using two reflective sensors and a motor driver. You need Arduino Uno R3, TCRT5000 IR reflective sensor module × 2, Robot car chassis kit 2WD (acrylic), L298N Dual H-Bridge Module, 9 V battery, 9 V battery, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Intermediate
Time
About 240 min
Parts
8
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Use bang-bang control for line following.

How to build it

  1. Assemble the chassis
  2. Tune the sensor threshold
  3. Steer by sensor state
  4. Limit speed to stay on the line
  5. Add a stop on a crossing line

Related projects

Common questions

What parts do I need for the two-sensor line follower?

Arduino Uno R3, TCRT5000 IR reflective sensor module × 2, Robot car chassis kit 2WD (acrylic), L298N Dual H-Bridge Module, 9 V battery, 9 V battery, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the two-sensor line follower take to build?

About 240 minutes for a intermediate maker.