Lesson 08 · 60 minutes

Following the Line

A feedback loop you can see

Today's goal

Explain, while watching the robot, why it wiggles down the line instead of driving straight along it.

Ideas in this lesson

Sense → Think → Do

A tight SENSE-THINK-DO loop running many times a second, right in front of you.

How the session runs

  1. Lay a black tape line with a gentle curve. Press 4 on the remote or Line tracking in the app.
  2. Watch the two dots on the phone while the robot drives. Say out loud what it sees and what it does.
  3. Fill in the table: left black → turn left; right black → turn right; neither → straight; both → stop.
  4. Make the curve sharper until the robot loses the line. Find the tightest curve it can hold.
  5. Change the surface or the lighting. Notice the sensors are reading reflection, not colour.

Try this

When it goes wrong

What you seeWhat it means
The robot runs off a black line on a dark floorThe sensors compare reflection. Dark floor, dark line, no contrast, no chance.
It wiggles violentlyThe correction is strong relative to the speed. Lower the speed and watch the wiggle shrink.
Notes for the grown-up

The wiggle IS the lesson. Every control system overshoots; a thermostat does it in temperature and you cannot see it. Here it is right there on the floor.

← Making DecisionsAvoiding & Seeking →