Arduino Safe

by Blanc Liao in Circuits > Arduino

230 Views, 0 Favorites, 0 Comments

Arduino Safe

Screen Shot 2021-05-11 at 1.32.25 AM.png
Screen Shot 2021-05-11 at 1.32.35 AM.png
Screen Shot 2021-05-11 at 1.32.43 AM.png
Screen Shot 2021-05-11 at 1.32.50 AM.png

During the day, when nobody is at home, you would want to keep your personal belongings safe. I have considered buying a safe, but the cost is way too much. This is why I built an Arduino safe, which could keep your belongings out of others' reach. Through using the matrix keypad, one could set up their own password for their safety. Furthermore, after the right password is punched through the matrix keyboard, it activates the motor, resulting in the motor rotating and letting loose of the top. Therefore, the user would be able to open the lid and achieve/put in an object. Both the coding and the circuits are slightly complicated, but for those who are up for a challenge, then this project is for you.

Supplies

1.Arduino Board( any compatible board, I'm using Arduino Leonardo)

2. Bread Board

3.LCD

4. Matrix Keypad

5. Servo Motor

6.Tape

7.Portable Charger

8.Wires

9.100Ω resistors

10.2 USB cables

11. 1 LED light ( any color)

12. Paper

13. Scissors

Connecting the Circuits

Screen Shot 2021-05-11 at 1.42.21 AM.png
Screen Shot 2021-05-11 at 1.42.31 AM.png

- Connect all 7-8( depending on what kind of matrix board you are using) to the pins 13-7/6

- Connect the servo motor onto GND, 5v, and pin 4

- Connect the LCD screen onto GND, 5v, SCL, and SDA

- Connect the LED by letting the GND pass through the 100Ω resistor, and linking a random pin to it as well

Applying the Code

Download the Arduino IDE onto your computer, then apply the code from the following link:

https://create.arduino.cc/editor/blanc35/a80b8e22-...

After connecting the Arduino board to your computer, the code should then be applied onto the Arduino board, therefore, this process is only required once. After applying, the LCD should be lit up with the words " Enter the Passcode".

Creating the Safe

Screen Shot 2021-05-11 at 2.09.25 AM.png
Screen Shot 2021-05-11 at 2.09.43 AM.png

For creating the safe, one could use a box of their desire, then make the following changes to their box

- Cut a 2x1 cm rectangular hole on the side. This is for the motor to have a hole that locks the lid in place

- Cut a 7x5 cm rectangular hole on the front. This is for the LCD light to go through the whole

-Cut a 4x2 cm rectangular hole in the front. This is so that the lines, which is following the matrix keyboard could connect to the matrix keyboard outside.

After creating the safe, one would have to make sure of the sustainability of the box. If the box is fragile, then consider switching to another box.

Assembling the Safe

Screen Shot 2021-05-11 at 2.26.27 AM.png

After finishing the modifying of the box, we then have to station all of the wires and breadboard inside the top of the box. Therefore, when opening the box, it wouldn't be as messy. I used tape for stationing the boards, sticking them onto the box, so it doesn't fall down. I also redid the part where the motor was supposed to be placed since the angle is of huge importance in successfully locking and unlocking the safe. The angle needs to be precisely correct in order for the project to work. I also recommend using heavy-duty tape, since the normal tape is too thin and not sticky enough to hold the weight of the boards.

Final Results

Arduino Safe

Finally! We've finally finished building the long-awaited safe. Check out my videos on this project!

Reference: https://www.instructables.com/Arduino-Key-Safe/