What You’ll Need :
For the Book
For the Security System
Creating the Book --
This portion of the project needs to be completed ahead of time. We suggest to start at least 48 hours before the scheduled class.
-First you’ll need to glue the pages of the book together. Make sure that the pages are independent of both the front and back cover. Use plastic sheeting to protect the covers. Spread a generous amount of glue on outside of the book pages. Use something heavy to compress the pages while the dry. Make sure to place another piece of plastic between the book and the heavy object. Let dry for 24 hours.
- Once the glue is dry, draw a guideline on the first page. Make sure to leave a generous border of paper so that the outer walls of the hidden pocket will be strong. Using the bandsaw, cut along the line to create the secret compartment. Make sure you are only cutting through the paper. Start cutting at the top left part of the book (near the spine) and cut your pocket. The final/exiting cut should be approximately 1.3 inches from your entry cut. This space will be for a sensor.
Once the paper has been cut, glue the inside of the pocket to keep the pages from separating. Once the second coat of glue is dry, you will need to cut the pages away from the FRONT cover so that the spine of the book can open and lay completely flat. Next you’ll need to create a space for the largest sensor and the power cord. There are two options for this. You can use a utility knife or small hand saw to create the space OR you can completely separate the pages from the book and use the bandsaw saw. This space will need to be on the create an opening from the inner pocket to the spine. It needs to be approximately 1 inch and will need to correspond to the opening in the coordinating wood box. We suggest tracing the sides of the inner pocket onto the back cover to aid in re-aligning everything. Once you’ve created the two spaces, glue the back cover to the pages and glue the inside of the two spaces you’ve created. We added an additional layer of glue to all sides of the pages but this isn’t required (but why not, right?).
-To create the interior box for the components, measure and adjust files to fit each book. You’ll also need to cut the holes for the IR sensor on the laser. The best way to achieve this is to cut from the outside of the book (cover side). Make sure to use some risers in the laser or the spine won’t be level and cause some focal issues! All the files can be found here (DXF or Corel). Pre-glue wood portions of the box.
-Finally, you’ll need to cut out the locking mechanism. Do not glue this in place and it will depend on the placement of the servo. This should be done in class. ** I am still trying to work through this. Any suggestions would be AMAZING**
-At this point, the book prep is completed and should be ready for class.
IN CLASS PORTION
-Head on over to Adafruit IO and make an account. If you already have one, you get to skip this step!
-Grab a laptop or computer with the latest version of Arduino IDE
-First, you’ll need to download and install the Adafruit IO Arduino Library. Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into Additional Board Manager URLs field in the Arduino preferences.
-Next, use the Board manager to install the ESP8266 package.
-After the install process, you should see that ESP8266 package is marked INSTALLED. Close the Boards Manager window once the install process has completed. When you've restarted, select Adafruit HUZZAH ESP8266 from the Tools->Board dropdown.
-Next we need to install Adafruit IO, Adafruit MQTT, ArduinoHttpClient, Adafruit Unified Sensor, and DHT Sensor Libraries. To do this, navigate to Manage Libraries > Sketch > Include Library. Enter Adafruit IO Arduino in the search menu and click on the Adafruit IO option to install. Repeat this process for the following libraries; Adafruit MQTT, ArduionoHttpClient, Adafruit Unified Sensor and DHT Sensor.
Putting it all together -
** NOTE ** The Sensor on the top left (two small blueish green bars) is the magnetic door switch.
Setting up the Dashboard
Lastly, you need to setup a dashboard so you can control and monitor your book from your mobile device.
Servo (Locking/Unlocking Mechanism)
First you need to create a new Feed.
Next, you need to create the final dashboard.
Now it’s time to put it all together!