Micro:bit Presence detection

Introduction

The Micro:bit board is a compact and powerful educational microcontroller designed to inspire creativity and programming learning in young people. Launched in 2015 by the BBC in the UK as part of the “Make It Digital” initiative, the Micro:bit has quickly become a popular tool worldwide for teaching programming and computer science.

The Micro:bit measures around 4 centimetres by 5 centimetres and is packed with a variety of features, making it an ideal choice for programming beginners.

The circuit contains a presence detector which checks whether an individual is present in a room. If an individual is detected, the buzzer sounds:

If no one is detected, the Micro:Bit LEDs display a cross, and when the presence detector detects an object, the Micro:Bit displays the validated logo and sounds the buzzer:

Here’s the simulation on Tinkercad. You can click on the presence detector and move the point corresponding to the object: