A smart light switch
Micro:bit Mastery - Lesson 6
Objectives
- To combine AI machine learning and radio sending to create a smart device.
- To innovate and improve a smart device.
Lesson Resources
- Lesson Slides
- BBC micro:bits (minimum 1:2 students)
- micro USB cables to connect micro:bits to computers
- 1 computer per micro:bit
Lesson 1 - Conditions, variable and random outputs
Lesson 2 - Dig into the data
Lesson 3 - AI Machine Learning
Lesson 4 - Radio coded messages
Lesson 5 - More secure messaging
Lesson 6 - A smart light switch
Before you start
Before you begin, please read these important notes:
- This is a new unit of work, created in October 2025.
- It has been designed to follow on from our unit of work: Getting Started with the BBC micro:bit.
- That unit has been updated and moved to the Year 4 section in our scheme of work.
- If your students are new to a BBC micro:bit, we would recommend beginning with the ‘Getting Started’ unit, instead of these lesson.
- If your class have covered that unit already, or are quite experienced with using a micro:bit, go ahead and dive in to this unit, and have fun!
We would recommend delivering your lessons using the micro:bit classroom feature on microbit.org. This is very simple to use and gives really useful classroom management options for your lesson, such as:
- being able to send code to your students,
- view and edit their code from your screen,
- freeze their screens when you need their attention
- download a report of the lesson, including images of their screens
- save the entire session and resume it at a later date
All without the hassle of having to create student accounts. No usernames and passwords are needed.
You can find out more and watch a introduction video at microbit.org/teach/teaching-tools
You can get started with a lesson at classroom.microbit.org
Introduction
To finish
Ask the students to talk to a partner about their success with the projects today. Consider these questions:
- Did your programs begin in response to an input?
- What are conditional statements in a program?
- Why are they useful?
- How have you used variables today?
- Can you think of any ways to improve your programs today?
Finish by revisiting the lesson objectives and asking students to consider their success and understanding. Invite any questions or requests for support if needed.
