Hello friends, I am Anto... In this tutorial, we are going to make a RC522 RFID access control system. In this tutorial, I just displayed the access control and denied of the RF TAG. if you want to add relay unit or lock unit, you have to add the corresponding pins in the code, else comment me, i will guide you.
2) RC552 RFID 1 x 1
4) 16x2 LCD 1 x 1
5) LCD Breakout board
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Gather the Required Components
You can use Arduino UNO, Nano, MEGA for using RC522 RFID. The only difference the pin connection since RC522 RFID works on SPI protocol. you can find the pin connection details on the sample code on the examples...
You can find both Key chain model RFID and tag model transmitter module with unique ID.
Use LCD Breakout board to connect the LCD with the arduino
Step 2: Adding Library to the Arduino IDE to Download the Code for Arduino
I strongly suggest you to follow my tutorial, how to add the RFID library to the arduino IDE. open it in a new tab and follow the steps and then follow it from step 3.
In that tutorial, you can came to know how to find the unique ID on the RFID tag, so that it can be more useful to you.
Step 3: Circuit Diagram
Construct the RC522 and arduino with LCD as per the circuit diagram. I have given different images about the pin diagram of the interfacing between the arduino and RFID.
LiquidCrystal lcd(7, 6, 5, 4, 3, 2); //Parameters: (rs, enable, d4, d5, d6, d7)
connect in such a way to display the status
Step 4: Download the Code Given in the Attachment
Download the code from the attachment and make a suitable edit on the code. Replace the RFID unique ID in the code with yours ID. Now download the code into your arduino uno board. adjust the variable resistor on the LCD breakout board for better contrast.
Step 5: Result
Place the RF Tag on the receiver module. now you can observe that your id have the authorized access or denied.
If you need any relay switching, modify the code depending your needs.
If you have any queries... comment me..