CyberPi: Strength Meter (Gr. 6-8)

Block-Based: Beginner


In this lesson, students will create a fun game with the CyberPi where the player shakes the CyberPi for ten seconds. The students will program the game to keep score of how many times the shaking strength is greater than 50.


  • Write a program in mBlock that keeps score.
  • Write a program that executes actions for a specified amount of time.
  • Display text on the CyberPi display.

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


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!