Lesson 09 · 60 minutes

Avoiding & Seeking

Strategies for not knowing everything

Today's goal

Compare two robot behaviours and describe what each one does when it loses track of the world.

Ideas in this lesson

Sense → Think → Do

THINK gets a memory: the robot now stores what it saw a moment ago and uses it.

How the session runs

  1. Press 5 (avoid). Corner the robot and watch it scan left, scan right, then commit.
  2. Corner it harder — block every direction. Watch it rotate 45° and rescan, again and again, then stop and say it is boxed in.
  3. Press 6 (follow). Hold a book in front, then take it away. It waits.
  4. Press 8 (seek). Same trick. It surveys, locks on, chases, and when it loses you, searches in widening arcs.
  5. Discuss: which behaviour would you want on a robot vacuum? On a rescue robot? Why are they different?

Try this

When it goes wrong

What you seeWhat it means
Follow and seek do nothing at allNo distance readings. Check NOECHO with Read sensors — the sonar is not answering.
Seek spins and gives up quicklyIt surveys three times, finds no echoes, and stops rather than pirouetting forever. That is deliberate.
Notes for the grown-up

The vacuum-versus-rescue question is the real content. Same sensors, same code structures, different priorities — engineering is choosing which failure you prefer.

← Following the LineThe Maze Race →