MFRC522 RFID Access Control System

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.

Supplies:

I strongly suggest you to buy the hardwares from UTSource. since their products are good quality and more affordable. Enjoy buying from them with cheapest prize.
1)Arduino Uno 1 x 1

2) RC552 RFID 1 x 1

3)jumper wires

4) 16x2 LCD 1 x 1

5) LCD Breakout board

Teacher Notes

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.

https://www.instructables.com/id/How-to-Read-Rfid-...

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.

For LCD

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..

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions

    0
    None
    Hernando Arandela

    6 days ago

    Thanks for sharing! Super interesting instructable! I'll try it soon (After I order some of the components) and of course I will ask you to solve my mistakes!