Public lesson / Robotics

How Can a Robot Patrol Without Getting Stuck?

A patrol robot follows its route perfectly until somebody moves a box. Should it continue, stop forever, or use a sensor reading to choose a recovery action?

Lesson rhythm

The idea moves toward a demonstration.

  1. Story, problem, or provocation

    Name the problem before opening the build.

  2. Theory and concept

    Make the hidden rule visible with small tests.

  3. Guided build

    Use the idea inside a working project system.

  4. Modification challenge

    Change one rule and predict the effect.

  5. Demonstration and cleanup

    Explain the result, save safely, and leave a known state.

Learning goals

What students should be able to do and explain.

  • Combine a repeated patrol with sensing.
  • Use a condition to choose a correction.
  • Represent patrol state.
  • Test an obstacle edge case.
  • Explain the feedback loop.

Theory kernel

Small examples before the larger build.

repeat patrol

continue the route

if obstacle near

detect a reason to change

turn and check again

correct from new information

state = RECOVERING

remember the current mode

Guided-build preview

Robot Patrol Challenge

Patrol a route until an obstacle appears, then choose a response that does not involve turning forever in a corner.

Open Guided Project
Students build

A repeatable patrol, An obstacle signal, At least one response state, A correction and recheck.

Concepts in use

Loops, Sensors, Conditions, State, Feedback.

Finish line

A working version, one modification, one repaired problem, and an explanation.

Teacher checkpoints

Evidence before adding complexity.

  1. 1A normal patrol can be demonstrated.
  2. 2An obstacle changes behaviour.
  3. 3The system checks again after correcting.
  4. 4Recovery does not become an endless turn.
  5. 5Student explains Sense-Decide-Act.

Common mistakes

Pause, inspect, and test one cause.

  • Patrol never reads the sensor.
  • One obstacle causes permanent recovery mode.
  • Turning occurs without checking the result.
  • The stop condition is missing.

Modification challenge

Three levels, one concept kept visible.

Higher levels are optional. They deepen the current idea rather than turning a beginner lesson into an unrelated advanced task.

LEVEL 1

Builder

  • Stop and signal at an obstacle.
LEVEL 2

Inventor

  • Try a second route after turning.
LEVEL 3

Boss Level

  • Track failed directions and choose a recovery state.

End-of-class demonstration

Explain the work while it is still visible.

  1. What repeats during patrol?
  2. What does the system sense?
  3. Which condition changes the plan?
  4. How does it check the correction?
  5. What limit remains?