Introduction: The Lock Box
This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com). For my project I designed and 3D printed a lock box that is controlled with the Arduino Micro-controller. The servo motor that acts as the locking mechanism is controlled using an IR remote(any IRremote is programmable to be used). I will do my best in this instructable to help you make a simple project with your arduino board!
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Materials Needed
1) Arduino Uno
3) 1 x 4pin IIC cable
4) 9 x jumper cable
5) 4 x breadboard connectors
6) 1 x IR reciever
7) 1 x power adapter & battery
8) 1 x 10k resistor
9) 1 x servo motor
10) 1 x IIC 1602 LCD
I also 3D printed a lid to fit a box I was given; any 3D part with a Servo holder and the lid of the lock box being bigger will work perfect, also to create supports for the LCD display to be screwed on to be flush with lid. I will post the files for my design feel free to use it as you wish! The software I used was the Arduino IDE and Autodesk Inventor.
Here is a link to the black box that I used http://www.polycase.com/dc-47p I also attached a zip file of it so you can have it to edit it in your cad software.
Step 2: 3D Printed Parts
All these parts were made using Autodesk Inventor and 3D printed. I included a .zip file of all the parts so as before use it at your desire and make any changes needed. The design is really simple so If you are new to using a CAD software you can try to replicate my design to learn! As in my pictures on the inside of the lid is a lip to act as a key hole that the servo will be able to go in and lock. Also on the inside of the actual lock box a support is needed to hold the servo motor in place!
Step 3: Connecting Electrical Setup
I attached a fritzing diagram this shows you how to connect it to the arduino board. You can connect the IRM 3638 receiver directly into the breadboard and use the power and ground rail to make it neat and run power to everything. Also for the LCD display the piggy back should allow you to only need 4 pins making sure to connect the SDA and SDL to the right pin. Also the IRM need a 10K pull up resistor so don't forget that!
Step 4: Arduino Sketch
This is the last thing needed and what will be used to power the lock box. The code I wrote is extremely simple and can be used for practice for beginners. I used many libraries but the code is commented and easy to use. In order to edit it for your IR remote to work when uploaded the code go to the serial monitor and it will read the hexadecimal that you will insert where mine was. I also have a watchdog that resets the arduino if it crashes. Everything else is explained in the video, you can edit and use the code as you want. Goodluck and have fun!