Introduction: Piano Safe

Using the Arduino Uno, a mag lock, a 1 channel relay, and 5 press switches.

I bought a used keyboard and built the piano box around it. After wiring the keyboard with the switches, I programmed the Arduino with 5 button/10 key press sequence. When the correct 10 keys are pressed, the mag lock is released.

You can hide a number of items in this Piano Safe. This is great for the kids room, or an escape room.

Hope you enjoy!

Step 1: Piano Safe

First, I chose the keys that would trigger the sage to open.
I used microswitches that were purchased on onlinecomponets.com with a low newton force.
The switches were then placed inside the keyboard under the chosen keys,
The keyboard must operate as if no changes were made so not to reveal the switch location.

Step 2: Building the Piano

The piano was built around the keyboard.
This step is different every time since it's based on the brand and size of the keyboard.
Just measure your keyboard, and build around it. I got a few ideas on what it should look like online.
Then you will need to decide the size of the safe box.

Step 3: Wiring the Safe

The microswitches are N/O, so using an Arduino uno and a five button sequence program. This is a similar program which used. https://youtu.be/3Zn6D0731MQ
In the video he wired leds to the safe. I didn't want ant indicators to any of the keys. Basically it was wired exactly the same. Change the variables in the programming to the number of switches you'd like to used and wire accordingly.
The mag lock has an 12v power supply which I used a step down module from 12v to 5v to power the Arduino, so not to have more than one power supply. The keyboard functions on its own batteries.

Step 4: Final Step

I wired 5 switches, but 10 key presses must be made in order to open the safe.
Put it all together and depending on the wood used you can either paint or stain to give the appearance desired.