mBot: Pattern Recognition (Gr. 5)

Making patterns with geometry and light!


The technical understanding of patterns constantly arises in math and science, and coding is no different. Many important algorithms use patterns in order to work. In this lesson, students will appreciate the utility of loops by first driving in a square (the hard way) and then are taught a more efficient method (using loops). Moving onto more complex (regular) shapes forces students to dissect the smallest repeatable unit in the pattern. Lastly students will start referring to each action in the pattern as a term, use the term number, and utilize the mBot's lights and sounds to create and dissect more interesting patterns.

Overall Curriculum Learning Goals

  • Extrapolating Patterns (Lesson Focus)
  • Regular Polygons
  • Internal and External Angles
  • Term Numbers

Overall Coding Learning Goals

  • Loops
  • Precise Motor Control
  • RGB LEDs
  • Tones

Educational Standards

  • Grade 5 Mathematics – Geometry and Spatial Sense
  • Grade 5 Mathematics – Patterning and Algebra

British Columbia

  • Grade 5 Mathematics – Patterns and Relations


  • Grade 5 Mathematics – Patterns and Relations

Lesson Procedure

  • Class 1 - Intro to mBlock, Driving in a Square, and Geometrical Patterns (~45min)
  • Class 2 - Lights, Sounds and Term Numbers (~45min)

Robots and Accessories

  • mBots

Other Supplies

  • Laptops
  • Makeblock Software

Find Out More


mbot is the best of both worlds, transitioning students from Scratch Blocks to Text Code