Secret Hollow Book Intrusion Detector

Similar documents
Pushrod Garage. Created by John Park. Last updated on :07:30 PM UTC

NeoPixie Dust Bag with Circuit Playground Express

Wind Blowing Emoji Prop

Slider Crank Mechanism -- from Cardboard and Craft Sticks

Crickit Carnival Bumper Bot

Infinity Mirror Valentine's Candy Box

Circuit Playground Express Laser Tag

Bunny Ears with MakeCode

Snake Charmer Box. Created by Dano Wall. Last updated on :07:25 PM UTC

Crawling Baby Sea Turtle Robot

Crickit Dancing Marionette Kit Created by Dano Wall. Last updated on :03:11 PM UTC

Con Badge with Circuit Playground Express

Hammer Time Mini Golf Hazard with Crickit

Glowing Smokey Skull. Created by Ruiz Brothers. Last updated on :03:40 PM UTC

Steven Universe Cosplay Shirt & Gem Created by Erin St Blaine. Last updated on :54:25 PM UTC

Adabot Operation Game

Android GBoard Morse Code Control with Circuit Playground Express

Sword & Wand Prop Effects with Circuit Playground

CPX Mystery Dreidel. Created by Kathy Ceceri. Last updated on :51:40 PM UTC

Crawling Animatronic Hand

Modifying Servos for Continuous Rotation

UFO Flying Saucer with Circuit Playground Express

CircuitPython Snow Globe

Organza Shadowbox. Project Needs & Notes:

Crickit Powered Holiday Diorama

Ping Pong Ball Launcher

Easy Sparkle Pocket T-Shirt

Paper Airplane Launcher

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

Circuit Playground Express Head-Tilt Ears

Stumble-Bot. Created by Dano Wall. Last updated on :04:06 AM UTC

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Circuit Playground Digital Input

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

Sewable NeoPixels. Created by Becky Stern. Last updated on :50:14 PM EDT

Coffee Detonator: The TNT Plunger Grinder

Sino:bit with Arduino

Mini Golf Course with Circuit Playground and Crickit

Ring Doorbell is 4.98 x 2.43 x 0.87 inches, x 6.17 x 2.21 cm.

'Sup Brows. Created by Kate Hartman. Last updated on :52:04 PM UTC

Circuit Playground Kaleidoscope

The Scream: Interactive Screaming Painting

Home Security Begins at the Front Door

Trash Panda. Created by Dano Wall. Last updated on :30:46 AM UTC

Circuit Playground Combadge

NeoPixel Fairy Crown. Created by Erin St Blaine. Last updated on :22:47 AM UTC

BLE Light Switch with Feather nrf52840 and Crickit

No-Sew LED Wristband. Created by Kathy Ceceri. Last updated on :23:40 PM UTC

GPS Logging Dog Harness

Crickit Powered Mini Chair Swing Ride!

Adafruit Capacitive Touch Sensor Breakouts

Tent Lantern. Created by Timothy Reese. Last updated on :17:25 AM UTC

Using Zapier with Adafruit IO

Adafruit MPRLS Ported Pressure Sensor Breakout

NeoMatrix 8x8 Word Clock

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Making Adabot: Part 1

Portable Apple Watch Charger

ISS Pin. Created by Leslie Birch. Last updated on :27:30 PM UTC

Boomy The Boombox. Created by Ruiz Brothers. Last updated on :52:13 PM UTC

Adafruit IO Basics: Digital Input

Interactive Gift Box. Created by codingpro. Last updated on :47:40 AM UTC

Adafruit MMA8451 Accelerometer Breakout

Interior Purse Light. Created by Becky Stern. Last updated on :41:08 PM UTC

Introducing Adafruit Trellis

Punk LED Collar. Created by Becky Stern. Last updated on :02:45 PM EST

Prophet 600 GliGli mod

1. Charging. 2. In-app Setup. 3. Physical Installation. 4. Features. 5. Troubleshooting. Home Security Begins at the Front Door.

Circuit Playground Yoyo

Webcam Cover-Up Lego brick with Adabot Mini Fig

