Lesson / Robotics

Can a Robot Follow Your Instructions?

A delivery robot has been told to 'go around the chair.' That instruction works on people and fails on robots. Replace it with measured moves and turns that can be checked on a grid.

Lesson plan

  1. Replace vague directions

    Turn 'go around the chair' into commands the robot can execute.

  2. Predict on the grid

    Track position and direction through a short route.

  3. Build the maze route

    Define a command set, start state, target, and complete sequence.

  4. Repair the first mismatch

    Trace the route and change the earliest command that fails.

  5. Hand over the instructions

    Have another student follow the route and explain the revision.

Learning goals

  • Break a route into commands the robot can execute.
  • Order moves and turns.
  • Predict the final position and direction.
  • Test the route on paper or in simulation.
  • Revise one faulty command.

Small examples

forward 2

move two grid units

turn right

change direction without changing position

pause

separate actions so they can be observed

repeat route

reuse a tested sequence

Guided project

Robot Maze Logic

Deliver a repair part through a maze using instructions precise enough for a robot that cannot guess what 'go around it' means.

Build This Project
Students build

A maze or grid, A known start and direction, A command vocabulary, A predicted route.

Ideas in use

Commands, Sequences, Movement, Direction, Coordinates.

Finish line

A working version with a tested change, one repaired problem, and a clear explanation.

Teacher checkpoints

  1. 1Each command has one clear meaning.
  2. 2The student predicts before running the route.
  3. 3Direction is recorded after every turn.
  4. 4The route reaches the target.
  5. 5One revision is justified from the failed test.

Common mistakes

  • The route contains phrases the robot cannot execute.
  • Direction is lost after a turn.
  • Several route steps are changed after one failure.
  • The plan treats the robot as a point with no width.

Optional challenges

LEVEL 1

Builder

  • Add one obstacle and reroute.
LEVEL 2

Inventor

  • Create reusable route segments.
LEVEL 3

Boss Level

  • Write a route checker for a grid map.

End-of-class demonstration

  1. What is the goal?
  2. Which command runs first?
  3. Where does the robot face now?
  4. Which command failed?
  5. How did the revision change the route?