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
Get coding
Now open the MakeCode editor where you’ll write the code for your program:
How to transfer your program to your micro:bit
Discover more
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:
Share!
Let us know how you got on by sharing your project with us. Use the #microbit hashtag on Twitter or Facebook.
Sign up for our weekly email newsletter to get regular updates on new activities and ideas for your micro:bit.