Build-a-Track: Modular Robot Maze Tiles

← Free Lesson Plans for Teachers

Free Lesson Plan

Grades 2–5Engineering & Coding2 sessions x 45 minFinchBotley1A-AP-101A-AP-141B-AP-15

⬇ Download PDF (lesson, student sheets & answer key)

Driving question: How can we design a maze and write a program that drives a robot through it?

Overview

Printable road tiles (straight, turn, T, cross, dead end, start, finish) snap together on the floor into any maze. Teams design a maze, swap mazes with another team, and write a program of forward moves and quarter turns that drives a robot (or a walking classmate) from start to finish. Tiles are sized to one robot step, so the same set works with many floor robots.

Students plan and write sequences, test them, and debug. Grades 3–5 test from more than one start tile and refine the program until it works every time.

Standards

CodeStandard
CSTA 1A-AP-10 (2017)order of steps and repeats
CSTA 1A-AP-14 (2017)finding and fixing program errors
CSTA 1B-AP-15 (2017)testing and fixing a program

Grade 2: 1A codes. Grades 3–5: 1B-AP-15. CSTA codes are from the CSTA K-12 CS Standards (2017); the short labels are our own summaries, not CSTA wording. This lesson has not been reviewed or endorsed by CSTA.

Learning Objectives

Students will:

  • design a maze from tiles that has one route from start to finish.
  • write a program of moves and quarter turns to drive the route.
  • test, find bugs, and fix the program.

Materials

Geyer resources for this lesson

Also needed

  • Square card-stock tiles cut to one robot step (measure your robot’s step—for example, 9 in. for Botley or 5 in. for Code & Go—and draw/tape roads using Student Sheet 1 as the pattern guide); scissors; masking tape
  • Ruler to measure your robot’s step size
  • Any floor robot, or a student “robot”
  • Student Sheets 1-3

Vocabulary

WordWhat it means
routeThe path from start to finish.
sequenceSteps in order.
quarter turnA 90° turn, left or right.
testRun the program to see if it works.
debugFind and fix mistakes.

Safety Notes

  • Tape tile seams flat so no one trips. Keep walkways clear.
  • Robots stay on the floor.

Before You Teach

  • Measure your robot’s one-step distance (e.g., 9 in. for Botley, 5 in. for Code & Go, or 30 cm for walking students) and cut square card-stock tiles to that size using Student Sheet 1 as a pattern guide (or mark the grid directly with masking tape).
  • Cut or tape a 3 × 3 example maze for the demo.

Warm-Up (5 min)

  • Show the example maze. Ask: "If the robot starts facing up, what is the first command?"

Procedure

Session 1: Design a maze (40 min)

  1. Teams draw/cut step-sized tiles using Sheet 1 as a guide (or tape road squares) and lay out a maze of 6–10 tiles with one start and one finish. Every road edge must meet another road edge.
  2. Sketch the maze on Student Sheet 2 and mark the robot’s starting direction.
  3. Write a program: F = forward one tile, L = quarter turn left, R = quarter turn right.

Session 2: Swap and debug (45 min)

  1. Teams swap mazes. Read the other team’s maze and write a program for it.
  2. Test with the robot. Record each run and the bug fixed on Student Sheet 3.
  3. Grades 3–5: test from a different start tile or add a dead end. Refine until the program works three times in a row.

Differentiation

SupportOn-levelChallenge
• Use a 3 × 3 maze with only straights and turns.
• Act out the program before using a robot.
• Complete the procedure and student sheets as written.• Add a loop: find a repeated pattern of moves and write it with repeat.
• Use the Finch to program distances in cm instead of tile steps.

Assessment

  • Check that maze edges connect.
  • Check program changes after each failed test.

Exit ticket: Ask: "Your robot turned the wrong way at the second turn. What do you change?" (Swap L and R at that step.)

CriterionBeginningDevelopingProficient
MazeRoads do not connectMostly connectOne clear route, all edges connect
ProgramDoes not finishFinishes with helpFinishes on its own
DebugNo fixesFixes one bugRecords and fixes bugs; works 3 times

Extensions

  • Make a giant hallway maze for a robot parade.
  • Related: coding lessons 7 and 119 in the hub.

Student Sheets

Use these sheets in class, or download the PDF for a print-ready layout.

Student Sheet 1

Road Tile Patterns (size tiles to one robot step)

Print-ready version in the PDF.

Name: ______________________________   Date: ______________

STARTFINISH

Pattern guide for tabletop/mini testing or drawing full-size card-stock tiles matched to your robot’s step (for example, 9 in. for Botley). Turn tiles and T tiles can be rotated to face any direction.

Student Sheet 2

Maze Plan

Print-ready version in the PDF.

Name: ______________________________   Date: ______________

Draw your maze on the grid. Mark START with an arrow showing the way the robot faces.

Program (F, L, R):

Student Sheet 3

Test Log

Print-ready version in the PDF.

Name: ______________________________   Date: ______________

RunProgramWhat happenedBug and fix
1
2
3

It worked 3 times in a row: yes / no

Show answer key (for teachers)

Answer Key & Teacher Notes

Teacher Notes

  • Example 3 × 3 maze: start at the bottom-left facing up; straight, then a turn tile at the top-left, straight across the top, finish at the top-right. Program: F F R F F (forward to the top-left corner, quarter turn right, forward across the top to the finish).
  • Check that a turn command does not move the robot; it only rotates it.
  • Common bugs: counting the start tile as a move; mixing up left and right when the robot faces the student; tiles not matching the robot’s step.
  • Grades 3–5 refine: a program is reliable when it works from the same start three times in a row.

Need a print-ready copy? The PDF includes the lesson, student sheets, and answer key.

Download the PDF  |  All free lesson plans

Free for classroom use. You may print and copy this lesson for your students. © Geyer Instructional Products. Standards text: CSTA K-12 CS Standards © CSTA.