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

1.15 – Bump Switches

45 Minutes

Lesson Overview

So far, students have had to test out the number of steps that it will take Marty to walk a certain distance to program him to do things like obstacle courses. By attaching bump switches to Marty then we can add a sense of touch to help make decisions. In this lesson, students will explore how we can use bump switches and consider the different body parts that we can attach them to.

Key vocabulary:
    Bump switches , Switch , Touch , Sense , Programming , Repeat until or conditional loops,

Content Sections

  • Learning Objectives
  • Extensions & Challenges
    • Additional Reading
    • 1.15 – Bump Switches

      45 Minutes

      Lesson Overview

      So far, students have had to test out the number of steps that it will take Marty to walk a certain distance to program him to do things like obstacle courses. By attaching bump switches to Marty then we can add a sense of touch to help make decisions. In this lesson, students will explore how we can use bump switches and consider the different body parts that we can attach them to.

      Key vocabulary:
        Bump switches , Switch , Touch , Sense , Programming , Repeat until or conditional loops,
      • Lessons 1.1-1.14
      • Laptop, PC or Tablet
        • Marty the Robot with bump switches attached
        • Marty Workbook (Lesson 1)
        • Laptops/Computers/Tablets
        • Access to the Scratch editor
        • Objects to use as obstacles

      Learning Objectives

      • Describe bump switches to add a sense of touch to help Marty make decisions like when to stop walking
      • Program Marty to respond to an obstacle in front of him and stop walking
      • Test out the different body parts that we can put bump switches onto and what they can help us decide or look out for

      1. Recap of the different concepts that has been covered so far in previous lesson packs

      2. Present problem of how do I know how many steps Marty has to take to get to a certain spot/object?

      a. Previously we had to manually walk him through the distance and count the steps to get a rough idea

      3. Ask students how they decide when they have reached the spot or when there is an obstacle in their way (imagining if they are blindfolded)

      4. We can add a sense of touch to Marty by adding bump switches

      a. How the switch works

      b. What do students then think we can use the switches for?

      5. Programming task in small groups to get Marty to keep walking forward until he comes across an obstacle in his way, then he should stop walking and show his angry eyes

      6. Card game in the same small groups to start thinking about where else we could attach the bump switches

      a. Try matching the cards first by guessing what they think will happen

      b. Test it out and check what they thought would originally happen

      c. Write up in workbook

      Extensions & Support

      • Come up with other areas or uses for the bump switch, test it out and get other students to guess what the switch could detect based on where it is
      • Students plan how they would use bump switches on front, left and right of feet (4 switches in total) to help solve a small maze
      • Program Marty to solve a small maze that has been built

      Additional Reading

      • Educator’s Guide
      • Introduction to Programming with Marty using Scratch
      • Bump Switches: Give Marty a Sense of Touch (Blog Article)

      Learner Resources —