Explore
(/tag/type-id/)
Create
(/about/submit. (/about/submit.js jsp) p)
Cont Contes ests (/co (/cont ntes est/ t/)) let's let 'stsmake m ake
Com Communit unityy
(/co (/com mmLogin unit unity/ y/)) (/you/)
(/)
share what you make > (/)
(/editInstructable/)
About This Instructable 49,235 views (http://cdn.instructables.com/FQH/O8NF/H4AGKE8L/FQHO8NFH4AGKE8L.LARGE.jpg)
License:
187 favorites
camilo.n1012 (/member/camilo.n1012/) Follow (/member/camilo.n1012/)
43
More by camilo.n1012
(/id/Control-Access-of Arduino-YÚN-with-MySQL-PH Arduino-YÚN-with-MySQL-PHP5-and-) P5-and-)
(/id/Save-data-of(/id/Save-data-oftemperature-and-humidity-on-MySQL-wit) Tags: keypad (/tag/type-id/category-tec hnology/keyw ordkeypad/)
Access control with Arduino + Keypad 4x4 + Servo
passw ord (/tag/type-id/categorytechnology/keyword-passw ord/) arduino (/tag/type-id/category-tec hnology/keyw ordarduino/) serv o (/tag/type-id/category-tec hnology/keyw ordservo/)
Password access with arduino (/id/Passwordaccess-with-arduino/) 0:00 / 1:01
by razvan_iycdi Arduino Resistor-less keypad access control (/id/Arduino-Resistorless-keypad-accessKeyless Entry / Arduino (/id/Keyless-EntryArduino/)
by WWC (/member/WWC/) Password Lock with Arduino (/id/PasswordLock-with-Arduino/)
by razvan_iycdi arduino+keypad+servo control (/id/arduinokeypadservocontrol/)
(http://cdn.instructables .com/FPO/UOQ4/H4AGKEAX/FPOUOQ4H4AGKEAX.LARGE.jpg)
(http://cdn.instructables .com/FJV/TQXS/H4AFSW21/FJVTQXSH4AFSW21.LARGE.jpg)
(http://cdn.instructables.com/FLS/SG31/H4AG04M0/FLSSG31H4AG04M0.LARGE.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://cdn.instructables .com/FU7/V559/H4AG5IAU/FU7V559H4AG5IAU.LARGE.jpg)
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-SwitchKey-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
Step 2: Preparing the keypad
Access control with Arduino + Keypad 4x4 + Servo
by camilo.n1012
(/member/camilo.n1012/) Download (/id/Access-control-with-Arduino-Keypad-4x4-Servo/?download=pdf) (/id/Access-control-with-Arduino-Keypad-4x4-Servo/?ALLSTEPS)
5 Steps
(/id/Access-control-with-Arduino-Keypad-4x4-Servo/step5/And-now-the + Collection
I Made it!
Favorite
(http://www.pinterest.com/pin/create/button/? url=http%3A%2F%2Fwww.instructables.com%2Fid%2FAccesscontrolwith ArduinoKeypad4x4Servo%2F&media=http%3A%2F%2Fcdn.instructables.com%2FFP7%2F2UDO%2FH4AGLOYJ%2FFP72UDOH4AGLOYJ.MEDIUM.jpg&description=P1010094.JPG)
Well, now we must put the resistors,remember the potion of the pins of the keypad. Output pins of keypad: 1 pin = col 1 2 pin = col 2 3 pin = col 3 4 pin = col 4 5 pin = row 1 6 pin = row 2 7 pin = row 3 8 pin = row 4 (look at the second image)
Now they must put three 910 ohm resistors on pin 1, 2 and 3 of the keypad, then put in the arduino digital pins of the NEXT form: pins keypad | pins arduino --------------------------------------1 | 8 2 | 7 3 | 6 4 | 9 5 | 5 6 | 4 7 | 3 8 | 2
Step 3: Preparing the Servo
(http://cdn.instructables.com/F58/UU5F/H4AGLPFY/F58UU5FH4AGLPFY.LARGE.jpg)
(http://cdn.ins tructables .com/FS5/MRVZ/H4AGLPG1/FS5MRVZH4AGLPG1.LARGE.jpg)
You need put the servo of the next form :
Step 4: Connecting the LEDs (http://cdn.instructables.com/FBH/6XT8/H4AG5ICB/FBH6XT8H4AG5ICB.LARGE.jpg)
(http://cdn.instructables.com/FEL/DPCR/H4AGLPLW/FELDPCRH4AGLPLW.LARGE.jpg)
(http://cdn.instructables.com/F47/40ZQ/H4AGLPM1/F4740ZQH4AGLPM1.LARGE.jpg)
You need put Accepted LED (green) and Denied LED (red) in this way:
Next » (/id/Access-control-with-Arduino-Keypad-4x4-Servo/step5/And-now-theprogramming/) View All Steps (/id/Access-control-with-Arduino-Keypad-4x4-Servo/?ALLSTEPS)
Make Comment
r.raj936 (/member/r.raj936/)
12 months ago
Reply (CR2T7OJHGU2L3K2)
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. (/member/r.raj936/)
Edward_ (/member/Edward_/)
1 year ago
Reply (CYIUZ8CHFD1E33E)
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? (/member/Edward_/) Thanks
nyatuv (/member/nyatuv/)
1 year ago
Reply (CZKRFJYHFD173E8)
1 year ago
Reply (C68DL5JHC9MI7H7)
can i use arduino mega? (/member/nyatuv/)
kjsrocks (/member/kjsrocks/)
could you use an ir remote insted of a keypad if possible a code too thanks. (/member/kjsrocks/)
matoran_nuparu (/member/matoran_nuparu/)
1 year ago
Reply (CIKSLVKHANAYFCV)
Hi! Nice instructable! but the link to the password library doesn't work. here's correct: http://playground.arduino.cc/Code/Password (/member/matoran_nuparu/)
Verkyn (/member/Verkyn/)
1 year ago
Reply (COWIGMJHABDGD4O)
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 (/member/Verkyn/) 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 (/member/tolstoyan/)
1 year ago
Reply (CR09 1WFH9T4IJCX)
[email protected] i forgot to attached my email tnx :) (/member/tolstoyan/)
tolstoyan (/member/tolstoyan/)
1 year ago
Reply (CLNPYIZH9T4IJCV)
i need the codes for 4x3 wahahhahaha nice instruction by thw way :) (/member/tolstoyan/) 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 (/member /Lectric+Wizard/) 1 year ago
Reply (CL38JJ6H 4AGKGDE)
sorry ment 910 ohm resistor (/member/Lectric+Wizard/)
DiogoB13 (/member/DiogoB13/) Lectric Wizard
hi, can u give some advice how to start a timer when the password is true? i´m (/member/DiogoB13/) trying but still cant( new at the arduino).
1 year ago
hiphopapotomas (/member/hiphopapotomas/) 1 year ago
Reply (C1M74SFH994X1NA)
Reply (C6C R08CH7 PDMAVS)
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. (/member/hiphopapotomas/) Thanks, Austin
davila1 (/member/davila1/)
1 year ago
Reply (CH8HUOKH5TU9L3S)
how do i change the password, by the way NICE TUTORIAL (/member/davila1/)
camilo.n1012 (/membe r/camilo.n1012/) (author)
Hi davila, to change the password, please go to line 5 of (/member/camilo.n1012/) the code, which states Password
1 year ago
davila1
Reply (CP9H ZNSH5TUAWKF)
password = Password ("your_password"); . Good luck !
davila1 (/member/davila1/) camilo.n1012
1 year ago
Reply (C9LU9GGH5Y9VFZE)
1 year ago
Reply (CXBPFG9H5W8ACB4)
thanks a lot keep doing this staff (/member/davila1/)
ElStevie (/member/ElStevie/)
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 (/member/ElStevie/) happens until I restart the Arduino. I'm using an Arduino Diecimila and a membrane 4x4 keypad. Thanks!!
camilo.n1012 (/membe r/camilo.n1012/) (author)
Hi Stevie, double check grades you need for your project, if you (/member/camilo.n1012/) 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
1 year ago
1 year ago
tsoumelee (/member/tsoumelee /)
ElStevie
Reply (C79MSPJH5TUAWKX)
Reply (C 0IVPS1H4VQE1E3)
Hi, do you have a failsafe mode in the code (in case of a blackout)? Thanks! (/member/tsoumelee/)
camilo.n1012 (/membe r/camilo.n1012/) (author)
Hi, if you mean a fail-safe mode for a apogan in the arduino code is (/member/camilo.n1012/) 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.
tsoumelee
1 year ago
Reply (CLZBXFMH58P2TNA)
1 year ago
Reply (CI4LVGAH4ZN4TWP)
Good luck
electrodragon (/member/electrodragon/)
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 (/member/electrodragon/) (http://www.electrodragon.com/?product=4x4-matrix-16-key-membrane-switchkeypad-keyboard-new-for-arduinoavrpicarm), will be much nice look.
camilo.n1012 (/membe r/camilo.n1012/) (author)
1 year ago
Hi, is a very good idea, just need to change the keypad code and (/member/camilo.n1012/) change the position of the pins on arduino and I can use a keyboard membranous like this: http://www.olimex.cl/product_info.ph cPath=55_96&products_id=532&p
electrodragon
Reply (CF7QHVVH4ZN53AR)
If you need the code for a 4x3 keypad just tell me and publishes :)
Reply (C97 U01VH4VQRHUV)
1 year ago
traisjames (/member/traisjames/)
What do you use to make the wiring diagrams? (/member/traisjames/)
camilo.n1012 (/membe r/camilo.n1012/) (author)
Hi, i use the Fri tzing, you will download here: (/member/camilo.n1012/) http://fritzing.org/download/
traisjames
Reply (CKQXST0H4VQDEFA)
1 year ago
Lectric Wizard (/member /Lectric+Wizard/) 1 year ago
Reply (COM2YLWH4AGKGCZ)
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 ... (/member/Lectric+Wizard/)
camilo.n1012 (/membe r/camilo.n1012/) (author)
Hi, is not necessary to connect a 910 ohm resistor on pin 9 (col 4), (/member/camilo.n1012/) will read it anyway the pin. Good luck :D
About Us Who We Are (/about/) Advertise (/adve rtise/) Contact (/about/contact.jsp) Jobs (/community/Positions-available-at-Instructables/) Help (/community?categoryGroup=Help)
Lectric Wizard
1 year ago
Reply (CAE5D7FH4I7VXNZ)
Find Us Facebook (http://www.facebook.com/instructables) Youtube (http://www.youtube.com/user/instructablestv) Twitter (http://www.twitter.com/instructables) Pinterest (http://www.pinterest.com/instructables) Google+ (https://plus.google.com/+instructables) Tumblr (http://instructables.tumblr.com)
Resources For Teachers (/teachers/) Artists in Residence Join (/g roup/air/) our newsletter: enter email Gift Pro Account (/account/give?sourcea=footer) Forums (/community/) Answers (/tag/type-que stion/?sort=RECENT)
Mobile Download our new apps for iOS, and Windows 8!
Android Join!
Android (https://play.google.com/store/apps/details? Terms of Service (http://usa.autodesk.com/adsk/s ervlet/item?siteID=123112&id=21959721) | id=com.adsk.instructables) Privacy Statement (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) | iOS Legal Notices & Trademarks (http://usa.autodesk.com/legal-notices-trademarks/) | Mobile Site (http://m.instructables.com) (https://itunes.apple.com/app/instructables/id586765571) (http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112) © 2014 Autodesk, Inc.
Windows (http://apps.microsoft.com/windows/enus/app/7afc8194-c771-441a-959054250d6a8300)
English
Go Pro Today » (/account/gopro?sourcea=footer)
We're Hiring! » (/community/Positions-available-at-Instructables/)