0% found this document useful (0 votes)
129 views9 pages

Arduino Door Lock With Password

This document describes how to create an Arduino-powered door lock with a password input using a 4x4 keypad. It involves connecting an Arduino, keypad, LEDs, resistors, wires and servo motor. The user enters a password on the keypad, and if correct, the servo unlocks the door. Code is provided to read the keypad input, check for the password, and control the servo and LEDs accordingly. Step-by-step instructions explain the circuit design, soldering, mechanical assembly and code to create the password protected door lock.

Uploaded by

Dawit Birhanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views9 pages

Arduino Door Lock With Password

This document describes how to create an Arduino-powered door lock with a password input using a 4x4 keypad. It involves connecting an Arduino, keypad, LEDs, resistors, wires and servo motor. The user enters a password on the keypad, and if correct, the servo unlocks the door. Code is provided to read the keypad input, check for the password, and control the servo and LEDs accordingly. Step-by-step instructions explain the circuit design, soldering, mechanical assembly and code to create the password protected door lock.

Uploaded by

Dawit Birhanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Food Living Outside Play Technology Workshop

Arduino door lock with password


by ibenkos on January 25, 2015

Table of Contents

Arduino door lock with password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Arduino door lock with password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: PARTS & TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Solder the connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 4: Soldering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 5: The door lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 6: CODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 7: .................................................................................................................. 8

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

http://www.instructables.com/id/Arduino-door-lock-with-password/
Author:ibenkos
I am a 15 year old boy from Norway, and I am always making electronic stuff. I like to do Arduino projects best. more projects coming soon! ;)

Intro: Arduino door lock with password


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.

Step 1: PARTS & TOOLS


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

http://www.instructables.com/id/Arduino-door-lock-with-password/
Step 2: Schematic
Follow the schematic.

http://www.instructables.com/id/Arduino-door-lock-with-password/
Step 3: Solder the connectors
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.

Image Notes Image Notes


1. bend the pins 90 degrees 1. 90 degrees

http://www.instructables.com/id/Arduino-door-lock-with-password/
Step 4: Soldering
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.

Image Notes
1. 2x 1000 OHM resistors

http://www.instructables.com/id/Arduino-door-lock-with-password/
Image Notes Image Notes
http://www.instructables.com/id/Arduino-door-lock-with-password/
1. keypad pins: 1. servo pins:
1,2,3,4,5,6,7,8 GND,VCC,signal

Step 5: The door lock


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.

http://www.instructables.com/id/Arduino-door-lock-with-password/
Step 6: 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!

Ifyou 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.

File Downloads

arduino_keypad_servo.ino (2 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'arduino_keypad_servo.ino']
Step 7:

Related Instructables

Access control
Password Password Lock with Arduino + Intel Edison:
access with Keypad lock Keypad 4x4 + FabCache: A Pinlock
with servo with Arduino by Servo (UPDATE) modular,
arduino by using ATtiny84 razvan_iycdi scalable, and (keypad) by
by camilo.n1012
razvan_iycdi by sunilksree traceable locker mkarvonen
system by Fong
JY

http://www.instructables.com/id/Arduino-door-lock-with-password/
Advertisements

Comments

http://www.instructables.com/id/Arduino-door-lock-with-password/

You might also like