SPIKE™ Prime Set

Track Your Packages

Remix programming stacks to use an X-Y tracking device to follow a path on a piece of paper.

90-120 min.
Grades 6-8

Lesson plan

1. Prepare

  • Read through the student material in the LEGO® Education SPIKE App.

Engage (5 Min.)

  • Use the ideas in the Ignite a Discussion section below to engage your students in a discussion related to this lesson.
  • Use the video to explain the lesson.

Explore (20 Min.)

  • Have your students work in pairs to build the tracking system.
  • Demonstrate and explain how to load the paper.
  • Ask them to play the programming stacks to make sure everything works.

Explain (5 Min.)

  • Ask your students to combine the programming stacks into a single program that follows the path on the paper. Highlight that they can reuse the existing programming blocks.

Elaborate (15 Min.)

  • Give your students time to work through a second program, making sure they're reusing their code but adjusting parameters along the way.
  • Don't forget to leave some time for cleanup.

6. Evaluate

  • Give feedback on each student's performance.
  • You can use the assessment rubrics provided to simplify the process.

Ignite a Discussion

Start a discussion about testing by asking relevant questions, like:

  • What's a pattern?
  • Can you explain a pattern you see or experience in your everyday life?
  • In what context is it ok to use someone else’s program?

Have your students watch this video to see what they're about to do.


Building Tips

Tandem Build
Split each team's building tasks to ensure that everybody is actively involved:

  • Student A: top of the tracker
  • Student B: bottom and needle of the tracker

Printed Maps
You can use blank paper for this lesson but pre-designed maps are provided. The "city path" is made up of different shapes, right angles, and diagonal lines.

Your pupils will have to recognise that there are different patterns. They'll have to use or repurpose their programming stacks in order to make the tracking system follow the path using the tracker needle.


Loading the Paper
Here's how you load the paper:


Transform Your Tracer into a Plotter
Your pupils can transform their tracking system into a plotter by replacing the tracker’s needle with a pen holder. Allow them some time to have a bit of fun drawing!


Coding Tips

Main Program

SPIKE Kickstart your business Track your packages Step03-Program - en-au

Possible Solution

SPIKE Kickstart your business Track your packages Teacher Solution - en-au

Other Programs

SPIKE Kickstart your business Track your packages Other Program - en-au


Simplify this lesson by:

  • Using only vertical and horizontal lines, to begin with (keep diagonal lines for another moment)

Take this lesson to the next level by:

  • Creating new programming stacks so students can draw more complex shapes
  • Using two class periods to go more in-depth with these concepts
  • Integrating the math extension

Assessment Opportunities

Teacher Observation Checklist
Create a scale that matches your needs, for example:

  1. Partially accomplished
  2. Fully accomplished
  3. Overachieved

Use the following success criteria to evaluate your students' progress:

  • Students can recognize simple patterns like horizontal, vertical, and diagonal lines.
  • Students can repurpose code to suit their needs.
  • Students can give proper attribution to the original program they've used.


Have each student choose the brick that they feel best represents their performance.

  • Blue: I've used some of the programming stacks to navigate the first map.
  • Yellow: I've used and adjusted some of the programming stacks to navigate the first and second maps.
  • Violet: I've used and adjusted some of the programming stacks to navigate the first and second maps, and have used comments in my program.

Encourage your pupils to provide feedback to one another by:

  • Having one pupil use the coloured brick scale above to score another pupil’s performance
  • Asking them to present constructive feedback to one another so that they can improve their group’s performance during the next lesson

Math Extension

To incorporate math skills development:

  • Have your students create a proportional table to find the relation between motor rotation and length of the line traced. Have them transform that relation in the shape of px + q = r.

Note: This will make for a longer lesson.

Students who enjoyed this lesson might be interested in exploring these careers pathways:

  • Construction And Architecture (Architecture)
  • Information Technology (IT Applications)
  • Manufacturing And Engineering (Pre-Engineering)
  • Transportation (Automotive Technology)

Teacher Support

Students will:

  • Develop their ability to recognize patterns and create effective programs

LEGO® Education SPIKE Prime Set

Australian Curriculum: Technologies
Design the user experience of a digital system, generating, evaluating and communicating alternative designs
Implement and modify programs with user interfaces involving branching, iteration and functions in a general-purpose programming language
Evaluate how student solutions and existing information systems meet needs, are innovative, and take account of future risks and sustainability

Pupil Material

Student Worksheet

Download, view or share as an online HTML page or a printable PDF.