Arduino Keypad Solenoid Lock
Vložit
- čas přidán 7. 12. 2018
- Hey friends in this video i will show you how to make a lock system with arduino.
Visit my Website to Download Codes and Circuit Diagrams:- www.viralsciencecreativity.com
Circuit:- drive.google.com/open?id=1uwV...
Code:- drive.google.com/open?id=1g45...
Materials:-
Arduino
Solenoid Lock
4x4 Keypad
Relay Module
Jumpers
Follow me on:-
Facebook:- / viralscience20
Facebook:- / viral.dodhia.73
Instagram:- / viral_dodhia_
Twitter:- / viral_science_
snapchat:- viraldodhia20
--------- VIRAL SCIENCE © ---------- - Věda a technologie
your codes really work for me,,, after lots of efforts with many tutorials ,,, kudos to u
I took it from your website. RESPECT BRO
Awesome videos!! Always learn from u!!!👌👌
This is absolutely perfect. Tanx
Excellent project
Viral sir nice video😎😎
worked perfectly
Awesome video
Mast😍😍😍
Nice video bro
Great !
Nice ...
Nice video
Good job
Nic bro
Great
Please show your setup in next week
Cool, sir I make it thank you so much
This Comment for Robo tronics tecnical
in the code the word keypad does not work on the code so it dont work how can i solvet
Sir thanks. Are you grate . love you
Sir please I want code sir can you.please
@@omkargopale7562 did you get the code ?
Sir please show us your setup
I take code from your webside thank you sir, your web is to much good
Can u send me code
@@myworld8086 #include
char* password = "123"; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = { 9, 8, 7, 6 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int Lock = 13;
void setup()
{
pinMode(Lock, OUTPUT);
LockedPosition(true);
}
void loop()
{
char key = keypad.getKey();
if (key == '*' || key == '#')
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(Lock, LOW);
}
else
{
digitalWrite(Lock, HIGH);
}
}
@@josharduino3241 .
Please can u send me d code
Isit simple enought to add 2x solenoid lock to one relay ? I want to use for my tool box but it needs a solenoid lock at each end to secure it shut
Btao bhai kon sa camera use karte ho plz btaoa bhai zaroorat hai
what is the battery specification?
Can you make both keypad and rfid lock togather?
how long will the batterys last?
thanks
If the code doesn’t work for you, download keypad.h library from google then go on to ur library and install it
I can’t remember what board I used but i wasn’t the one he used, just trial and error
The link to the code dosent work please fix
@ปภาวิสัย ยางสวย the code is incomplete bro I want the complete one (all)
can we have multiple solenoids connected and open it with different codes?
Yhe diagram may connection krna kis software may design kie ha sir
Can we use Arduino nano?
Is the battery 5V or 12V?
could someone link me to the relay module
What is use of relay module
error to 'Kaypad.h' no such file or directory please reply me
Nice work but were the code please give me the code for competition.....
The code doesn't work. it says No such file or directory found. Anyone found a solution?
Sir can you upload the code Sir?
Is it possible to make the lock go back automaticly in 5 seconds? What would i have to change in the code ?
//Viral Science czcams.com/users/viralscience
//Arduino Keypad Solenoid Lock
#include
char* password = "123"; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = { 9, 8, 7, 6 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int Lock = 13;
void setup()
{
pinMode(Lock, OUTPUT);
LockedPosition(true);
}
void loop()
{
char key = keypad.getKey();
if (key == '*' || key == '#')
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(Lock, LOW);
}
else
{
digitalWrite(Lock, HIGH);
delay(1000);
digitalWrite(Lock, LOW);
}
}
at the bottom there is delay(1000); to make it longer put instead of 1000 a different number for 5 seconds change it to 5000
Sir code is not opening please help
What is the input and output in this project?!
which software you used in circuit designing in arduino,relay,keyboard
Fritzing it costs
lock buy link plz sir
Bro which camera do you use to make video
Plz replay
I need to buy camera plz brother jan tell me about camera and result of camera????
I am using samsung s7 to record videos
Can u make remote control door lock with it
Use ESP32
Sir, apnar diagram dekhe connection korlam but kaj hochhe na, relay board a power ashche na ......
Parle aktu reply korben...🙏🏼🙏🏻🙏🏻
link of the code is invalid bro
how to get more nummbers?
Why you want to press * key to close the lock??the lock should go back to lock possition automatically after a few seconds.
You must modify the code.
What is the software used to draw circuit?
Fritzing
If we want to run it from electricity how many volts we have to give
9v or 12v is OK DC
how to flip the selenoid lock
Sir what voltage batteries areyou using
3.7v 18650 batteries
Hello sir, Your link for code is not opening. So plz check or give another code link.
How the programm called to draw arduino sketches ? TY
Fritzing?
Bruv which all libraries do we have to install
KEYPAD
can you send me link to code? in says error drive not found
Please
How much volt have the batteries?
3.7v
It says "keypad h: no such file or directory" I am very new at this and would like some help please. Thanks you
you need to download keypad.h library from github.com/Chris--A/Keypad .just click download code button on github and download .zip file.then open arduino software ,click sketch button and click include library and select add .zip library and find where you downloded library select and press open.
hope it help.
specifications of your Battery??
12v you can use 12v adapter
The code and circuit link does not work.can you plzzz upload the code and circuit link correctly
For those who are looking for the code : www.viralsciencecreativity.com/tutorials/arduino-keypad-solenoid-lock
The link of the code is not working
I cant get the code can you send it from another place
Code is not available on the link u have given, error is there, kindly publish the code again...
sir i will be not find code . please send me sir please
Code can't be open, can someone give me the code please?
cricuit dia gram and code link are not qorking
link Code not found 404
//Viral Science czcams.com/users/viralscience
//Arduino Keypad Solenoid Lock
#include
char* password = "123"; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = { 9, 8, 7, 6 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int Lock = 13;
void setup()
{
pinMode(Lock, OUTPUT);
LockedPosition(true);
}
void loop()
{
char key = keypad.getKey();
if (key == '*' || key == '#')
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(Lock, LOW);
}
else
{
digitalWrite(Lock, HIGH);
}
}
What if you want to reset the Password?
bro your link is invalid
drive are not working
The code not working.....
This not open the code and circuit diagram
which simulation software u used
FRITZING
plz upload code
code please!!
Link code error bro
Please give link to code
#include
char* password = "123"; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = { 9, 8, 7, 6 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int Lock = 13;
void setup()
{
pinMode(Lock, OUTPUT);
LockedPosition(true);
}
void loop()
{
char key = keypad.getKey();
if (key == '*' || key == '#')
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(Lock, LOW);
}
else
{
digitalWrite(Lock, HIGH);
}
}
Plz upload the code
#include
char* password = "123"; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = { 9, 8, 7, 6 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int Lock = 13;
void setup()
{
pinMode(Lock, OUTPUT);
LockedPosition(true);
}
void loop()
{
char key = keypad.getKey();
if (key == '*' || key == '#')
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(Lock, LOW);
}
else
{
digitalWrite(Lock, HIGH);
}
}
code eror
The link to the code :'c
#include
char* password = "123"; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = { 9, 8, 7, 6 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int Lock = 13;
void setup()
{
pinMode(Lock, OUTPUT);
LockedPosition(true);
}
void loop()
{
char key = keypad.getKey();
if (key == '*' || key == '#')
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(Lock, LOW);
}
else
{
digitalWrite(Lock, HIGH);
}
}
Code Error
code ?
Visit my website www.viralsciencecreativity.com for codes and circuit diagrams
I recommend you not to watch this Video. He didn't teach it Properly and there is no Code You will get an Error.
Nice video
Sir, apnar diagram dekhe connection korlam but kaj hochhe na, relay board a power ashche na ......
Parle aktu reply korben...🙏🏼🙏🏻🙏🏻