← Free Lesson Plans for Teachers Free Lesson Plan Grade 6Engineering & Coding3 sessions x 45 min (or 4 sessions if students assemble the 207-part rover in class)micro:bitBit Board2-AP-132-AP-17 ⬇ Download PDF (lesson, student sheets & answer key) Driving question: How can breaking a big mission into smaller parts help us program a rover? Students build (or start with a pre-built) brick-based rover driven by a micro:bit and continuous-rotation servos. They decompose a "rescue mission" (drive to a stranded figure, turn, return to base) into smaller functions such as forward(distance), turn_left, and stop, then calibrate, test, and refine each part. Teams try the program from several setups (different start positions and floor surfaces) and improve it before the final mission run. CSTA K-12 CS Standards (2017), Level 2 (grades 6-8). This lesson has not been reviewed or endorsed by CSTA. Students will: Geyer resources for this lesson Exit ticket: "Name two functions you created and explain how they made the mission easier to program and fix." Use these sheets in class, or download the PDF for a print-ready layout. Student Sheet 1 Print-ready version in the PDF. Name: ______________________________ Date: ______________ Student Sheet 2 Print-ready version in the PDF. Name: ______________________________ Date: ______________ How did decomposing the mission help you find and fix bugs? Need a print-ready copy? The PDF includes the lesson, student sheets, and answer key. Free for classroom use. You may print and copy this lesson for your students. © Geyer Instructional Products. Standards text: CSTA K-12 CS Standards © CSTA. Photo: NASA Johnson Space Center, Public domain, via Wikimedia Commons.Overview

Standards
Code Standard CSTA 2-AP-13 (2017) breaking a program into parts CSTA 2-AP-17 (2017) trying a program from several setups and improving it Learning Objectives
Materials
207 brick-compatible parts plus servos, 2 AA battery holder, and Bit Board for a rover or tank (micro:bit and 2 AA batteries sold separately).
Class option (1 pack for 15-25 students in teams of 3-5).
Optional thumbstick remote for a manual-driving comparison (requires a second micro:bit, 2 AAA batteries, and a small Phillips-head screwdriver).
Measure the mission course (1-2 per class).Also needed
Vocabulary
Word What it means decompose Break a problem into smaller parts. function A named block of code that does one job and can be reused. parameter A value you give a function, such as a distance. calibrate Adjust using measurements so results are accurate. test case A specific situation used to check a program. continuous servo A motor that spins all the way around; speed and direction are set by code. Safety Notes
Before You Teach
Warm-Up (5 min)
Procedure
Build (40 min)
Decompose and calibrate (45 min, Session 2)
Test and refine (25 min, Session 3)
Mission run (20 min)
Differentiation
Support On-level Challenge • Provide the forward function; students write turns.
• Use the remote for one leg of the mission.
• Shorter course.• Complete the procedure and student sheets as written. • Add a distance sensor to stop before obstacles.
• Write a function that takes angle as a parameter.
• Make the mission work on two surfaces without editing code.Assessment
Criterion Beginning Developing Proficient Decomposition No subproblems Some subproblems Clear functions for each subproblem Calibration Guessing Measured once Repeated measurements used in code Testing and refining One test Tests without changes All test cases run and code refined Extensions
Student Sheets
Decompose the Mission
Subproblem Function name Parameters Drive straight a set distance forward cm Calibration Trial 1 Trial 2 Trial 3 Average Distance in 1 s (cm) Time for 90-degree turn (ms) Test Cases
Test case Expected Actual Change made Start on base, smooth floor Reach figure within 5 cm Start 10 cm left of base Reach figure within 10 cm Carpet or textured mat Reach figure within 10 cm Show answer key (for teachers)
Answer Key & Teacher Notes
Look-fors
