repeat patrolcontinue the route
Public lesson / Robotics
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
Name the problem before opening the build.
Make the hidden rule visible with small tests.
Use the idea inside a working project system.
Change one rule and predict the effect.
Explain the result, save safely, and leave a known state.
Learning goals
Theory kernel
repeat patrolcontinue the route
if obstacle neardetect a reason to change
turn and check againcorrect from new information
state = RECOVERINGremember the current mode
Guided-build preview
Patrol a route until an obstacle appears, then choose a response that does not involve turning forever in a corner.
A repeatable patrol, An obstacle signal, At least one response state, A correction and recheck.
Loops, Sensors, Conditions, State, Feedback.
A working version, one modification, one repaired problem, and an explanation.
Teacher checkpoints
Common mistakes
Modification challenge
Higher levels are optional. They deepen the current idea rather than turning a beginner lesson into an unrelated advanced task.
End-of-class demonstration