Lesson 2
Light patterns
Introduction
Students create a light pattern for a sensory aid, writing and following an algorithm using pseudocode and iteration to program their micro:bit.
Learning objectives
- To use pseudocode to write an algorithm for a light pattern
- To use iteration in algorithms and programs to create a repeating light pattern
- To evaluate an algorithm and program to ensure they meet criteria
You will need
Downloadable resources:
- Lesson plan
- Lesson slides
- Student handouts
- HEX files
- criteria review
- bubble tube
- repeating pattern
- random image pattern
Other resources:
Paper - large sheets
Quick links

Lessons created in partnership with Nominet
Lesson plan
Introduction: A sensory classroom (10 minutes)
Creating repeating patterns (10 minutes)
Writing algorithms (10 minutes)
Turning algorithms into programs (15 minutes)
Evaluating programs (10 minutes)
Code available
Wrap up (5 minutes)
Extension ideas
Code available
Differentiation
Code available
Opportunities for assessment
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.