Raspberry Pi RFID Door Lock System with Database Interface

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi welcome to donkey Tech in this video I'm gonna be sharing my complete Raspberry Pi RFID door lock system with a database interface as you can see here I have here my Raspberry Pi zero my mfrc522 reader a relay and a solenoid door lock several status LED and a buzzer component including my external power supply also in here which Powers my solenoid door lock I also have several RFID taxi here when I try to scan should validate if these are an ID tag is present or not in our database so for example this RFID batch number wtp RRS is not present in our database while the other one which is the AABB CC and ddrfid batch number is present in our database so let's try to scan first this invalid one and what I'm expecting is that when I try to scan in here my red LED should light up then my buzzer should sound and my solenoid door lock should remain shut down or loud so let's try this one [Music] as you have seen the red LED light lights up and there's the buzzer component that sounded let's try again okay which means that this RFID batch number is an invalid and is denied access however I have here my second prep ID badge which has a batch number of a a b b c c and BD which is by the way present in my database so if I scan this one then what I am expecting is that the green LED in here should light up and there should be no buzzer but my solenoid door lock should open up so let's try this one as you can see my green LED lights up and my solenoid door lock unlocks let's try again okay so meaning the this RFID badge number is present in our database now let us take a look at the program output in my Raspberry Pi so this is the program output in my Raspberry Pi and let's try first running the invalid one and let's see what will happen in our [Applause] terminal program output let's try [Music] you could see you know we've seen the message access denied which means that this RFID badge is it valid or denied access so let's try this one this RFID is valid as you could see you're able to open the door lock and there is a message here which represents the information regarding the RFID and the name of the student that should own this RFID badge number so this program that is running in my Raspberry Pi which by the way I am accessing through coffee terminal this program that I am showing it's communicating with another application which I am calling as my rest API application which is running in my laptop so I'm going to show you this application so this is the application that is running in my laptop and the job of these two application is to communicate with our mongodb plus database where we store the information regarding our RFID also this is the program that communicates with our Raspberry Pi program and thanks back information regarding the RFID batch number the two obligation is written using node.js and react.js and is using what we call as demand stock or the mongodb express react and node.js technology stuff this rest API application exposes a rest API endpoint which we are using in our program validate if our rest e-power RF id batch number is present or not in our database also it creates an application so we can take a look like this one which is our students RFID system and this contains the information regarding our students including their RFID batch number so let me try to verify if this RFID batch number is really present in our database so as you could see this RFID batch number is ready present in our database so that's why when we try to scan it the RFID door lock opens and this RFID batch number is given access however if we try to search for the other one which is the QQ RR SS you would see that there is no student with that particular details so that's why if we scan this uq ttrs again then this particular batch number is denied access however if we edit this particular student and we assign this particular RFID badge number to him so for example this one we assign it the RFID batch number of QQ APR and SS and then we click edit you will see that we have successfully edited the information and if we click back we now have this RFID batch number assigned to this particular student so what I'm expecting right now is if we scan this particular RFID badge number then we should be given access so let's try it but you could see the door lock opens up and my green LED lights up let's try again okay the meaning this RFID batch number is now able to access our door lock system and that's all for the demo regarding this particular project the details on how to run this application including the overall design is available in the description of this video so that you would be able to understand the overall feature on how it really works I have created the step-by-step explanation on how to set up this whole project so that you would be able to apply it in your own project all of this is available in the companion write-up which you can find out in my web page and the code for all of this is available also in my GitHub repository for you to check out I hope you learned something happy exploring [Music]
Info
Channel: DonskyTech
Views: 2,892
Rating: undefined out of 5
Keywords: rfid, raspberry pi, python
Id: boe7YahkGlw
Channel Id: undefined
Length: 8min 59sec (539 seconds)
Published: Thu Nov 10 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.