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 10

Cookie Jar Protector

Cookies are important; cookies are precious. Let’s create an alarm to keep them safe.

You could use the same code and setup from Mission 8 here. What I find, though, is that people spot the tinfoil and know that the alarm is there. In this mission, we create an alarm that’s invisible until it’s too late, and the perps are caught!

I keep my cookies in a solid jar, none of that see-through nonsense. “Out of sight, out of mind” is my motto when it comes to guarding cookies. This means that when the cookies are safe, it’s dark. When someone has opened the cookie lid, it’s bright. We’re also going to add an extra level of security with each device: a compass sensor for the micro:bit and a sound level sensor for the ...

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