AMP Tech – Articles

Simple Access control Using RFID MFR-522:

Published by

on

Hardware Required:
1.  RFID MFRC-522
2. RFID Tag
3. Arduino UNO

First, go to the following Github page and download the RFID Library master.zip file.
https://github.com/miguelbalboa/rfid
Install the zip file on Arduino IDE.

Once installed, connect the RFID MFRC-522 to Arduino UNO as follows:

From Arduino IDE, load the example Dumpinfo.ino.

Open the serial monitor.
Now RFID Reader board is ready to read RFID cards.
Swipe the card or Key tag.
You will get something like this:
From this you can find out the UID of the Tag or Card.

MIFARE 1K Data Structure:

Now connect an LED on Digital Pin-8 and load the following code to UNO:
Note: This example allows only 2 x cards. If you need few more,  add UIDs as necessary.

This simple Access control Grant access for only 2 x cards with
UID = “CB 8E EB 3C” or “0C FF AF 32”.
Others are Denied.
Also Led on D8 blinks when Access Granted.
A relay or other device can be connected to  D8.
Serial Out:

Leave a comment

Design a site like this with WordPress.com
Get started