Ozobot Classroom

Lesson Creator

  • Preparation
  • Direct Instruction
  • Student Practice
  • Supplements
  • Review

1. Tell Us About Your Lesson

All fields are required unless marked as optional

A. Lesson Overview


Students will

B. Lesson Details

Lesson Duration (minutes)The time (minutes) to complete the whole lesson.

Grade LevelsSelect all that apply


Subjects/TopicsChoose the most relevant subject(s). Select up to 3.


    Coding Styles


    Product Lessons


    Tested With

    2. Preparation

    This helps the teacher prepare for the lesson before the class session

    A. Student Materials

    B. Background Knowledge (Optional)

    C. Lesson Tips (Optional)

    Add tips for the educator that don't fit into Direct Instruction or Student Practice. You can always return to this page to add more.

    • This lesson can be completed in 60-90 minutes, but feel free to extend the time if students are invested in writing and creating more elaborate codes and functions.
    • Remind your students to choose “Evo” when coding in Ozoblockly
    • While the “Functions” category of blocks lives in Level 4 and 5, allow students to use and explore blocks in the lower levels as well. They will likely find that the movement blocks in Levels 2 and 3 will be more easily utilized.
    • If students have trouble coming up with a idea for their program, hold a brainstorming session before releasing them to work independently. Some ideas include: racecar, bunny, ballerina, breakdancer, snake, and dog.
    • To access the complete Popstar Program, go to
    URL: https://ozoblockly.com/editor?lang=en&robot=evo&mode=4#z3xhsa Share Code: z3xhsa
    • Optional: For students that created their own “pop star” functions, have their Ozobot perform in a “Pop Star” Competition. Select judges to critique the following criteria:
    Function codes (Can a viewer identify where a function was used?) Movement codes and Visual Effects Music Codes

    3. Direct Instruction (Teacher-Facing Instructions)

    These are the steps the educator will read. Include any front loading, modeling or explicit instruction before students work independently or in groups.

    Instruction

    Tell students that they will be writing multiple functions to compile into a singular program.

    Instruction

    Ask students what behaviors a pop star might display while performing on stage. If needed, Brainstorm some famous pop stars that students could choose to mimic. Some ideas may include Beyonce, Justin Timberlake, Lady Gaga. If helpful, have students choose one star to focus the project on.

    Instruction

    Display a blank Functions Planning Sheet and model how to complete the worksheet. Model how “moonwalk, dance, and sing” would be fitting for function names. Fill out potential behaviors, and model how to explore blockly for blocks that could be used to code the behavior. Tell students that with OzoBlockly, there will be a broader variety of code available than when they solely used color codes.

    Note: While the “Functions” category of blocks lives in Level 4 and 5, allow students to use and explore blocks in the lower levels as well. They will likely find that the movement blocks in Level 3 will be more easily utilized. Explain to students that they will pull the blocks from any level that makes sense for their code.

    Instruction

    Model how to create the first function by dragging a function “to ” block from level 4. You can change the name of that ‘do something’ to be anything. If your students are interested, you could show them camelCase.

    camelCase is a way that programmers save names for files, functions etc. In programming languages, spaces aren’t allowed in function names, but sometimes the names need to be descriptive. That’s why we use camelCase - the first word can be lower-case, but each following word is capitalized (yes, even those tiny prepositions and articles), e.g., goStraight, makeAUTurn, twoMinuteDance.

    Instruction

    Tell students, “This function will be called ‘moonwalk.’ What type of behavior would the Ozobot display if it was mimicking a pop star moonwalking?” Model how to build the code.

    Instruction

    Explain to students, “If we try to execute the code, the Ozobot doesn’t do anything. We’ve built the function, but in order for the bot to execute the code, we must CALL the function. We do this by dragging out the corresponding block in the function category. I named my function “Moonwalk”, so I need to drag out the “moonwalk” block. This block does not appear until I have named my function.”

    Instruction

    Model how to execute the code.

    Instruction

    Model how to build the “dance” and “sing” functions for students.

    Note: The music is a sample of what could be done, but is by no means expected. These sound blocks were pulled from Level 5, and are quite sophisticated. This is an exemplar code that introduces your students to the possibilities of what they can code. Set your students up for success by encouraging them to choose blocks that make sense to them, or allow them to copy this sample.

    Instruction

    Tell students, “Now we have three functions we can call on, and code in any order we would like. We can even call functions multiple times.” Model how to build a program by calling functions. Remind students, “When you create a function, Ozoblockly automatically makes you a new coding block with the same name. That block will execute any code you wrote in the function.”

    Instruction

    Model executing the code, and ask students, “How did our functions make it easier to code?”

    Instruction

    Display the Functions Planning Sheet Template. Explain to students that they will create their own program. Review the worksheet and set expectations for the student planning process. Allow students to choose their own subject, or allow them to make their own version of the pop star program.

    Instruction

    Optional Extension Instructions: The extension includes an opportunity for students to code the song by using nested functions. Display the sample code and lead a discussion around the chorus of the song. Access the code by: Song URL: https://ozoblockly.com/editor?lang=en&robot=evo&mode=4#imkib3 Share Code: imkib3

    Instruction

    Optional Extension Instructions: Inform students that some parts of the song repeat, and that they can write a function that calls other functions. In this case, the beginning notes of the song repeats near the middle of the progression. Remind students, calling functions simplifies code as the other option requires re-writing code that already exists.

    Instruction

    Optional Extension Instructions: Explain to students that their goal will be to write a function that calls on other functions.

    4. Student Practice (Student-Facing Instructions)

    These are step-by-step instructions delivered directly to the students as they work independently or in groups

    Student Instructions

    Instruction

    Complete your Functions Planning Sheet.

    Please upload any student resources, videos, etc. (Max. size: 512 MB videos, 10 MB all other files)

    Goal

    Instruction

    Write a function for your first function

    Please upload any student resources, videos, etc. (Max. size: 512 MB videos, 10 MB all other files)

    Goal

    Instruction

    Write a function for your second function.

    Please upload any student resources, videos, etc. (Max. size: 512 MB videos, 10 MB all other files)

    Goal

    Instruction

    Write a function for your third function.

    Please upload any student resources, videos, etc. (Max. size: 512 MB videos, 10 MB all other files)

    Goal

    Instruction

    Call your functions by writing a code. Execute the code with your Ozobot.

    Please upload any student resources, videos, etc. (Max. size: 512 MB videos, 10 MB all other files)

    Goal

    Lesson Extension (Optional)

    Add student instructions for a lesson extension.

    Instruction

    Write at least two different functions. Test them by executing them on your Ozobot.

    Please upload any student resources, videos, etc. (Max. size: 512 MB videos, 10 MB all other files)

    Goal

    Instruction

    Call those functions in a new function. Test the new code by executing them on your Ozobot.

    Please upload any student resources, videos, etc. (Max. size: 512 MB videos, 10 MB all other files)

    Goal

    5. Supplements

    A. Lesson Closure (Optional)
    Give tips for how to wrap up the lesson and assess student learning. (Want to add an attachment? Use Part C, below.)

    Initiate a discussion by asking students: Why was it helpful to use functions? How did using functions make it easier for you to code? When did it make sense to use a function? When did it not make sense to use a function?

    B. Academic Standards (At least one standard required)
    Choose a category from the dropdown on the left. In the blank on the right, begin typing the number of the standard.

      csta-1b-ap-10 csta-1b-ap-11 csta-1b-ap-15 iste-1-c iste-4-c iste-5-c

      C. Add Other Attachments (Optional)
      Please upload any student handouts, videos, sample solutions, etc. (Max. size: 1 GB videos, 10 MB all other files)

      Add Cover Image

      Review

      Please review your lesson before submitting.

      Save Draft

      Please login or create an account to access this content and more!

      Login / Create account