Hero background

Mission Control Coding

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

Download now

Free PDF · we'll email you a copy

STEM
120
25 students
11 December 2025

Teaching Instructions

This is lesson 4 of 20 in the unit "Secret Agent STEM Mission". Lesson Title: Mission Control: Programming with micro:bits Lesson Description: Students will learn how to program micro:bits to create a simple device that can send messages. They will work in teams to design a communication tool for their secret agent missions.

Grade Level

6-8 (Middle School)

Duration

120 minutes

Unit

Secret Agent STEM Mission
Lesson 4 of 20


Learning Objectives

By the end of this lesson, students will be able to:

  • Explain how microcontroller programming can be used to create communication devices.
  • Design a coded message system using micro:bits to send and receive simple data.
  • Collaborate effectively in teams to build and test their communication tool.
  • Apply problem-solving and computational thinking skills to debug and improve their code.

NGSS Alignment

  • MS-ETS1-1: Define the criteria and constraints of a design problem with sufficient precision to ensure a successful solution, focusing on communicating a secret message.
  • MS-ETS1-2: Evaluate competing design solutions using a systematic process to determine how well they meet the criteria and constraints of the problem.
  • HS-ETS1-3: Analyze data from tests to determine similarities and differences among design solutions and to refine the design.
    (While this is a middle school lesson, TEK-ETS1-3 at high school level encourages data analysis skills aligning with debugging in programming.)
  • MS-ETS1-4: Develop a model to generate data for iterative testing and modification of a proposed object, tool, or process.

Materials Needed (for 25 students / 8 groups of 3-4 students)

  • micro:bit microcontroller kits (1 per group)
  • USB cables for micro:bits
  • Computers or tablets with micro:bit programming interface (MakeCode or Python micro:bit editor)
  • Projector and screen for demo
  • Whiteboard and markers
  • Printed coding challenge worksheets
  • Headphones (optional, for focused work)
  • Class notebooks for reflection

Lesson Sequence

1. Introduction & Engagement (15 minutes)

  • Hook Activity: Display a short spy-themed video clip or image of secret agents using communication devices. Ask: "How do you think secret agents talk to each other without getting caught?"
  • Briefly explain the mission for today: "We will become secret agents and design our own communication tool using micro:bits!"
  • Present learning objectives and the connection to real-world STEM applications: coding and communications technology.

NGSS Focus: Introduction to defining engineering design problems (MS-ETS1-1).


2. Exploring micro:bit & Basics of Communication Programming (25 minutes)

  • Mini-Demo: Show how to connect the micro:bit to a computer and how to use the programming interface to light up the LED display or send short messages over radio.
  • Explain the concept of encoded messages and radio frequency communication in simple terms.
  • Walk students through a basic program that sends a simple text or number from one micro:bit to another.
  • Q&A during demo to ensure understanding.

Incorporated Computational Thinking: decomposition (breaking down the problem into sending/receiving), abstraction (simplifying communication into a message).


3. Team Brainstorm & Design (15 minutes)

  • Divide into groups of 3-4.
  • Each group discusses and sketches a simple communication device for their secret agent mission that uses micro:bit messaging (e.g., alert signals, coded numbers or letters).
  • Groups must define criteria and constraints—such as range limits, length of message, privacy considerations.
  • Teacher circulates to scaffold ideas and ensure alignment with design problem criteria.

NGSS Practice: Defining criteria and constraints for engineering design (MS-ETS1-1).


4. Coding & Building (40 minutes)

  • Groups begin programming their micro:bits using block-based coding (MakeCode) to design their communication tool. This includes:
    • Programming the sender micro:bit to transmit messages or signals.
    • Programming the receiver micro:bit to display or respond to incoming messages.
  • Encourage iterative testing: send a message, observe, debug code as needed.
  • Teacher provides prompts to encourage thinking about code efficiency and design improvements, e.g., "How can you make your message more secure or faster to send?"

NGSS Skill Development: applying, testing, and refining design solutions (MS-ETS1-2 and MS-ETS1-4).


5. Presentation & Peer Feedback (20 minutes)

  • Each group presents their communication tool, demonstrating the sending and receiving process.
  • Peers use a feedback sheet focusing on clarity, creativity in code, and effectiveness of communication.
  • Teacher facilitates discussion on what worked well and what could be improved.

NGSS Connection: Evaluating and comparing design solutions (MS-ETS1-2).


6. Reflection & Extension (5 minutes)

  • Quick write in notebooks: "How can programming devices like micro:bits help solve real-world problems? How did your team collaborate to solve challenges?"
  • Optionally, set a challenge for next time: "Think about how you could use sensors to create secret agent gadgets."

Assessment

  • Formative: Observation during group work, teacher questioning, and debugging assistance.
  • Summative: Group presentations and peer feedback sheets evaluating communication effectiveness and code functionality.
  • Reflection Writing: Assess understanding of STEM concepts and teamwork skills.

Teacher Tips & WOW Factor

  • Use a “Secret Agent Code” theme throughout—assign code names to groups or roles (e.g., coder, strategist, tester) for immersion.
  • Integrate computational thinking language like "algorithms," "debugging," and "data messages" explicitly to build STEM literacy.
  • Consider recording student code demonstrations to create a "Mission Control" video portfolio.
  • Use a real-time scoreboard for communication speed and accuracy to gamify the experience and motivate students.

Alignment Summary

NGSS StandardActivityStudent Outcome
MS-ETS1-1Defining design criteriaProblem framing & constraints
MS-ETS1-2Evaluate and improve programsCritical thinking & collaboration
MS-ETS1-4Iterative coding and testingEngineering design iteration

This highly engaging lesson leverages the excitement of secret missions to teach foundational programming and engineering design skills consistent with NGSS, while promoting teamwork and STEM career awareness.

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