How to use the
Learning Portal

Learning Portal

Our hands-on, comprehensive lesson plans span a range of levels. Browse our free STEM and coding learning resources.

Marty Image

Halloween Lesson - Marty's Halloween Surprise

90 Minutes

Lesson Overview

Get ready to show off some spooky coding skills by designing and creating a Halloween costume for Marty before coding Marty to give someone a Halloween fright when they walk by! By exploring the values returned from the distance sensor, learners can estimate when someone is near Marty to code Marty to quickly respond.

Key vocabulary:
    Robot, Movement, Distance Sensor, Joining, Designing,

Content Sections

  • Learning Objectives
  • Extensions & Challenges
    • Additional Reading
    • Halloween Lesson - Marty's Halloween Surprise

      90 Minutes

      Lesson Overview

      Get ready to show off some spooky coding skills by designing and creating a Halloween costume for Marty before coding Marty to give someone a Halloween fright when they walk by! By exploring the values returned from the distance sensor, learners can estimate when someone is near Marty to code Marty to quickly respond.

      Key vocabulary:
        Robot, Movement, Distance Sensor, Joining, Designing,
      • N/A
      • Laptop, PC or Tablet
      • Technologies/Arts/Literacy/Numeracy
        • Marty the Robot with attached distance sensor
        • Design a Halloween Costume for Marty worksheet
        • Materials to create costumes (fabric, scissors, glue)
        • Measuring with the Distance Sensor worksheet
        • Rulers
        • Access to compatible devices connected to Marty on Scratch

      Learning Objectives

      • Design and create a Halloween costume for Marty using different materials
      • Understand and explain what value is returned from Marty’s distance sensor

      1. Class discussion of what they might dress up as for Halloween

      2 Using the Design a Halloween Costume for Marty worksheet, ask students to design some Halloween costumes that they could create for Marty to wear

      3. In small groups, work together to create one of the costume designs for Marty to wear using whatever resources and materials are available for them to use

      4. Test your Halloween costumes by making sure that when Marty is wearing the costume, they can still walk and move around without tripping over the costume!

      5. Introduce the distance sensor as a way of measuring how close or far away objects could be from Marty and explain that we will be using the distance sensor to detect when someone is nearby and code Marty to respond and give them a Halloween fright!

      6. Using Scratch and some rulers, measure what the value returned from the distance sensor is by filling out the Measuring with the Distance Sensor worksheet

      7. When someone is nearby, code Marty to respond by giving them a fright and saying boo!

      Extensions & Support

      • Extend your program so that after Marty gives someone a fright, they do a small Halloween dance (Literacy/ Technologies/Arts)

      Additional Reading

      • Marty the Robot Educator Guide
      • Educator FAQ