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 13

Floor Mat Alarm

For rooms where there are no doors or doors on which we don’t want to put electronics on the outside of, we can create a floor mat alarm. This is perfect if you share a room with a sibling and don’t want him or her on your side of the room. You create a sensor that will set off an alarm if he or she steps on it.

Algorithm

This sensor is basically the opposite of the door and cookie sensors. Rather than breaking the circuit, the circuit is created. It’s Mission 1 with a floor mat instead of you!

If circuit is created

      Set off alarm

What’s very different is the build. The first part of the build is the same for all three devices.

Build

The build is the same for all devices, up to the moment you attach the device. ...

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