Program a robot
Build a program from blocks to steer a robot through twelve mazes, then use loops and its sensor to do more with less.
The activity
LEVELS
First steps
Drive the robot to the flag.
New idea. A robot does exactly what it is told, one block at a time, in order. Add Forward blocks, then press Run.
Count the squares between the robot and the flag. Add one Forward for each.
READ THE MAZE AS TEXT
- Row 1: wall, wall, wall, wall, wall.
- Row 2: robot facing right, open, open, open, flag.
- Row 3: wall, wall, wall, wall, wall.
Add blocks to build a program, then press Run.
ADD A BLOCK
Goes at the end of the program
YOUR PROGRAM · 0 BLOCKS
No blocks yet. Tap a block above to add it here.
What you'll practise
- Giving instructions in the right order
- Finding patterns and using loops
- Using a sensor to decide
- Finding and fixing mistakes
For teachers and parents
Younger learners can act out the first levels: one learner is the robot, another reads the blocks aloud. Use Step to trace a program one block at a time, and ask learners to predict where the robot will be before they press it.
In the curriculum
South Africa's Coding and Robotics CAPS for Grades 4 to 6, which schools are phasing in from 2026 to 2032, asks learners to write and debug instructions with sequences, single repetition and simple conditionals, as these levels do. Source (PDF)
Part of Teachist's Robotics and programming program
More robotics activities
ALL ACTIVITIES →See and do: picture games without words
16 picture games, each in six grade bands from Grade R to Grade 7, in maths, coding, science, life skills and geography that need no reading and no sound. A helper hand shows what to do.
Logic gates
Flip switches into AND, OR, NOT, NAND, NOR and XOR gates, watch the truth table, then build circuits for alarms, lights and robots.