Audio Prank Gift Box. Created by Becky Stern. Last updated on :46:15 PM UTC

Phone-Activated Talking Dog Collar

Adafruit GPS Hat in Windows IoT Core

Adafruit IO Basics: Feeds

Adafruit APDS9960 breakout

I start the work by removing the 4 screws holding the frames to the sash.

3D Printed LED Goggles

Bluetooth Controlled NeoPixel Headphones

Simple LED Unicorn Horn

Adafruit PowerBoost 500 Shield

LED Eyes. Created by Ruiz Brothers. Last updated on :50:55 AM UTC

Clockwork Goggles. Created by John Park. Last updated on :03:10 PM UTC

Using IFTTT with Adafruit IO to Make an IoT Door Detector

0.96" mini Color OLED

Trellis 3D Printed Enclosure

PyPortal NeoPixel Color Picker Created by Kattni Rembor. Last updated on :42:41 PM UTC

Celebration Spectacles

Alarm.com Wi-Fi Doorbell Camera and Slim Line - Installation Guide

TSL2561 Luminosity Sensor

Glowing Star Chuck Taylor Sneakers

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Datalogging Hat with FLORA BLE

Adafruit DRV2605 Haptic Controller Breakout

Adafruit 8x16 LED Matrix FeatherWing

NeoPixel Ring Bangle Bracelet

Milk Jug Glow Skull. Created by John Park. Last updated on :28:36 PM UTC

Trinket-Powered Conference Room Occupancy Display

Adafruit IO Basics: Analog Input

Cup o' Sound. Created by Becky Stern. Last updated on :30:06 PM EST

Transcription:

Secret Hollow Book Intrusion Detector Created by John Park Last updated on 2018-08-22 04:05:48 PM UTC

Guide Contents Guide Contents Overview Materials & Tools Optional Android Hollowing the Book Preparation Glue Up Clamp It Measure & Mark Make the Cut Glue the Hollow Clamp Time Building the Alarm Motion Detection Orientation Silent Detection Tracking State Inputs If-Else Comparisons Haven: Keep Watch App 2 3 4 4 5 5 6 7 7 9 11 13 15 15 16 18 21 21 21 23 Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 2 of 24

Overview The bad guys will always go for your safe to discover your secrets, so why not store them in plain sight with a hollowed out? Or, perhaps you need to hand off an item to one of your operatives -- use a hollow book as a dead drop, perhaps hidden amongst the stacks at a library or used book store... This guide will show you how to build the classic secret hollow book safe. You'll also learn how to make a motion detection alarm using a Circuit Playground Express, and get a primer on the ultimate physical security app for Android -- Haven. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 3 of 24

Materials & Tools You'll need an old book that is no longer wanted. A great source for these can be a thrift shop or the used book store at your local library. Hardcover books are nice to work with, but you can use a soft cover just as well. Be sure the book is thick enough to hold your items. In hollow and seal the book, you'll need: Utility knife with fresh, sharp blade Straight edge Speed square Pencil Small paintbrush Mod Podge or white glue Sheet of Mylar or plastic cling wrap Small clamps (optional, you can stack heavy items instead) Optional Android If you want to try out the Haven app for capturing whomever is snooping in your book safe, you'll need an Android phone. It doesn't need to be a new phone, as Haven was written to run well on older devices. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 4 of 24

Hollowing the Book Preparation Step one is to seal the bulk of the pages and back cover of the book into a solid chunk, leaving the front cover and a few pages loose. Gather your supplies and tools, then select the starting point for your hollowing -- typically, you'll want to leave a few uncut pages at the beginning. Insert your Mylar sheet or cling wrap at the page where you'll be cutting in order to mask the front cover and loose pages from the glue you'll use. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 5 of 24

Glue Up Using the brush, apply a liberal amount of glue around all of the edges of the pages. There's no need to put glue in between each page -- the glue will soak in a bit and bind the pages, as well as the back cover. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 6 of 24

