Arduino Door Lock With Password

by ibenkos in Circuits > Arduino

204905 Views, 379 Favorites, 0 Comments

Arduino Door Lock With Password

IMG_2204.JPG

In this project I mede an door lock (or box lock) that opens when you enter your password and press "#". The servo turns back to the position it was in after some seconds.

PARTS & TOOLS

IMG_2142-1.JPG
IMG_2143-1.JPG
54c6b9c32f7cc66bda0000b7.jpeg
IMG_2151.JPG

For this project I used:

* Arduino uno ( http://store.arduino.cc/index.php?main_page=produc... )

* 4x4 matrix keypad, can also use 3x4( http://www.ebay.com/itm/4-x-4-Matrix-Array-16-Key-... )

* Arduino PCB shield ( http://www.ebay.com/itm/Prototype-PCB-for-Arduino-... )

* 2x 1k OHM resistors ( http://www.ebay.com/itm/50-Pcs-Carbon-Film-Resisto... )

* 3mm green and red LEDs ( http://www.ebay.com/itm/LOT-OF-20-50-100-3mm-Red-G... )

* Male pin header ( http://www.ebay.com/itm/3pcs-40Pin-2-54mm-Male-Hea... )

* Female pin header ( http://www.ebay.com/itm/New-4PCS-40Pin-Straight-Fe... )

* Servo ( http://www.ebay.com/itm/SG90-Mini-Gear-Micro-9g-Se... )

* Wires ( http://www.ebay.com/itm/50pcs-1007-24-color-PCB-So... )

The tools you are going to need:

* Soldering iron

* Soldering paste

* Soldering tin

* Plier

Schematic

IMG_2202.JPG

Follow the schematic.

Solder the Connectors

IMG_2144-1.JPG
IMG_2145-1.JPG
IMG_2146.JPG
IMG_2148-1.JPG
IMG_2147-1.JPG
IMG_2149-1.JPG

Solder he connections for the Arduino, kaypad and servo. When you are soldering the connection for the keypad and the servo try not to have it in a place where the programing port on the Arduino UNO touches your soldered places, I did that once and I almost ended up destroying my Arduino because the 5v and the GND got connected together when they touched the programing port.

Soldering

54c958cbc6ba5d9cda00007d.jpeg
54c958ea2f7cc623b7000119.jpeg
54c9595c182470f869000004.jpeg
54c9597c182470801b000001.jpeg
54c9599a1824704c84000004.jpeg
54c959e22f7cc6daed00013b.jpeg
54c959fdec8d83ed9c0000ec.jpeg

Solder the LEDs, resistors and the wires for them, than solder the rest of the wires, try to cut your wires so that they fit nice and smooth on the PCB like shown in the photos.

The Door Lock

54c958ae1824704c84000002.jpeg

I mounted my servo on an aluminum plate with an simple lock. unfortunately I did not take any photos when making this but hopefully you will understand how to make it by the photo, its really easy.

CODE

Download the code and import libraries. You need to download the 3 Arduino libraries if you don't have them.

* password.h

* keypad.h

* servo.h

THANKS FOR VIEWING!

If you like this project than go check out my channel for more cool projects :)

If you have any questions or tips than post them in the comments.