MISSION 14

Treasure Box Alarm

Like all normal adults, I have a treasure box full of valuables in my room. I need an alarm to keep my treasure safe, but all my previous alarms won’t work.

My treasure box is so full that the lid won’t close. This means that I can’t use the tinfoil alarm or the brightness alarm. My treasure box is also really heavy. No one is going to move it. A thief is just going to open the lid and take my treasure. I can’t use the compass alarm.

What I can use is a movement alarm. If the lid is lifted up, it can be sensed and set off an alarm.

Algorithm

Images

micro:bit

Build

I’ve taped my micro:bit inside the treasure box lid so ...

Get Save the World with Code: 20 Fun Projects for All Ages Using Raspberry Pi, micro:bit, and Circuit Playground Express now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.