Clamp It Once you've glued the page edges on all three sides, it's time to press the book closed firmly and allow it time to dry. Ideally, you'll use a set of spring clamps or c-clamps to hold the book closed during drying, about 30 minutes will do. If you don't have any clamps, stack some very heavy objects on top of the book while it is sitting on a hard, level surface. You want the pages compressed together tightly. If you can't find anything suitably heavy, it's fine to put the book between to boards and sit on it. Seriously. Measure & Mark Once the glue has dried for at least 30 minutes, carefully open the front cover and loose pages, then remove the Mylar sheet or cling wrap. If there is any excess glue around the edges, trim it away with a hobby knife. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 7 of 24

Using a straight edge/square and a pencil, mark the rectangle you'll cut for your hollow section. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 8 of 24

Make the Cut Use the straight edge as a guide, pushing down firmly, and then cut a few pages deep with the utility knife. You don't need to try to cut too deeply, this process works best if you cut moderate sections at a time. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 9 of 24

Make a cut along each edge of your rectangle, then lift up and remove the cut section of paper. Avoid pulling the paper out if it is stuck at a corner, and instead cut with the knife -- the small leftover corner bits can start to build up! Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 10 of 24

After ten minutes or so, you should be at a pretty nice depth into the hollow. Avoid cutting down into the back cover! If you know of a specific object you'll be hiding in your book safe, make sure to test its depth as you're working so that the hollow doesn't come up shallow. Glue the Hollow Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 11 of 24

Once you've gotten the hollow where you want it, it's time to seal the interior. Again, using your small brush, apply the Mod Podge or white glue to the page edges that form the inside walls. Once you've sealed up the walls of the hollow, insert the Mylar sheet or cling wrap between the hollow page and the loose, uncut pages. This will protect the loose page from getting stuck to the glue while it's drying. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 12 of 24

Clamp Time Yes, it's that time again -- Clamp Time! Close the book, then place it between two boards or books and clamp it all down tightly. C-clamps work really well for this, because we can generate a lot of clamping pressure. The boards help distribute the pressure evenly, in order to flatten the inside edges of the hollow, which tend to curl up during cutting and gluing. Let the glue dry for at least a half an hour, then remove the clamps and boards. Carefully peel away the protective mylar sheet or cling wrap. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 13 of 24

Your hollow book is ready for use! You can now hide your secret items in it and place it upon a shelf, or, go to the next page to learn to build a Circuit Playground Express alarm! Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 14 of 24

