Octobot Part-2

Lesson 26/38 | Study Time: 20 Min
Octobot Part-2

Lesson Overview

This lesson is the continuation of the previous lesson. Here we will use the craftwork from the previous class and program it is using the Micro:bit to retract its tentacles. They will write the code in MakeCode for the Octobot. Here, students will use the number of blocks related to the servo. You will also use the concept of while loop, conditional statements and functions to write the code.

 

Performance Expectations 

  1. Students will make a robot-like octopus with the help of Micro:bit
  2. Students will learn how to use a servomotor to retract the tentacles
  3. Students will learn the concepts of while loop, if statement, functions

 

Guiding Ideas

Students must use the second version of Micro:bit to trigger the sound. Use events such as button press to try retracting and extending the tentacles. Use the ‘Tentacle Action’ function, to play with the Octobot. Thread should slide into the thin cutouts in the body. 

Make sure that the servo wire should go through the larger cutout. Students can add a bit of glue to secure the body to the cardboard base.

 

Disclaimer: All content under this course is customized according to the requirement of an educator/student (K12) filtered from Minecraft Education Edition, MakeCode Microbit, Code.org, and other sources.