CyberPi: Colour Mixer (Gr. 6-8)

Block-Based: Beginner


Description

In this lesson, students will be introduced to variables to create a CyberPi Colour Mixer. This program will use the joystick and buttons to control the R, G, B colour values of all of the on-board LEDs. Then, students will use conditional statements to ensure that the R, G, B values do not go out-of-range.

Objectives

  • Use a variable to store a value.
  • Change a variable based on user input.
  • Write a program in mBlock that executes a program if a condition is met.

Curriculum Connections Summary

  • Ontario - Mathematics - Algebra (Coding)
  • Quebec - Science
  • New Brunswick - Science
  • Nova Scotia - ICT
  • Alberta - CTF
  • British Columbia - ADST
  • Manitoba - Science
  • Prince Edward Island - Science
  • Saskatchewan - Science
  • Newfoundland & Labrador - Science
  • Yukon Territories - Follow's B.C.'s Curriculum
  • Northwest Territories - Follows Alberta's Curriculum
  • Nunavut - Follows Alberta's Curriculum


Find Out More


CyberPi
CyberPi

Networkable microcontroller for Computer Science and AI education

CyberPi is a single-board computer, packed with advanced electronics which makes it a powerful coding machine! In combination with an impressive mBlock coding editor, it supports the development of coding skills from block-based programming to Python. The Python editor is a platform designed for learning and teaching Python and Micropython - taking AI, IoT and Data Science learning to the next level!