Ozobot Mission to Mars

← Free Lesson Plans for Teachers

Free Lesson Plan

Grade 6Coding3 sessions x 50 minOzobot2-AP-102-AP-17

⬇ Download PDF (lesson, student sheets & answer key)

Driving question: How can we design, test, and refine an algorithm for a robot mission?

Overview

The Perseverance rover on reddish Martian ground
NASA's Perseverance rover takes a selfie on Mars, 2021. Photo: NASA/JPL-Caltech/MSSS, Public domain, via Wikimedia Commons.

Students plan an algorithm with a flowchart or pseudocode for an Ozobot Evo to navigate the Mission to Mars challenge mat, collect supply crates, and reach the base. They code in Ozobot Blockly, then try the program from several starting setups (different start points and crate orders) and improve it.

Students sketch a plan with a flowchart or plain-language steps, then try the program from several setups and improve it.

Standards

CodeStandard
CSTA 2-AP-10 (2017)planning a program with a flowchart or plain-language steps
CSTA 2-AP-17 (2017)trying a program from several setups and improving it

CSTA K-12 CS Standards (2017), Level 2 (grades 6-8). This lesson has not been reviewed or endorsed by CSTA.

Learning Objectives

Students will:

  • write a flowchart or pseudocode for a multi-step task.
  • code the robot in blocks.
  • test with multiple test cases and refine.

Materials

Geyer resources for this lesson

Also needed

  • Devices with Ozobot Blockly (browser, 1 per robot)
  • Masking tape to mark Start A, B, and C on the mat
  • Test case cards (supplied in Teacher Notes below; 1 set per team)
  • Student Sheets 1-2

Vocabulary

WordWhat it means
algorithmA step-by-step set of instructions to solve a problem.
flowchartA diagram showing the steps and decisions in an algorithm.
pseudocodePlain-language steps written like code.
test caseA specific situation used to check a program.
refineImprove based on testing.

Safety Notes

  • Charge Evo before class with the provided cable; unplug cords from walkways.
  • Keep the mat flat on a table; do not let the robot drive off the edge.

Before You Teach

  • Charge robots. Calibrate Evo on the screen or mat per Ozobot instructions.
  • Mark three start spots on the mat with tape labeled Start A (e.g., Landing Site), Start B, and Start C.

Warm-Up (5 min)

  • Ask: "How would you give directions to a rover on Mars when signals take minutes to arrive?"

Procedure

Session 1: Plan the algorithm (45 min)

  1. Teams study the mat and the mission: use the Evo robot arm to push/collect two crates, then drive to Base Camp.
  2. Write a flowchart or pseudocode on Student Sheet 1, including at least one decision (if/else) or loop.

Session 2: Code (50 min)

  1. Translate the plan into Ozobot Blockly blocks. Load to Evo.
  2. Run the main test case.

Session 3: Test and refine (50 min)

  1. Run three test cases (different starts or crate orders). Record pass/fail and the cause of failures on Student Sheet 2.
  2. Refine and retest until all cases pass.
  3. Present the flowchart and one refinement.

Differentiation

SupportOn-levelChallenge
• Provide a partial flowchart.
• Two test cases.
• Complete the procedure and student sheets as written.• Use line-following with color-code decisions.
• Minimize total path length.

Assessment

  • Check flowcharts for decisions.
  • Check test logs.

Exit ticket: Ask: "Which test case revealed a bug, and how did you fix it?"

CriterionBeginningDevelopingProficient
AlgorithmSteps onlySome decisionsClear flowchart with decisions/loops
TestingOne caseTwo casesThree or more with causes recorded
RefinementNoneOne fixIterated until all cases pass

Extensions

  • Research how NASA rovers drive autonomously.
  • Related: Coding Across the USA (Lesson 106).

Student Sheets

Use these sheets in class, or download the PDF for a print-ready layout.

Student Sheet 1

Mission Algorithm

Print-ready version in the PDF.

Name: ______________________________   Date: ______________

Flowchart or pseudocode: start, move, decisions (if/else), loops, collect crates, reach base.

Student Sheet 2

Test Log

Print-ready version in the PDF.

Name: ______________________________   Date: ______________

Test caseExpected resultActual resultPass / failCause and fix
Start A, crate 1 then 2
Start B, crate 2 then 1
Start C, crate 1 then 2

Our most important refinement:

Show answer key (for teachers)

Answer Key & Teacher Notes

Sheets 1-2

  • Algorithms vary. A strong flowchart has a clear start and end, at least one decision (e.g., "if crate found, push to base; else keep searching"), and a loop.
  • Common bugs: turn angles off, distance errors, a start position not handled; fixes are recorded with the test case that found them.

Test Case Cards (for Session 3)

  • Card 1: Start A (Landing Site), collect Crate 1 then Crate 2, end at Base Camp.
  • Card 2: Start B (west ridge), collect Crate 2 then Crate 1, end at Base Camp.
  • Card 3: Start C (north crater), collect Crate 1 then Crate 2 with one obstacle detour, end at Base Camp.

Need a print-ready copy? The PDF includes the lesson, student sheets, and answer key.

Download the PDF  |  All free lesson plans

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/JPL-Caltech/MSSS, Public domain, via Wikimedia Commons.