Building the Alarm If you want to catch someone in the act snooping at your secret hollow book safe, you can build a small motion or light detecting alarm using a Circuit Playground Express (CPX) and MakeCode. When the CPX detects motion or light, meaning the book has been moved or opened, you can have it sound an alarm. Then, you can rush into the room and catch the spy red handed! What if you're not around, and the spy resets the alarm? You can program the equivalent of the proverbial "hair taped across a door frame" trick by setting a color pattern in advance that changes if the CPX is disturbed. The spy will never know that they've left evidence of their misdeeds! Motion Detection First, let's build a motion detection alarm. If you aren't familiar with using Make Code to create programs for your Circuit Playground Express, take a look at this excellent getting started guide (https://adafru.it/aep). Once you're comfortable writing and uploading programs to your CPX, return to this page. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 15 of 24

Orientation We'll use the built-in accelerometer on the CPX to detect when the book is taken off the shelf laid on it's "back" to be opened. The accelerometer can tell it's orientation relative to the Earth's gravitational pull. When the CPX is laid "face up", for example, the accelerometer will report a strong pull value on the negative Z-axis. In Make Code we'll use the accelerometer input block (found initially in the input category as "on shake") to check orientation. By switching the dropdown to "face up", it will run whenever the board is on its back with the positive Z- axis facing up, away from the ground. Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 16 of 24

The rest of the code is necessary to "flip a switch" with a variable named "alarm" when the CPX is face up. By setting the "alarm" variable's value to 1 when the board is set face up, we can then have the siren continue to sound even when the board orientation changes. This means the spy snooping at your safe can't turn it off just by re-placing the book on the shelf! Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 17 of 24

You can download the code from the window below, and then place it on your CPX to test it out! Once you're annoyed by the sound, you can reset the CPX to stop it. Silent Detection The motion alarm works great if you're nearby and can catch your spy in action. But, what about an alarm that will let you know later if your book safe has been opened, without alerting the spy? Perhaps you've planted some counterintelligence or misinformation you wan the spy to see, and just want to know for certain that it's been accessed. We'll use a light detector as the input, and then, a secret pattern of LEDs to know when the book has been opened. The sneakiest part is this: even if the spy resets or turns off and on the alarm, you'll know about it! Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 18 of 24

This program is a little bit more involved than the motion detector, but mostly because it needs to keep track of a few different states. Here's the basic flow: Turn on the CPX Two NeoPixels will turn red Arm it by flipping the switch right and pressing button A The NeoPixels all turn off You have two seconds to close it in the book to keep light off of the light detector When the book is opened for the first time, light will trip the "alarm", turning on all NeoPixels to a light blue for two seconds, then switch to just two yellow NeoPixels -- this is how you know someone's been snooping! Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 19 of 24

Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 20 of 24

If you check the book alarm and see it turn blue and then yellow, you know that nobody else has tripped it yet. If you check and the lights are already yellow, then it has already been tripped. And, if the spy freaks out and tries to reset the alarm or turn it off and on, you'll know it, because the lights will be red. Only by entering the secret switch/button combination can you re-arm the alarm! Tracking State Once you've worked out the logical flow, the implementation comes down to creating variables that keep track of the various states, inputs that change these variables, and if-else statements that change the NeoPixels depending on the states of the various variables. These are: armed switchcode buttoncode tripped firsttrip You will then create inputs, such as "on button A click" to switch the "buttoncode" variable from 0 to 1 when pressed. Inputs You will then create inputs, such as "on button A click" to switch the "buttoncode" variable from 0 to 1 when pressed. These are: on button A click on button B click on switch moved right on switch moved left on light bright If-Else Comparisons Based upon the established logical flow, the comparisons used in the if-else statements are: if the system hasn't been tripped (tripped == 0), check the button and switch states Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 21 of 24

if buttoncode == 0 and/or switchcode == 0, the system is unarmed, two NeoPixels are lit red if buttoncode == 1 and switchcode == 1, set the NeoPixels black, wait 2 seconds, arm the system if the system is armed and the light sensor is triggered by light, set the tripped state to 1, and set the buttoncode to 0 and switchcode to 0, so they won't keep re-arming things over and over if the system has been tripped and it is the firsttrip, set all NeoPixels blue, pause 2 seconds, then switch the firsttrip state to 0 if the system has been tripped, but it is not the firsttrip, set two NeoPixels to yellow Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 22 of 24

Haven: Keep Watch App A much more sophisticated way to keep electronic watch over your secret book safe's contents, is to run the Haven (https://adafru.it/cje) app on a burner Android phone. The open source Haven software was designed by The Guardian Project (https://adafru.it/cjf), the Freedom of the Press Foundation (https://adafru.it/cjg), Edward Snowden (https://adafru.it/cji), and Micah F. Lee (https://adafru.it/cjk) to turn any Android phone into a physical Adafruit Industries https://learn.adafruit.com/secret-hollow-book Page 23 of 24

intrusion sensor. Haven uses sound, light, vibration, and image motion detection to sense environmental change, store local logs of all activity, and can be configured to send alerts to your personal phone over SMS or with the end-to-end encrypted Signal (https://adafru.it/cjl) app. The app was built to run on older phones, so you can run it on an old Android phone you've got sitting in a drawer somewhere, or pick up a cheap burner phone. Install and configure the app as shown in the Haven docs (https://adafru.it/cje). Once you've got it set up, you can hide it, along with your top secret items, inside your hollow book safe! Any snoop that comes along and finds your secret book will be photographed and recorded in the act, with an alert going to your personal phone immediately. You could also modify your secret book with a small hole positioned in front of the phone's camera to create a hidden Haven device to keep watch over your whole room. Adafruit Industries Last Updated: 2018-08-22 04:05:43 PM UTC Page 24 of 24