DIY Safe Using Pattern Lock Shield

by MahmoudTolba in Living > Hiding Places

2549 Views, 32 Favorites, 0 Comments

DIY Safe Using Pattern Lock Shield

DIY Safe using Arduino & 1Sheeld

Simply this project is a DIY safe using Arduino & 1Sheeld.

I used one of the newest shields from 1Sheeld its Pattern Shield. Pattern Shield turns your smartphone to a secret pattern locker shield so Arduino can take actions by a certain patterns defined by user.
For more information please visit this link.

When you enter the correct pattern Arduino will open the door of the safe.

I used a simple mechanism to lock the safe using 2 servo motors to lock the safe and another servo motor to push the safe's door.

You can add alot of features to secure your safe such as if someone entered a wrong pattern, your smart phone send you a SMS message or update your twitter status or turn on your alarm system.

What Will You Need!

tools.jpg

You will need some tools to fix the safe part such as:

1. Screwdrivers.
2. Pliers
3. Digital Multimeter
4. Copper spacers ( To fix the Arduino Board)
5. Double Sided Glue Tape
6. Nylon Cable Tie Belt
7. 3 x Small Hinge

Materials:

1. Plywood Sheets 3mm
2. Screws & Nuts

Electronics components:
1. Arduino UNO
2. 1Sheeld
3. Android Smart Phone
4. 3 x Servo motors

Mechanism & Frame Design

Untitled.png
fine-looking-stainless-steel-angle-bracket-EmZXL-600x348.jpg
hitec-hs-5585mh-servo-motor-large.jpg
375023349_512.JPG

I made the box of the machine from plywood 3mm using BoxMaker this great software that you give it the dimensions and it will generate a PDF you can use to cut a notched box on a laser-cutter.


Unfortunately i found that this software has a bug at the last release that will make two parts from the box will not fit with the other parts, So please be careful.

I used stainless steel angle brackets to fix the box sides.

I used 2 servo motors to lock the door and a small servo motor to push the door when you want to open it.

Downloads

Mechanism & Frame (Fabrication and Assembly)

DSC_3774.JPG
DSC_3798.JPG
DSC_3799.JPG
DSC_3800.JPG
DSC_3801.JPG
DSC_3802.JPG
DSC_3803.JPG
DSC_3812.JPG
DSC_3813.JPG
DSC_3814.JPG
DSC_3816.JPG
DSC_3817.JPG
DSC_3818.JPG
DSC_3819.JPG
DSC_3820.JPG
DSC_3821.JPG
DSC_3822.JPG
DSC_3823.JPG
DSC_3824.JPG
DSC_3825.JPG
DSC_3826.JPG
DSC_3827.JPG
DSC_3828.JPG
DSC_3829.JPG
DSC_3835.JPG
DSC_3836.JPG
DSC_3841.JPG
DSC_3853.JPG
DSC_3862.JPG
DSC_3864.JPG
DSC_3865.JPG
DSC_3866.JPG
DSC_3879.JPG
DSC_3880.JPG
DSC_3899.JPG
DSC_3906.JPG
DSC_3908.JPG
DSC_3910.JPG
557993ed45bceb2342000111.jpeg
DSC_3916.JPG
DSC_3917.JPG
DSC_3918.JPG
DSC_3919.JPG
DSC_3920.JPG
DSC_3921.JPG
DSC_3922.JPG
DSC_3923.JPG
DSC_3929.JPG
DSC_3932.JPG
DSC_3933.JPG
DSC_3934.JPG

After cutting the plywood sheets using the laser cutter i found that there is a problem in fitting the parts of the box because of a bug in BoxMaker software so i used my driller to make some holes to fix the stainless steel angle brackets to fix the box sides.Then I used 3 small hinges to fix the door of the safe.

I used M4 Screws and nuts to fix the servo motors and Nylon Cable Tie Belts and double side glue tape to fix the servo motors to the safe door.


Finally, I fixed the Arduino and 1Sheeld using copper spacers.

Electronics & Arduino Code

Safe Circuit.png
Untitled.png
tutorials_1e9b25c2-1d63-4e9f-8c8c-a4e1bb05429d.png
tutorials_29c3ebcd-daa3-44da-9dae-5cde0cf672f1.png
tutorials_0b07eea0-9797-41b3-887c-fe0b2048e28f.png
tutorials_b82c7552-6e08-465b-9f4c-83b71125c6d3.png
tutorials_eebcc092-db79-4afc-b294-4a0c22b3a636.png
pattern-shield.png
tutorials_00a15248-1307-4d0a-9fce-a4f5d17ba405.png

Step 1: Place your 1Sheeld on your Arduino board then plug the Arduino to your laptop or PC.
Step 2: Download 1Sheeld Application onto your smart phone. The app is available on the Google play store at http://1sheeld.com/app

Step 3: Download 1Sheeld library

Download OneSheeld library to your computer through this link

Step 4: Extract the folder, copy it, and paste it in your Arduino libraries directory.

Step 5: Open my Arduino Sketch ( you will find it in the attached files)

Step 6: Upload your sketch Hesre comes the most important part of the whole tutorial, switch 1Sheeld to the Uploading-mode (this is the switch labeled UART Switch on the board) before you upload your sketch to the Arduino board to avoid serial conflicts between 1Sheeld and Arduino, then press the Upload button in the IDE.

Upload mode is turned on when the UART switch is pushed away from the 1Sheeld logo.

Once you have completed your upload you need to switch 1Sheeld back to the operating mode. Don’t forget! If you don’t switch the UART Switch back to the operating mode your project will not work properly as you will have no communication between 1Sheeld and the Arduino board.

Operating mode is turned on when the UART switch is pushed closest to the 1Sheeld logo.

Step 7: Use 1Sheeld Application

Open 1Sheeld application on your Android smart phone. The application will first scan over bluetooth for your 1Sheeld, it will take a few seconds and the phone will find it. Once it appears on your screen as 1Sheeld #xxxx, you will be required to enter the pairing code (the default pairing code is 1234) and connect to 1Sheeld via bluetooth.

NOTE: If you are having trouble please make sure the bluetooth is turned on for your Android phone and that the Android phone is close to your 1Sheeld.

Step 8 : Access Pattern Shield

Select Pattern Shield from the shields list and press on the multiple shields icon at the top right of the app.