Access control with Arduino + Keypad 4x4 + Servo

 by camilo.n1012
Featured
P1010115.JPG
Hi guys, I bring a new instructable for arduino, the control access with password, 4x4 keypad and a servo.

We will use the Password and Keypad librarie for arduino, besides using the servo library, but this project can also be modified by changing the servo, a motor reley or motor stepper, or any other ideas ...

This project can be used in different cases, for doors, Servo action, etc.. Here is the link of the video on youtube to see how it works, then explain step for the armed : D

 
Remove these adsRemove these ads by Signing Up

Step 1: The parts for the project

P1010161.JPG
P1010091.JPG
P1010094.JPG
P1010102.JPG
We will need this parts for the proyect:

Arduino UNO or similar ($29.95)
http://www.sparkfun.com/products/11021

Servo motor - Large ($12.95)
http://www.sparkfun.com/products/9064

KEYPAD 4X4 (or similar) ($7.79)
http://www.ebay.com/itm/DATA-KEYPAD-4X4-BLACK-BLACK-KEYS-4-4-Switch-Key-x-/270347954381?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item3ef1fe68cd#ht_2720wt_1037

Proto Board  ($9.58)
http://www.olimex.cl/product_info.php?currency=USD&products_id=170&product__name=Proto_Board_Bread_board

Breadborad jumper wire pack ($10.59)
http://www.olimex.cl/product_info.php?cPath=21_138&products_id=872&product__name=Breadborad_jumper_wire_pack

Four resistor of 910 ohm

One resistor of 1k





r.raj936 says: May 19, 2013. 6:02 AM
I made one of this kind and when I was testing there was a power failure and I had to be out till I got my spare keys.
Edward_ says: Apr 16, 2013. 9:21 AM
The BYTE term seems to be invalid for Arduino 1.X, what version did you use?
I'm trying to convert. Can you update this Instructable? or add updated code?
Thanks
nyatuv says: Apr 13, 2013. 12:41 AM
can i use arduino mega?
ilovewebkinz says: Jan 23, 2013. 5:54 AM
could you use an ir remote insted of a keypad if possible a code too thanks.
matoran_nuparu says: Dec 13, 2012. 6:59 AM
Hi! Nice instructable! but the link to the password library doesn't work. here's correct:
http://playground.arduino.cc/Code/Password
Verkyn says: Dec 6, 2012. 3:29 AM
Hi Sir we are making this arduino project and we would like to do it in a 3X4 keypad because there is no available 4x4. If we would order outside the country it will take much time. We would like to ask you if you a have a program of a 3x4 access controller we urgently need it. Thanks a lot it would be a big help for us. :)
tolstoyan says: Nov 25, 2012. 9:36 PM
ralphlouietionghoy@ymail.com i forgot to attached my email tnx :)
tolstoyan says: Nov 25, 2012. 9:34 PM
i need the codes for 4x3 wahahhahaha
nice instruction by thw way :)
i also dont know how to change the password? do i have to type my desire password to the code? teach me!!! hahahah im new to arduino hehehe tnx :)
Lectric Wizard says: Jul 18, 2012. 6:15 AM
sorry ment 910 ohm resistor
DiogoB13 in reply to Lectric WizardNov 8, 2012. 10:13 AM
hi, can u give some advice how to start a timer when the password is true? i´m trying but still cant( new at the arduino).
hiphopapotomas says: Oct 1, 2012. 9:16 AM
Hello, How would the programming differ if a 4X3 keypad were used? I dont really want mine to have the ABCD, but this is a great instructables.
Thanks, Austin
davila1 says: Aug 13, 2012. 8:28 PM
how do i change the password, by the way NICE TUTORIAL
camilo.n1012 (author) in reply to davila1Aug 17, 2012. 9:23 PM
Hi davila, to change the password, please go to line 5 of the code, which states Password password = Password ("your_password"); . Good luck !
davila1 in reply to camilo.n1012Aug 17, 2012. 10:13 PM
thanks a lot keep doing this staff
ElStevie says: Aug 17, 2012. 5:23 PM
Hey Camilo, thanks for the instructable. But I can't seem to get it working. The Servo (MG995) just goes on and off for a few seconds and then just off and nothing else happens until I restart the Arduino. I'm using an Arduino Diecimila and a membrane 4x4 keypad.

Thanks!!
camilo.n1012 (author) in reply to ElStevieAug 17, 2012. 9:27 PM
Hi Stevie, double check grades you need for your project, if you want that rotation is longer or shorter you have to go to the judgments myservo.write () and set the required value. Tell me if you have more problems. Good Luck
tsoumelee says: Jul 31, 2012. 6:29 AM
Hi, do you have a failsafe mode in the code (in case of a blackout)? Thanks!
camilo.n1012 (author) in reply to tsoumeleeJul 31, 2012. 7:23 PM
Hi, if you mean a fail-safe mode for a apogan in the arduino code is not very convenient, the best In This case, is to put a batery and connected to Arduino, if you have it connected to AC power you put a diode and put the battery.

Good luck
electrodragon says: Jul 23, 2012. 9:45 PM
nice project, but just want mention one thing, the key pad looks too big, get a membrane one so you can stick it on the wall, like this, will be much nice look.
camilo.n1012 (author) in reply to electrodragonJul 24, 2012. 5:47 PM
Hi, is a very good idea, just need to change the keypad code and change the position of the pins on arduino and I can use a keyboard membranous like this: http://www.olimex.cl/product_info.php?cPath=55_96&products_id=532&product__name=Teclado_de_Membrana_12_teclas_con_conector.

If you need the code for a 4x3 keypad just tell me and publishes :)
traisjames says: Jul 22, 2012. 11:17 AM
What do you use to make the wiring diagrams?
camilo.n1012 (author) in reply to traisjamesJul 22, 2012. 1:36 PM
Hi, i use the Fritzing, you will download here: http://fritzing.org/download/
Lectric Wizard says: Jul 18, 2012. 6:13 AM
very usefull Instructable !! Just one question, should there be a 1k resistor fron pin 4 of pad to pin 9 of Arduino ? Drawing shows no connection ...
camilo.n1012 (author) in reply to Lectric WizardJul 18, 2012. 9:46 AM
Hi, is not necessary to connect a 910 ohm resistor on pin 9 (col 4), will read it anyway the pin. Good luck :D
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!