micro:bit at home - door alarm
Has anyone been in your room? With a micro:bit, a battery pack and a magnet you can make an alarm to alert you to sneaky snoopers...
What you'll make
Now open the MakeCode editor where you’ll write the code for your program:
How to transfer your program to your micro:bit
This project uses the compass input sensor and the LED display output. Find out more about them in the videos below:
Find out more about calibrating the micro:bit compass in our support article.
There are more micro:bit at home activities to explore:
Sign up for our weekly email newsletter to get regular updates on new activities and ideas for your micro:bit.