Guided Project

Guided Project

Robot Hamster Command Centre

Program a robot hamster to patrol snack storage without treating every crumb as an international emergency.

  • Events
  • Commands
  • Sequences
  • Coordinates
  • Messages
  • Debugging

Project brief

What students build

  • A grid-like map
  • Clear movement commands
  • A known start
  • A target route
  • Command feedback
  • Reset behaviour

What students learn

  • Events as triggers
  • Command order
  • Position and direction
  • Messages between scripts
  • Prediction
  • Sequence debugging

What students need

  • Browser
  • Scratch editor
  • Keyboard
  • Student-drawn hamster and map

The project uses Scratch to work on robot logic; no physical robot is needed.

Suggested build order

  1. 01

    Draw the command map

    Task: Make a simple route with a start, a target, and one obstacle.

    Checkpoint
    You can describe the whole route as a sequence of steps.
    Likely mistake
    Making the grid too small for the sprite.
  2. 02

    Define movement commands

    Task: Connect keys or buttons to forward and turn actions.

    Checkpoint
    Each command has one clear effect.
    Likely mistake
    Mixing position and direction changes.
  3. 03

    Set a known start

    Task: Reset position and direction together.

    Checkpoint
    Every attempt begins identically.
    Likely mistake
    Resetting position but not direction.
  4. 04

    Run a sequence

    Task: Trigger several commands in order with visible pacing.

    Checkpoint
    The hamster reaches a predictable result.
    Likely mistake
    Commands overlap because there is no timing.
  5. 05

    Report success or collision

    Task: Use sensing and messages to explain the outcome.

    Checkpoint
    The project distinguishes target and obstacle.
    Likely mistake
    The result message appears before movement ends.

Test questions

  • Does each command do one thing?
  • Does order matter visibly?
  • Does reset restore direction?
  • Can a route collide between grid points?
  • Does the result wait for the sequence?

Common mistakes

  • No event starts the command sequence.
  • Turns also move the hamster.
  • Direction is lost after reset.
  • Several key events run at once.

Extension ideas

  • Add a second route.
  • Display the command history.
  • Allow command planning before execution.
  • Create reusable route functions.

Challenge levels

LEVEL 1

Builder

Complete a five-command route.

LEVEL 2

Inventor

Store a planned command sequence before running it.

LEVEL 3

Boss Level

Create reusable command procedures for common turns.

What to demonstrate

  • Known start and direction
  • Three distinct commands
  • A complete route
  • Obstacle response
  • Visible command feedback
  • One sequence repair