Skip to Main Content
Save the World with Code: 20 Fun Projects for All Ages Using Raspberry Pi, micro:bit, and Circuit Playground Express
book

Save the World with Code: 20 Fun Projects for All Ages Using Raspberry Pi, micro:bit, and Circuit Playground Express

by Lorraine Underwood
April 2020
Intermediate to advanced content levelIntermediate to advanced
224 pages
6h 2m
English
McGraw-Hill Education TAB
Content preview from Save the World with Code: 20 Fun Projects for All Ages Using Raspberry Pi, micro:bit, and Circuit Playground Express

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Science and Engineering Projects Using the Arduino and Raspberry Pi: Explore STEM Concepts with Microcomputers

Science and Engineering Projects Using the Arduino and Raspberry Pi: Explore STEM Concepts with Microcomputers

Paul Bradt, David Bradt
Card Games by Thiagi: A User's Guide

Card Games by Thiagi: A User's Guide

Sivasailam Thiagi Thiagarajan

Publisher Resources

ISBN: 9781260457605