Getting Started with Mifare RC522 RFID Kit (RFID-RC522)

Last Updated on 5 August 2017
This article is written by internship student Khairul Baihaqi Bin Mohd Jafry


RFID (Radio-Frequency IDentification) commonly used now. RFID set/module is affordable so you can buy it and start to make a project. Usually, RFID reader uses Mifare MFRC522 chip. So you need the library for MFRC522, you can download it here. RFID was commonly used for any security system so what are you waiting for? You can start to make a project, for example, the door lock with RFID scanner.

RFID reader comes with RFID’s tag card. RFID reader can detect a card or tag within 1cm. The card reader and the tags communicate using a 13.56MHz electromagnetic field. RFID RC522 communicate with Arduino boards through SPI communication. You don’t need any other components/stuff like the shield I guess for basic setup.

SPECIFICATION

  • MFRC522 chip based board
  • Operating frequency: 13.56MHz
  • Supply Voltage: 3.3V
  • Current: 13-26mA
  • Read Range: Approx 3cm with supplied card and fob
  • SPI Interface
  • Max Data Transfer Rate: 10Mbit / s
  • Dimensions: 60mm × 39mm

HARDWARE REQUIREMENT

  • CT UNO. (You may use other mainboards such as Arduino UNO and Arduino Mega)
  • Mifare RC522 RFID Kit
  • USB Micro B Cable (for CT UNO).
  • Jumper Wires
  • Breadboard

SOFTWARE REQUIREMENT

Arduino IDE, you can download it at www.arduino.cc.

ARDUINO WIRING

RC522 MODULEUNOMEGA
SDA(SS)D10D53
SCKD13D52
MOSID11D51
MISOD12D50
PQNot ConnectedNot Connected
GNDGNDGND
RSTD9D9
3.3V3.3V3.3V

STEPS

1. Connect CT-UNO board to the RFID reader.

2.Download and install MFRC522 library on your Arduino IDE.

3. You can try to upload an example sketch. Go to File>Example>MFRC522>DumpInfo.

4. After you’ve done upload the code, open Serial Monitor to see an information from RFID reader.

5.You may need this sub-function to get RFID’s unique ID without display it at Serial Monitor first.

void dump_byte_array(byte *Buffer, byte bufferSize)
{
String readRFID = "";
for (byte i = 0; i<bufferSize; i++)
{
readRFID = readRFID + String(Buffer[i], HEX);   		// readRFID is RFID’s unique ID.
}
}

REFERENCES

  1. Mifare MFRC522 RFID Reader/Writer
  2. RFID Library GitHub

Note: For further inquiry, please visit our technical forum as we seldom check the comment here. 🙂

,

Related Post

RFID Reader ID-20LA (125kHz) with Arduino

Compact RFID Reader, ID-20LA

Interface MiFare Reader/Writer with Arduino

Wireless RFID Reader Using XBees

Leave a Reply

Your email address will not be published. Required fields are marked *