Arduino Keypad Solenoid Lock
ฝัง
- เผยแพร่เมื่อ 7 ธ.ค. 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 © ---------- - วิทยาศาสตร์และเทคโนโลยี
your codes really work for me,,, after lots of efforts with many tutorials ,,, kudos to u
Awesome videos!! Always learn from u!!!👌👌
I took it from your website. RESPECT BRO
This is absolutely perfect. Tanx
Excellent project
Awesome video
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
Viral sir nice video😎😎
Good job
Nice video
Nice video bro
Nice ...
worked perfectly
Mast😍😍😍
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
Btao bhai kon sa camera use karte ho plz btaoa bhai zaroorat hai
Please show your setup in next week
Great !
can we have multiple solenoids connected and open it with different codes?
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
Great
Sir thanks. Are you grate . love you
Sir please I want code sir can you.please
@@omkargopale7562 did you get the code ?
how long will the batterys last?
thanks
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
what is the battery specification?
Sir please show us your setup
Can you make both keypad and rfid lock togather?
Yhe diagram may connection krna kis software may design kie ha sir
Nic bro
error to 'Kaypad.h' no such file or directory please reply me
The code doesn't work. it says No such file or directory found. Anyone found a solution?
Can we use Arduino nano?
could someone link me to the relay module
The link to the code dosent work please fix
@ปภาวิสัย ยางสวย the code is incomplete bro I want the complete one (all)
Is the battery 5V or 12V?
What is use of relay module
What is the input and output in this project?!
Is it possible to make the lock go back automaticly in 5 seconds? What would i have to change in the code ?
//Viral Science th-cam.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
Nice work but were the code please give me the code for competition.....
Sir code is not opening please help
how to get more nummbers?
which software you used in circuit designing in arduino,relay,keyboard
Fritzing it costs
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
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.
Sir can you upload the code Sir?
How the programm called to draw arduino sketches ? TY
Fritzing?
If we want to run it from electricity how many volts we have to give
9v or 12v is OK DC
can you send me link to code? in says error drive not found
Please
Hello sir, Your link for code is not opening. So plz check or give another code link.
link of the code is invalid bro
how to flip the selenoid lock
Sir what voltage batteries areyou using
3.7v 18650 batteries
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.
I cant get the code can you send it from another place
Bruv which all libraries do we have to install
KEYPAD
lock buy link plz sir
The code and circuit link does not work.can you plzzz upload the code and circuit link correctly
Can u make remote control door lock with it
Use ESP32
What is the software used to draw circuit?
Fritzing
For those who are looking for the code : www.viralsciencecreativity.com/tutorials/arduino-keypad-solenoid-lock
Code is not available on the link u have given, error is there, kindly publish the code again...
Code can't be open, can someone give me the code please?
sir i will be not find code . please send me sir please
The link of the code is not working
cricuit dia gram and code link are not qorking
How much volt have the batteries?
3.7v
This not open the code and circuit diagram
specifications of your Battery??
12v you can use 12v adapter
bro your link is invalid
What if you want to reset the Password?
The code not working.....
which simulation software u used
FRITZING
drive are not working
Link code error bro
plz upload code
code please!!
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);
}
}
code eror
link Code not found 404
//Viral Science th-cam.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);
}
}
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 Error
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 ?
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