Project showcase
Knock To Open Treasure Chest

Knock To Open Treasure Chest © GPL3+

Treasure chest to store your most valuable things. You can only open it when you know the secret knock code.

  • 2,184 views
  • 0 comments
  • 10 respects

Components and supplies

Necessary tools and machines

Circular saw

Apps and online services

About this project

Treasaure chest in operation

Preface

My daughter asked me to build her a treasure chest that she could use to store her most valuable things. Obviously she demanded it to have some kind of a locking mechanism so only she could open the box.

First thought was to use a keypad but then her grandfather bought her a diary with a secret code. So I had to come up with something else. On Adafruit’s tutorials I came across the Secret Knock Activated Drawer Lock. Use a secret combination of knocks to open the box. An idea I instantly liked a lot. Another great thing about this drawer lock was that it was programmable, which means you can change the knock sequence to anything you like.

Thoughts

I still had to think about the closing mechanism and decided to use a servo motor. Also I wanted the box to run without power cables. But if I used batteries I would run into a problem with the box closed and the batteries without power. So it had to be rechargeable but also I had to think of how to charge them from the outside of the box. Browsing on Adafruit's page I came across the PowerBoost 1000 Charger, a neat thing to power any Arduino like microprocessor while also charging a Li-ion battery.

I also thought about making the box somehow connected either via Bluetooth or WiFi so I could operate the closing mechanism via a smartphone. But in the end I decided against it for the sake of simplicity, at least for version 1.

Bill of material

  • Arduino Nano V3.0
  • PowerBoost 1000 Charger
  • Li-ion battery 1000mAh 3.7V
  • SG90 micro servo motor | 5V | 9g
  • Piezo buzzer
  • Piezo sensor trigger drum disc
  • Switches, resistors and LEDs
  • Screws and glue

Woodworking

I wanted to build a nice box with finger joints. But I soon had to discover that was not an easy task to do with a circular saw. I followed this tutorial (German only).

I screwed and glued the box together and let it be for a week before I took up work again. I sanded the box and then cut it open.

I also needed to cut a slot for the servo disc and a holder for the servo.

Adding the hard and software

Code wise I was using most of the Adafruit’s tutorial for the drawer lock. But a thing I had to add was a detection whether the box was open or closed. So when you knock and the servo opens, it stays into the open position until you close the lid again. This is why I added an extra switch.

First I used a normal piezo buzzer (like this one) but I thought it was not reliable enough to detect the knocks. I then chose to use a piezo disc element which provided lots better results. I still kept the piezo buzzer as a feedback device.

Another great idea from the guys from Adafruit was that they activated the open mechanism just for a short bit when powering the circuit. So that way you could open the box and then reprogram it in case you forgot the knock code.

Finishing it off

Once I assembled the whole thing I varnished the box with my daughter’s help. I went back to the workshop to finish the box, i.e. putting a lid over the electronics to protect it, adding a button that allows reprogramming of the knock sequence and adding some nice handles.

Comments

Similar projects you might like

Zelda Treasure Chest (With Lights and Sound)

Project tutorial by Brian Lough

  • 1,532 views
  • 1 comment
  • 8 respects

Otto DIY+ Arduino Bluetooth Robot Easy to 3D Print

Project tutorial by Team Otto builders

  • 48,193 views
  • 117 comments
  • 162 respects

RFID Based Automatic Door System

Project showcase by Robodia Technology

  • 35,758 views
  • 20 comments
  • 97 respects

[Airbnb] Sigfox Lock Box

Project tutorial by Antoine de Chassey

  • 7,697 views
  • 0 comments
  • 12 respects

Arduino-Powered Water Bottle

Project tutorial by Md. Khairul Alam

  • 7,265 views
  • 5 comments
  • 33 respects

Programmable Stranger Things Light Wall Costume

Project showcase by Michael Barretta

  • 3,439 views
  • 5 comments
  • 18 respects
Add projectSign up / Login