The Lock Box

by Glopez211744 in Craft > Art

239 Views, 1 Favorites, 0 Comments

The Lock Box

PXL_20210505_021744578.PORTRAIT.jpg
PXL_20210505_021946995.PORTRAIT.jpg
PXL_20210505_021939742.PORTRAIT.jpg
PXL_20210505_021932899.PORTRAIT.jpg
PXL_20210505_021809428.PORTRAIT.jpg
PXL_20210505_021756987.PORTRAIT.jpg
PXL_20210505_021744578.PORTRAIT.jpg

This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com)

Supplies

1 Roll of 3D Printer PLA Filament

3 Stepper Motors

1 RFID Sensor

1 Arduino Mega 2650

6 Touch Sensors

1 LCD Display

1 9 Volt Battery

42 Connector Wires For Arduino

3 M3 - 0.50 x 6 Philips Machine Screws

18 6 x 5/8 Philips Sheet Screws

1 Foot of String (or Slightly Different Material)

3D Printed Parts: the Body

Body.png

This part is the biggest and most important part of the entire build. This part has grooves for the main drawer, the first and second touch sensor drawers and for the lid. This part also includes pre-designed holes for screws that have been measured precisely.

Downloads

3D Printed Parts: Main Drawer

Main_Drawer.png

This part is the main drawer, it is going to be locked in place for the most part but will be released so that any items needing security can be placed in it.

Downloads

3D Printed Parts: First Sensor Drawer

First Drawer.png

This is the first drawer, where three touch sensors are going to be placed next to each other and held in place. This drawer is designed to be pulled out a certain amount.

Downloads

3D Printed Parts: Second Sensor Drawer

Second Drawer.png

This is the second drawer, that is going to hold three touch sensors as well. This drawer is designed to pull out from the body of the Lock Box, one-touch sensor's length allowing for you to pull out both drawers without them overlapping on top of each other.

Downloads

3D Printed Parts: Sensor Drawer Backing

Drawer Backing.png

This piece is meant to fit right behind the sensor drawers the reason for this being so that the drawers themselves don't fall into the Lock Box and so that they stay within a specified area.

3D Printed Parts: Stepper Motor Casing 1

Stepper Motor Casing 1.png

This casing is designed for the two stepper motors whose backs are going to be facing perpendicular to the ground.

3D Printed Parts: Stepper Motor Casing 2

Stepper Motor Casing 2.png

This casing is designed for the single stepper motor that is going to be placed in the back of the lock box with its back being parallel to the ground.

3D Printed Parts: Wire Collection Roller

Step_Roller.png

This part of the 3D printed parts is going to be placed on the Stepper Motor that is placed parallel to the ground. It is designed specifically to fit with it and will be used to rail in the main drawer but also to allow it to be pulled out.

Downloads

3D Printed Parts: Battery Holder

Battery Holder.png

This part is meant to hold a battery pocket with an off and on switch. Please see the link further description on the battery pocket that I am referring to.

Amazon.com: 2 Pcs 2.1 x 5.5mm DC Plug 9V Battery Holder w Cover (for 1x 9V Battery): Home Improvement

Battery Holder

3D Printed Parts: Lid

Unfortunately, the CAD file for this part was corrupted and I am not able to upload anything for it. However, you can take measurements from the Body file and create a replacement lid with ease. The only thing that is of note is the fact that the LCD display is going to be centered on the Lid at the top and that the holes for the screws for the LCD display case need to fit accordingly through the Lid. For this, you can take all necessary measurements from the LCD display case file.

3D Printed Parts: LCD Display Housing

LCD Display Case.png

This is a 3D-designed part to house the LCD display with the I2C bus attached on the back. In the design, I have created a slot to pull the cables through the housing designed specifically to allow for the cables to reach the Arduino Mega.

3D Printed Parts: LCD Display Cover

LCD Display Cover.png

This part is designed to go hand-in-hand with the LCD Display Housing. This piece will go over the actual LCD in a fitted fashion and from there, these two parts will then fit precisely in the LCD Display Housing.

Assembly of 3D Parts

Screenshot 2021-05-04 225945.png
Screenshot 2021-05-04 225850.png

Here I have included a few images for guidance on the assembly of the 3D parts. Alongside that I have included the step file for the assembly that I made strictly for the 3D printed parts.

NOTE: The Arduino is going to go beneath the battery holder and the RFID sensor goes just beneath the Stepper near the center of the body. The Arduino is being held by the 3 longer screws, everything else is screwed in with the other screws.

Assembly of Electronic Components

Touch_Sensor_Schematic.png
Stepper_Motor_Schematic.png
RFID_Sensor_Schematic.png
LCD_Schematic.png

Here I have included Fritzing diagrams for all of the electronic components individually. The reason for doing this is to not overcomplicate a single Fritzing diagram. For the Fritzing diagram with the LCD Display, I tried to imitate the I2C bus attachment on my LCD and then showed the wiring for that. The first image is the Fritzing diagram for the 6 touch sensors. The Fritzing diagram with the RFID sensor is imitating the RC522 RFID sensor that I have.

Discussion About Arduino Code

Provided is the full code for the system that I have created. In it I have created comments which are specified by " // " and talk about why I used what I used and what the functionality of every command is.

Downloads