a1tQ200000986CjIAI

Course: AI LAB- Level 1
4. Blinking Functions & Variables

  • 6-9 grade
  • Beginner

Lesson Description:

Lesson Description: 
In this lesson, students will control the color of the LEDs of NAO. They will familiarize themselves with the concept of variable and functions.

Objectives:

  • Identify variables and determine their values.
  • Define and call variables in the context of real-life activities.
  • Store a variable as a color value and pass it to a function to change LED's color
  • Be able to change the color of NAO's eyes.
  • Modify functions to accept parameters.
  • Describe how functions and parameters can make programs easier to write

image description

Lesson Modules


Teaching Tips:

You can download the code for this lessons here

In this lesson, the students will modify NAO's LED around the eyes using the proper Choregraphe boxes.

By doing that, they will get exposed to the concept of variable and functions. The variable is the color of the LEDs the function is the box the lights the LED of the robot.

 

Look at the NAO robot and pay attention. 

What did you notice while NAO was talking and playing music?