Hero background

Coding for Heroes

STEM • 120 • 20 students • Created with AI following Aligned with Common Core State Standards

Download now

Free PDF · we'll email you a copy

STEM
120
20 students
27 January 2026

Teaching Instructions

This is lesson 3 of 5 in the unit "Tech Titans: Superhero Innovations". Lesson Title: Sphero RVR+: Coding for Heroes Lesson Description: Students will dive deeper into coding by programming the Sphero RVR+ to navigate obstacle courses and complete challenges. They will learn about sensors and how to use them to enhance their superhero gadgets, integrating coding with robotics in a fun and engaging way.

Overview

In this 120-minute session, students will explore coding and robotics using the Sphero RVR+ to design superhero-themed obstacle course challenges. This lesson deepens their computational thinking and engineering skills by integrating sensor technology and programming concepts. Students will apply concepts aligned with the Next Generation Science Standards (NGSS), specifically within the Engineering, Technology, and Applications of Science domain.


Standards Alignment

  • NGSS MS-ETS1-1: Define the criteria and constraints of a design problem with sufficient precision to ensure a successful solution, taking into account relevant scientific principles and potential impacts on people and the natural environment that may limit possible solutions.
  • NGSS MS-ETS1-4: Develop a model to generate data for iterative testing and modification of a proposed object, tool, or process such that an optimal design can be achieved.
  • NGSS MS-ETS1-3: Analyze data from tests to determine similarities and differences among several design solutions to identify the best characteristics of each that can be combined into a new solution to better meet the criteria for success.

Learning Objectives

By the end of this lesson, students will:

  • LO1: Write and debug code that commands the Sphero RVR+ to navigate an obstacle course using sensor feedback (MS-ETS1-4).
  • LO2: Explain how sensors enhance robotic functionality, mimicking superhero gadgets (MS-ETS1-1).
  • LO3: Collaborate in teams to iteratively test and improve their coding solutions based on performance data (MS-ETS1-3).
  • LO4: Communicate the engineering design process and the role of feedback and adaptation in optimization (MS-ETS1-1, MS-ETS1-4).

Materials

  • Sphero RVR+ Robots (enough to have 4 groups)
  • Laptops or tablets with Sphero Edu app installed
  • Pre-designed obstacle course materials (cones, ramps, tape, boxes)
  • Sensor demonstration kits (optional: simple examples of light, proximity sensors)
  • Whiteboard and markers
  • Student notebooks or coding journals

Time Breakdown & Activities

0 - 15 min: Warm-Up and Introduction

  • Activate Prior Knowledge: Brief review of coding concepts from Lesson 2 (e.g., commands, loops, conditionals). Quick discussion: “How do superhero gadgets sense their surroundings?”
  • Demonstrate Sphero RVR+ sensors: Use a simple sensor demo on the bot (e.g., proximity sensor) showing how it detects obstacles.
  • Set the challenge: “Today, your hero bot needs to navigate through a treacherous obstacle course. Your coding skills and sensor understanding will make your robot the ultimate Tech Titan!”
    Materials: Whiteboard (draw obstacle course layout), Sphero RVR+ demo

15 - 30 min: Explore - Sensor Science and Code

  • Mini-Lesson: Explain key sensors on the RVR+ (proximity, light, accelerometer) and their real-world superhero gadget analogs (e.g., vision sensors like Iron Man’s helmet).
  • Show blocks of code or simple pseudo-code illustrating sensor input and decision-making (if-else statements, loops).
  • Guided Practice: Students open Sphero Edu app, explore sensor commands within a scaffolded code template.
    Check for understanding: Quick questions on how sensors change robot behavior.
    Materials: Tablets/laptops, handout outlining sensor functions and coding snippets

30 - 70 min: Design and Code - Obstacle Course Challenge

  • Group Formation: 4 groups of 5 students
  • Each group designs a coding strategy to maneuver their Sphero RVR+ through the obstacle course. They must use at least two sensor inputs in their design to:
    • Avoid obstacles
    • Detect course boundaries
  • Students write their code collaboratively, using iterative development—test runs, debug, refine.
  • Teacher circulates, prompting critical thinking: “How can sensor feedback improve your robot’s navigation?” “What happens if your bot hits an obstacle?”
  • Data Collection: Each group records robot performance data (distance traveled without collision, number of successful obstacle completions).
    Materials: Sphero RVR+, obstacle course, notebooks/journals

70 - 90 min: Test and Refine

  • Groups conduct formal trials of their program on the course, observing outcomes.
  • Using trial data, students discuss adjustments needed. Example prompts: “Does the sensor sensitivity need tuning?” “Should the response to sensor input be faster/slower?”
  • Students update code and re-test, focusing on iteration to improve performance toward design goals.
  • Optional: Teacher collects data on all group performances to facilitate comparison later.

90 - 110 min: Present and Reflect

  • Each group gives a 3-4 minute presentation sharing:
    • Their coding approach and use of sensors
    • Challenges faced and how they used test data to improve
    • Connection to superhero gadget inspirations
  • Classroom discussion comparing different design strategies and sensor uses.
  • Teacher highlights the engineering design process aspects practiced (defining constraints, iterative testing, optimizing solutions) linking back explicitly to NGSS.

110 - 120 min: Exit Ticket and Clean-Up

  • Exit Ticket prompt: “Describe how sensors helped make your code more like a real superhero gadget. What was one change you made to improve your Sphero’s performance?”
  • Students complete exit ticket individually in notebooks.
  • tidy up the room, put away robots and materials.

Assessment

  • Formative: Observation of group collaboration, coding progress, and engagement during iterative testing
  • Exit Ticket: Written reflection assessing students' grasp of sensors and iterative refinement process
  • Performance: Robot successfully navigating the course using sensor-based code within 2-3 attempts

Differentiation Strategies

  • For struggling students: Provide simplified code blocks to modify rather than build from scratch
  • For advanced students: Challenge them to integrate three or more sensor inputs or optimize speed and accuracy metrics
  • EAL learners: Use visuals, code annotations, peer partners to scaffold language-heavy explanations

Teacher Reflection Questions

  • Did students demonstrate understanding of how sensors inform robotic movement?
  • Were students able to iterate based on performance data thoughtfully?
  • How effectively did the superhero theme engage learners in STEM concepts?
  • What adjustments in pacing or support might improve future implementations?

This highly immersive lesson connects coding, sensors, and problem-solving in an age-appropriate, NGSS-aligned framework — empowering students to become real “Tech Titans” through hands-on STEM innovation!

Create Your Own AI Lesson Plan

Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with Common Core State Standards in minutes, not hours.

AI-powered lesson creation
Curriculum-aligned content
Ready in minutes

Created with Kuraplan AI

Generated using gpt-4.1-mini-2025-04-14

🌟 Trusted by 1000+ Schools

Join educators across United States