Picture of Access control with Arduino + Keypad 4x4 + Servo (UPDATE)
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

Step 1: The parts for the project

Picture of The parts for the project
We will need this parts for the proyect:

Arduino UNO or similar ($29.95)

Servo motor - Large ($12.95)

KEYPAD 4X4 (or similar) ($7.79)

Proto Board  ($9.58)

Breadborad jumper wire pack ($10.59)

Four resistor of 910 ohm

One resistor of 1k

1-40 of 47Next »
SavageO27 days ago


do we have to use the resistors for the keyboard?

SavageO27 days ago

I cant get it working,when I enter the password and press A nothing happens

RIJO VADAKKAN made it!1 month ago


عامرا1 month ago

When I plug in my servo to my arduino it starts spinning without stopping. How do I fix this?


Shark1234565 months ago

can somebody please copy and paste the code into the comment section? I can't seem to access the zip file. I would love to make this but without the code it kinda impossible

camilo.n1012 (author)  Shark1234565 months ago
Hi, you can download the file from this link: http://goo.gl/ChO877
zinedine7 months ago

Hi guy, I have just handmade a matrix keypad for arduino, I'll use that in control driver motor servo 250VAC. But it was noise when I put in the box a metal. It's mean it run, however I didn't pressed keypad. So how about I can filter noise?

camilo.n1012 (author)  zinedine7 months ago
Hi, i don't understand your question on the issue, if you can be more explicit to help I'd appreciate. Regards !

@camilo.n1012 , please when i write #include <Keypad.h> , the keypad word be in black not in red , and when i upload the code , the arduino does not recognize the keypad , is there any solution for that ?

camilo.n1012 (author)  hisham.goda.927 months ago
You may have problems with the address of the file, check in the folder "/ libraries" of Arduino IDE if the file.h is there. It should be in orange the code. If you follow the problem let me know and I give you another solution. Greetings !!
Captura de pantalla 2015-01-25 a las 23.14.46.png
tornado.abood8 months ago
Where is the code of project ?
camilo.n1012 (author)  tornado.abood8 months ago
Hi, you can download the code from here: http://www.instructables.com/files/orig/FKM/G6W9/HYR3FXB9/FKMG6W9HYR3FXB9.zip

seem it cannot be found...can you please give the right link?

your help is much apreciated.thank you

camilo.n1012 (author)  masterji8 months ago

This is the new link: http://goo.gl/2Lo0fC

Good Luck !

caserpsychocgo11 months ago

donde va el password como lo meto porque si lo dejo en letras negras me da error

camilo.n1012 (author)  caserpsychocgo11 months ago

Hola ! El pasword lo defines en el mismo archivo .ino, en la variable "Password password = Password( "your_password" );", ubicada en la linea 20 del codigo, de todos modos te dejo la imagen de muestra.
Saludos y éxito !

Captura de pantalla 2014-09-25 a la(s) 12.36.08.png
camilo.n1012 (author) 1 year ago

Sorry for not having answered the guys posts, but I had a problem with the mail.

The code already update, if they have more doubts, I can write to me mail camilo.nunez@cnf.cl or send a MP.

Regards !

hayes2551 year ago
Camilo.n1012 the code needs to be updated
hayes2551 year ago
I can't get the password librarie
kschwartz51 year ago
camilo.n1012, the code isn't updated and needs to be so that it will continue to work. Please update it soon.

mekaci891 year ago

The BYTE term seems to be invalid for Arduino 1.X

I am getting same error too. Please update this Instructable, thanks.

r.raj9362 years ago
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_2 years ago
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?
nyatuv2 years ago
can i use arduino mega?
kjsrocks2 years ago
could you use an ir remote insted of a keypad if possible a code too thanks.
Hi! Nice instructable! but the link to the password library doesn't work. here's correct:
Verkyn2 years ago
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. :)
tolstoyan2 years ago
ralphlouietionghoy@ymail.com i forgot to attached my email tnx :)
tolstoyan2 years ago
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 :)
sorry ment 910 ohm resistor
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).
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
davila13 years ago
how do i change the password, by the way NICE TUTORIAL
camilo.n1012 (author)  davila13 years ago
Hi davila, to change the password, please go to line 5 of the code, which states Password password = Password ("your_password"); . Good luck !
thanks a lot keep doing this staff
ElStevie3 years ago
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.

camilo.n1012 (author)  ElStevie3 years ago
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
tsoumelee3 years ago
Hi, do you have a failsafe mode in the code (in case of a blackout)? Thanks!
1-40 of 47Next »