RFID Based Door Lock System Using ARDUINO UNO | Send Msg To User in case of unauthorized access.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so before start the actual project explanation I request you please subscribe my channel so you can see on the screen up till now I have uploaded more than 66 video on Raspberry Pi the Raspberry Pi with iot that is all this video then Al also iot with ardino all these video are 26 and recently we started the new series on the pck My Controller before that I also cover the project on the python web application so if you want to Learn Python iot Raspberry Pi ardino P from the scratch and from freely then please subscribe my Channel please support me and the most important part is whatever the code I have explained whatever the project I have created on this YouTube channel all this project are freely available you no need to pay anything for this project so just if only point is you should watch complete video and you should follow my process so if you want to learn something from the scratch and freely then support me and please subscri my channel and please click on like button hello friend in today's session we will learn very interesting project the project name is some home security system by using RFID and GSM model so before start this video I would like to tell you what will be the flow of this project so that you will get idea about each and everything about this project so basically you can see on the screen we have the many sensor so basically we have the GSM 900a moduel then we have LCD then we we have PR sensor then we have Sero motor then we have RFID model and then we have ardino and also we have one switch so what is use of exactly this sensor in this project I will tell you so basically this RFID model will scan whether there is a valid person or invalid person okay so this scan let's say assume this scan is attached at your door and this Ser motor act as a door door open and door Clos system so let's say if the valid person enter he wants to enter in the house so what he will do he will scan his RFID by using this RFID sensor so once this scan happen and that is a valid person then G will be open and get will be closed that means he enter in the house okay let's say if any invalid person scan his RFID tag on on this RFID model then what happen if there is invalid person then this GSM model will send the message to the user like someone try to access your door or someone try to enter your house it is unauthorized person that is the message he will uh that this ordino will send on the pp respective user so this is the one part so second part is let's say if any any user or any person directly jump into house without scanning this RFI tag he directly enter From the Terrace or somewhere so what will happen this PR s detect whether there is a human movement inside the house or not if there is a human movement inside the house and this tag is not scanned before that then it is invalid person into the house so the GSM model send the message on unauthorized user enter in your house so this basically this PR sensor scan whether there is a person inside house or not if the valid tag scan from this RFID sensor and get open and get calls after that if the sensor scan there is a person in the house then it will not send the message because it is a valid person if RFI Tech it's not scan and gate will will not open and close that time and after that if the sensor scan if there is a person movement then it will immediately send the message to the user like someone is enter in your house like that one okay so that is the flow now what is use of this switch this switch is very important so basically let's say the valid person scan his tag enter in the house and after that this moment will detect so if you want then this device will continuously send the message like someone in the house someone in the house so if you stop that message if you stop the security system then you can press the switch by pressing the switch the security system will stop it will not send the message and let's say if the user wants to go out of from the house then what he will do he will again press the switch and again activate the security system so if he is outside the house then the security system work and he again scan if there is valid person inv person and respective that it will send the message this LCD basically used to give the idea give the message to the users scan the card or security system activate or not so that type of message will show on the screen so this is the complete idea I hope you understand the complete flow of this project now we will see the Practical demonstration of this project and then we will see the hardware connection and then we will see the program part of this [Music] video now we will see the Practical demonstration of this project so you can see I remove the power from the ardino once I give the power then it will display on the screen home security system and then after that it will show uh scan your card or something so let's I will give the power first so at the starting it will calibrate the S motor with to the initial position so you can see again I will give the power so that you can observe here it will show the uh project name home security system and then scan your card now uh it is asking scan the RFI tag so I have two RFI tag this is one RFI tag this is another so two are the RFI tag so this is the valid RFID tag and this is the invalid so when I give the valid RFID tag near to this sensor then get will be open and get will be closed so currently you can see it is continuously showing unauthorized access access also on the LCD because this PR sensor detect my mement so that mean some more enter in the house so first I disable this security system you can see security system deactivated now it will not send any message so I temporary I have disabled this this uh security system so I will show the first part so you can see I have scan this so get open and get close so that means someone enter in the house and it is valid person it is also show showing on the screen valid person you can see again valid person card uh detected and get open get close so this is the one part now we will see unauthorized scan so this is unauthorized or you can say invalid uh RFID Card and you can see and one second and here is you can see mobile uh user mobile where from my number there is no any M right now I will say unauthorized person access message here also so I you can see when I Tye this card unauthorized card it will show on the screen unauthorized access it will send the message here so access you can see anybody person detected and now wait for some second it will send the message you can see message receive unauthorized person enter in your house so this is one part now again what I will do I will enable the security system so from this switch which I have I will enable security system activated now once the pr sensors detect my movement you can see it is detect my movement and it will show it will send continuously message you can see unauthorized second message show you can see unauthorized person entering house because this PR sensor continuously detecting my movement and on the LCD also you can see unauthorized access and at the same time you can see unauthorized access person enter in your house message rece on the mobile so you can see continuously it will show okay now one part also we will see now it is continuous showing unauthorized access because uh no valid RFID scan is RFI tag is scan from this sensor so that's why it is show unauthorized access and it is continuously sending the message here you can see continuously I'm getting message you can see lots of message I receive up till now you can see do message to S because it it is scanning my movement there so what I will do I will give the valid scan you can see valid so once the valid tag is there then even if you if there is a movement you can see even there is a movement inside the house I I giving my hand movement there it is not showing unauthorized scan on unauthorized access because valid person in enter in the house now let's say if the valid person wants to go out of house so what it will he will do he will again enable this security system activated now you can see it is Contin showing unauthorized access because valid a person go out of out from the house there is no valid scan and some movement is detecting inside the house that's why it's showing unauthorized access so that is the complete overflow I hope you understand the complete overflow of this Pro project practical demonstration of this project now we we will see the now we will see the hardware connection and then we will see the program part okay another part I want to show you if there is no movement inside the house then it will not show unauthorized access now it is detecting my movement I will stop my movement for 1 to 2 minutes it will just show scan your card so I stop my movement completely so you can see once I stop my movement it is not showing unauthorized access that means our p PR sensor is completely working file there is no issue with the pr sensor if I give some movement in in in my house or in my room it will show unauthorized access now I moving somewhere little bit and showing some movement you can see it starts showing unauthorized access and at the same time it should show the message you can see continuously it's showing the message so that is the use of PR sensor so everything is working from this project there is no issue project working successfully uh project is working 100% if you follow the connection if you follow the video definitely you can also design this project by [Music] yourself okay now I have remove all the hardware we will see one by one how to connect all the hardware so already know this is already know on already know there is a PIN number you can refer that one so first circuit is this one you can use breadboard for that one no need zero PCB only what you need common VCC so common point is there and Common Ground so basically from the ardino 5 volt we take as a common VCC and ardino ground we take as a common ground so whenever we require common VCC or common ground we will take from this one you can use a braid board also for this there is no issue so first point is positive terminal should be connected to 5 volt from the ardino and negative terminal should be connected to ground so whenever I require the ground I will take from here and whenever I require the 5 volt I will take from here it is very basic circuit okay now after that this LCD I already told my previous video in detail LCD connection here I will just explain in very short if you want detail explanation please watch that video that video thumbnail uh thumbnail you can see on the screen so basically there are four pin we will connect that four pin so where in quick I will show ground pin should be connected to ground so from this one ground pin so whenever I need ground I will connect from here ground then VCC pin so this is the VCC pin I will connect from 5 Vol so this is the common 5 Vol then after that uh you can see pin a c pin should be connected to end point of ardino so there is the end point of ardino please watch that video if you don't understand here that I explain very detail so end point is here and then SL pin just near to that pin you can see this one see this two pins I have connected one is end uh I will show you quickly there should be not any confusion so this two this two you can see this one this one and near to that so this two pin I used so SC should be connected to at the end and uh SDA should be connected to near to that like this connection of LCD so that LCD is completed uh now next part is this one RFI Tech so it is very easy you can see on the screen the connection of R RFI TCH with ardino you can follow that you can follow that circuit so first 3.3 voltage we have to connect to Ardo 3.3 voltage so basically this RFI tag having the pin uh number explain here on RFI tag you can follow that one so 3.3 voltage should be connected to ardino 3.3 voltage which is here okay then after that um uh rst pin so this is the rst pin this is the rst PIN of the RFID my rst pin so this RS tpn should be conned to nine number I'm just following the connection what you see on the screen so nine number I will place here okay that's it then after that uh after that there is a next pin is ground pin so ground pin should be connected to ground so we can take the Common Ground from here so this is my Common Ground then after that you can see um uh next pin we have to no need to connect then miso this is the Miso pin that should be connected to 12 number of ardino so 10 11 12 number okay and then after that moso so this is the moso pin that should be connected to 11 number of orino so connected 11 number then after that you you can see there is a SCA pin that should be connected to 13 number pin of Ardo so 13 number pin and then last pin is SDA pin that should be connected to 10 number pin of Ardo okay simple connection so this is completed I will just use cot here so it will not move anywhere so this is done so this is done RFID it is very simple just follow that connection now the next part is now next connection is Ser motor Ser motor is again very simple connection there are three pins on this S motor you can see I will remove this one it is not required right now so this three pins fun uh the brown pin is nothing but your ground the red pin is nothing but your uh five supply pin and the yellow pin is nothing but your uh output pin that is the connected to the ardino so this is very simple connection so you can see on the screen the connection diagram same connection diagram you can follow the brown pin so this is my brown pin it is connected to ground okay then uh red pin this is my red pin it is connected to VCC that is 5 Vol and the output pin that is the orange pin or yellow pin you can see that should be connected to that's per diagram three number pin of Ardo so just connect to the 0 1 2 3 so Ser motor connection is completed very easy now next connection is PR sensor so PR sensor connection also you can see on the screen there are three pins on the pr sensor it is very easy when you plug out this then you will find here the name uh ground output and VCC so connect VCC to 5 Vol ground to ground so this is my VCC this is my ground and middle one is output so very easy so this is my VCC so I will connect to 5 Vol okay so this is my ground ground pin of PR sensor it should be connected to ground and middle one pin of PR sensor is output pin that should be connected to four number pin of ardino so four number pin of ardino so this also completed this PR sensor we just place here PR sensor okay uh now the next part is gsm model GSM model L very easy when you purchase this GSM 900 uh there is a pin connection which is given here you can see those are the pin connection we just need ground pin and the rxd pin so ground pin of this GSM model so I will put that GSM model here and this ground pin should be connected to ground so I will just place this ground pin to ground and rxd pin of so this is my rxd pin of GSM model that should be connected to two number pin of already know let me check once again rxd pin is two number or which one sorry uh rxd pin of GSM model that should be connected to five number pin of Ardo so that is connected to five number pin of already know so Rd been fin number that is only two connection then after that for the GSM model you require for the GSM model you require 12 volt 1 aamp adapter uh you have to give the power here from this you can see this is the power uh at this point of GSM model at this point you can give the power place this plug here okay it is very important you should give the power yeah you should give the power like like this once you give the power just plug this to the your main house Supply so that it will give the power there and place your sim card here so 12 volt 1 aamp adapter you require for the GSM and I use the GSM 9900a model so uh so almost we completed only switch model is remaining I will show you the switch model connection so only last part is reming that is a switch circuit I have made this switch circuit on the Zero PCB you can use the braid board also the circuit connection you can see on the screen so I will just show you what you have to do so first is ground pin from this switch should be connected to Common Ground so here you can see common ground and then positive pin from this switch circuit should be connected to 5 vol and in the circuit diagram it shows switch pin is connected to switch pin is connected to two number of Ardo so from that circuit you can follow the output pin from this this one should be connected to two number pin of ardino so two number pin you can see here so we completed the hardware connection now I will give the power supply to the ardino so how to give the power supply to ardino just this pin you can see this is the ordino PIN you to just plug here and after that you can give the power supply from the laptop just put this USB to your laptop so let's see if our circuit works that means all circuit are very good yeah it is working you can see home security system scan your card now I will give the scan card Val ACC detected so motor is working everything is working fine PR sensor is working or not that we will see uh it should show sorry I will activate this security system activated now let's see any movement on PR sensor you can see unauthorized access so our PR sensor also working fine all circuit is working in front of you I have connected the circuit it is working perfectly you can follow this uh circuit and uh your project will be working [Music] fine okay now let's understand the program so very important first part is uh you should download this folder from my web page link the web page link given in the description so from that one you will find one zip file you have to unzip that file and then you will get all these folder so here is basically some circuit diagram is there and program that I use so so after that you require Pro uh ardino software in your laptop if you don't have the software please watch my accident detection video the thumbnail you can see on the screen in that video I explain how to install those software this software in your laptop okay after that what you have to do you have to open this ardino software then go to the file and then go to the open and then go to that folder location so this one and inside this there is a program open this program so your program will be open now very important point is first you check your laptop should have the internet connection because we have to install this library for example M Mr uh M MFR c52 this Library you require so how to install and this Library also you require so how to install those Library if any Library missing at your end it you comp like Library uh not found so just go to the uh this one sketch go to the sketch and then go to the include library and then go to the manage Library so after that it will open Library window just wait for some second okay so it will open just wait for some second it will complete this download index process okay once it done then you can search your library for example this liquid Mr MFR c52 just type here and it will search the library just wait for some second so you can see uh this library in it is showing the information so which Library I have install I will okay so you can see I think I have installed this Library MFR RC 52 i2c Library you so this Library also you can install at your in I have already installed with version 1.5.1 so like this you can install this library and then I Library also you can install uh Liquid Crystal so copy this just search the i2c Liquid Crystal Library here so like this you can type Liquid Crystal i2c and after that you can see uh this Library I have use Liquid Crystal i2c my version is 1.1 1.2 so in your case you can select the latest version and try to click on install button and then the library install like this click on install button and then Library will install so once you install the library you can verify whether Library install in or not just go to the file then go to the example and uh here you can search whatever Library install so for example Liquid Crystal i2c name is there then uh M M M MFR c52 uh name is there so likewise this Library I have installed already so very important you should install this to library or any Library missing just install that one with that process so in the code at the starting we include all these library that is our first steps then after that for GSM model we require rxt export so we Define rxt export as here you can see four number pin four number pin work as RX of ardino and F number is T of Ardo so that's uh we connected F number pin to GSM RX pin that's the reason because there should be cross connection between our RX of ardino and TX of uh this GSM model and TX of R not to RX of GSM model so that's why we connected only five number pin because we are not receiving any response from the GSM model to the ardino we are sending the response so that's why TX pin of ardino should be connected to RX pin of gxm model then for Servo connection we require one Servo object we Define here then 27 why it is 27 that I because this is the i2c address of your El Crystal LCD model how to find i2c add if if you don't know in your case if 27 not wor then you have to find your i2c address so how to find please watch my Liquid Crystal video that video you will get idea how to find this uh address try with 27 first if not work then go to that video and check your it to address and then that address should be uh replaced with here then Ser motor pin we connected to three number then this some uh variable then button pin we connected two number then PR sensor we connected four number so all these are the numbers whatever the connection we have given uh then after that main part is coming here wi setup so for GSM model we use B 960 that's why B we Define here then all the pin which are the input output functionality we Define here you can see PR sensor as a input button as a input so that's why two pin as a input here and S motor we attach the Sur motor to start the control of ser motor then we initializing the LCD then backlight turn on then bate serial bate 9C SP beginning we started like for our your RFID model it's require communication that's why we started the spay here then we initialize the our model then we are printing on the serial terminal here like approximate your card is reading that the message then on the LCD we first clear then on LCD we print home security system uh so basically when you want to print on the first line of LCD first row then you have to give z0 command then print if you want to say print on the second row then 0 one common and then then home security system so like this it will print on the two line then some delay then initialization of S motor at the 20° so that's why we given here 20 so you can have like like if you want 30° initiation then you can give 30 value 90° you can give 90 value so it is initial value of your Sero motor and some delay initially we are checking if button is press or not to activate or deactivate security system so here we are checking whether button is press or not if the button press then we are getting the high signal from that line you can see this is the button line and if button press then we get high signal so once we get high signal checking whether system already active or deactive so if the system is already active then we have to deactivate the system and we have to print on the LCD system uh security system deactive else if the system is already deactive then we have to active the system so we we given value one and then we are printing security system active so this is the logic uh where you are deactivating and activating the security system so after that U we are reading the PR sensor input with the same logic you can see and if the pr sensor input is low that means there is someone detected inside the room then we are giving the warm cycle and after that warm cycle we are printing if the system is active that means uh there is security system active once we press the button and we are checking if the system is active then send the unauthorized access on the LCD and then send the message to the user if system is active PR sensor detect uh any in the room then send the message this is the logic behind that one you can see this is the logic behind that one it's very simple if if else Loop only and then after that we are clearing the LCD we are printing on the LCD scan your card then here it is checking whether there is a new card or not and once you scan the card your uid gets uh read by this for Loop and once your uid gets read then uh you can see this serial terminal so basically um at the starting you have to check your what is the card number so how to check just uh connect your ardino and RFID model and download the program and then open the serial terminal and just scan your card so once you scan your card your card number will be print there and then you can replace this card number by your card number so here you can see uh I have given my card number here so in your case you have to give your card number uh otherwise I will give another program with this only this one RI with ardino so with this program Al you can verify what is your card number connection will be same there is no change in connection so I also put this program in here so this program you can open uh let's say open so what exactly this program will do same connection there is nothing 10 nine number same pins we use here you can see 10 and nine number 10 and N number same pins so this program only print your uh uh like same program only print like what is your card number so once you have the card number download this program at your RF card and check your number here also it will be possible to check the number because I'm printing on the screen so once you check your number just replace your number here otherwise it will give unauthorized access to you continuously so once your number gets match here after you card scan then it will deactivate system because we don't want to activate system because um because valid person enter in the room then after that LCD clear we are printing on the LCD valid access car detected then we have to turn on the Sero motor from 20° to 180° uh this is the logic we have to send the 20 then 21 22 23 like this angle we are sending you can see is do right position position we are taking from the for Loop and then once is raised to the 180° then again from the 180° we have to decrease decrease decrease uh and we are sending till 20° so on uh sorry open and close logic is for sur motor then if the invalid card is here you can see once this lo location from here yeah so from here if there is invalid card is detected then it's go to here and directly print on the LCD inal card access and it will called send message function into send message function you can see there is a number you can replace your number by uh replace this number by your number so I will put put here star star star so instead of this number you can put your number and then uh replace your number and whatever number like whoever the person you want to send this message just place that number here do not delete anything back slash this double quote only star star you can delete otherwise it will not send the message so you can see again I show the number and I just removed the number nothing back slash no need to delete double code no need to delete otherwise it will not send the message so focus on here and then yeah it will send it command then on that number it will send this message so if you want to change the message you can give message whatever you want uh I have given this message if you want to give another message you can give here and yeah that is the logic behind this code I hope you understand the logic completely now once you have this this code just verify with this verify button so if there is no error it should be verify here you done message done compile there is means there is no error then again you can take your ardino plug the pin into ardino and your laptop like this plug and then go to the just do the connection whatever I told all these things and then go to the board select here already know you know and then comport as per your comport select your comport and just click on this upload button and once it successfully upload that mean your program will be run so that is the idea behind this complete project complete code Hardware connection I hope you understand all the things uh if you have any doubt please reach me out I given my mobile number in description code you can download from my web page link given in the description so that's all about today's video if you have anything reach me out anytime on my WhatsApp number okay thanks for watching this video
Info
Channel: Rahul Jadhav
Views: 804
Rating: undefined out of 5
Keywords: rfid door lock access control system, arduino rfid with lcd, arduino rfid door lock, arduino rfid door lock servo, arduino rfid door lock system with lcd display, arduino rfid tutorial, arduino rfid master card door lock system, rfid based door lock system using arduino uno, rfid based security system using arduino, rfid based attendance system using arduino, rfid based projects, rfid based access control system using arduino, door lock system using arduino
Id: -a5CIbmS5SQ
Channel Id: undefined
Length: 36min 2sec (2162 seconds)
Published: Sat Nov 25 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.