100% found this document useful (1 vote)
7 views7 pages

Keyes RFID RC522 Development Kit Guide

The Keyes RFID RC522 Development Kit allows for the development of RFID applications using NXP's MFRC522 chip. The kit works with ISO/IEC 14443A cards and operates at 13.56MHz. It has a range of up to 5cm and supports Mifare 1 cards. The kit can be connected to an Arduino via SPI and used with the RFID library to read card information and display it in the serial monitor.

Uploaded by

LucaDelbarba
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
7 views7 pages

Keyes RFID RC522 Development Kit Guide

The Keyes RFID RC522 Development Kit allows for the development of RFID applications using NXP's MFRC522 chip. The kit works with ISO/IEC 14443A cards and operates at 13.56MHz. It has a range of up to 5cm and supports Mifare 1 cards. The kit can be connected to an Arduino via SPI and used with the RFID library to read card information and display it in the serial monitor.

Uploaded by

LucaDelbarba
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Keyes RFID RC522 Development Kit (Rev 1)

General Description

Keyes RFID RC522 Development Kit is a low cost and easy to use module suitable for equipment
and advanced applications development that needs RFID application. RFID stands for Radio-Frequency
Identification. The acronym refers to small electronic devices that consist of a small chip and an
antenna. The chip typically is capable of carrying 2,000 bytes of data or less.

The module uses NXP’s MFRC522 which is a highly integrated reader/writer IC for contactless
communication at 13.56MHz. The MFRC522 reader supports ISO/IEC 14443 A/MIFARE mode. The
MFRC522’s internal transmitter is able to drive a reader/writer antenna designed to communicate with
ISO/IEC 14443 A/MIFARE cards and transponders without additional active circuitry. The receiver
module provides a robust and efficient implementation for demodulating and decoding signals from
ISO/IEC 14443 A/MIFARE compatible cards and transponders. The digital module manages the complete
ISO/IEC 14443 A-framing and error detection (parity and CRC) functionality.

Page 1 of 7 pages
Specifications

 Module Name: MFRC522


 Working current: 13—26mA/ DC 3.3V
 Standby current: 10-13mA/ DC 3.3V
 Working frequency: 13.56MHz
 Card reading distance: 0-50mm(RFID card), 0-30mm (RFID Key)
 Protocol: SPI
 Data communication Speed: Maximum 10Mbit/s
 Card types supported: Mifare1 S20, Mifare1 S50, Mifare1 S70
 Dimension: 40mm×60mm
 Working temperature: -25—80 degree
 Max SPI speed: 10Mbit/s

Schematic

Page 2 of 7 pages
Using the module
You need:
Arduino
Keyes RFID-RC522 Module
Wire Connectors
Breadboard
1. Connect the Keyes RFID-RC522 Module to your arduino by following the pin connections
shown below.

2. Enter this sketch to your Arduino IDE then click upload. You can also find this at RFID library
examples. This program will read and display the RFID of the RFID enabled device into your
Serial Monitor.
#include <SPI.h>
#include <RFID.h>

#define SS_PIN 10
#define RST_PIN 9

RFID rfid(SS_PIN, RST_PIN);

// Setup variables:
int serNum0;
int serNum1;
int serNum2;
int serNum3;
int serNum4;

Page 3 of 7 pages
void setup()
{
[Link](9600);
[Link]();
[Link]();

void loop()
{

if ([Link]()) {
if ([Link]()) {
if ([Link][0] != serNum0
&& [Link][1] != serNum1
&& [Link][2] != serNum2
&& [Link][3] != serNum3
&& [Link][4] != serNum4
) {
/* With a new cardnumber, show it. */
[Link](" ");
[Link]("Card found");
serNum0 = [Link][0];
serNum1 = [Link][1];
serNum2 = [Link][2];
serNum3 = [Link][3];
serNum4 = [Link][4];

//[Link](" ");
[Link]("Cardnumber:");
[Link]("Dec: ");
[Link]([Link][0],DEC);
[Link](", ");
[Link]([Link][1],DEC);
[Link](", ");
[Link]([Link][2],DEC);
[Link](", ");
[Link]([Link][3],DEC);
[Link](", ");
[Link]([Link][4],DEC);
[Link](" ");

[Link]("Hex: ");
[Link]([Link][0],HEX);
[Link](", ");
[Link]([Link][1],HEX);
[Link](", ");
[Link]([Link][2],HEX);
[Link](", ");
[Link]([Link][3],HEX);
[Link](", ");
[Link]([Link][4],HEX);
[Link](" ");
} else {
/* If we have the same ID, just write a dot. */

Page 4 of 7 pages
[Link](".");
}
}
}

[Link]();
}

3. Now place the RFID card or RFID key near the module.
Results

Actual Setup

Page 5 of 7 pages
Sample Program
You already know the RFID tag of your card and key. So let’s put a message on it. This might
be easy but when you think of its application it’s quite broad.

#include <SPI.h>
#include <RFID.h>

#define SS_PIN 10
#define RST_PIN 9

RFID rfid(SS_PIN, RST_PIN);

// Setup variables:
int serNum0;
int serNum1;
int serNum2;
int serNum3;
int serNum4;
String yourName;

void setup()
{
[Link](9600);
[Link]();
[Link]();

void loop(){
if ([Link]()) {
if ([Link]()) {
if ([Link][0] != serNum0
&& [Link][1] != serNum1
&& [Link][2] != serNum2
&& [Link][3] != serNum3
&& [Link][4] != serNum4
) {
/* With a new cardnumber, show it. */
[Link](" ");
[Link]("Card found");
serNum0 = [Link][0];
serNum1 = [Link][1];
serNum2 = [Link][2];
serNum3 = [Link][3];
serNum4 = [Link][4];

yourName = String(serNum0)+String(serNum1)+String
(serNum2)+String(serNum3)+String(serNum4);
if (yourName == "68233591482"){
[Link]("Hi Phillip!!!");
}
if (yourName == "183524753243"){
[Link]("Good Day Boss!");

Page 6 of 7 pages
}
if (yourName == "282162018588"){
[Link]("You can now make your own
project! have fun");
}

[Link]("Cardnumber:");
[Link]("Dec: ");
[Link]([Link][0],DEC);
[Link](", ");
[Link]([Link][1],DEC);
[Link](", ");
[Link]([Link][2],DEC);
[Link](", ");
[Link]([Link][3],DEC);
[Link](", ");
[Link]([Link][4],DEC);
[Link](" ");
}
else {
/* If we have the same ID, just write a dot. */
[Link](".");
}
}
}
[Link]();
}

Result

Page 7 of 7 pages

Common questions

Powered by AI

The Arduino sketch for reading RFID cards initiates by including necessary libraries such as SPI and RFID and defining SS and RST pins. In the 'setup' function, the serial communication is started at 9600 baud rate, SPI is begun, and the RFID module is initialized. The 'loop' function continuously checks if an RFID card is present using 'rfid.isCard()' and reads the card serial number through 'rfid.readCardSerial()'. If a new serial number is detected, it is printed to the Serial Monitor in both decimal and hexadecimal form. The sketch also identifies pre-defined card numbers and displays personalized messages for them .

The setup in the RFID reader program allows for customization by checking the detected card’s serial number against predefined values, triggering personalized messages as outputs. This feature implies enhanced user interaction by acknowledging specific users or items with customized greetings or instructions, personalizing experiences, and potentially integrating with personalized services or user profiles. Such customization is useful in environments where individual identification and tailored responses are necessary, enhancing user experience and operational efficiency .

The MFRC522 module's key specifications include a working frequency of 13.56MHz, a working current of 13—26mA at DC 3.3V, standby current of 10-13mA at the same voltage, a maximum card reading distance of 50mm for RFID cards, and support for data communication speeds of up to 10Mbit/s. It also supports various card types like Mifare1 S20/S50/S70, operates across a temperature range of -25—80 degrees Celsius, and uses the SPI protocol. These specifications contribute to its efficiency by providing a robust framework for fast and reliable RFID operations, suitable for a variety of environments and applications .

The working temperature range of -25 to 80 degrees Celsius for the MFRC522 module is crucial for maintaining its performance across diverse environmental conditions. This wide range enables the module to function effectively in both cold and hot climates, which is essential for applications in industries that operate outdoors or in non-controlled indoor environments. A robust temperature tolerance ensures system stability, prevents operational errors, and enhances the longevity of the RFID system under varying climatic conditions .

Potential applications using the Keyes RFID RC522 Development Kit include access control systems, inventory management, event attendance monitoring, and automated payment systems. These applications leverage the technology's low-cost, ease of use, support for various RFID card types, and robust data communication capabilities. For instance, in access control, the kit can be used to read RFID badges for secure entry, while in inventory management, it can track items tagged with RFID labels efficiently .

The maximum card reading distance of 50mm for RFID card and 30mm for RFID key can limit applications requiring longer-range interaction. This constraint can be mitigated by positioning the reader strategically within access points, ensuring unobstructed communication paths, or integrating low-power signal boosters to extend the effective range. Accurate alignment between the card and the reader can also improve reading reliability within the specified distance .

The Keyes RFID RC522 Development Kit facilitates RFID application development by leveraging the NXP MFRC522 reader/writer IC, which allows for contactless communication using ISO/IEC 14443 A/MIFARE standards at 13.56MHz. It includes components such as a small chip and an antenna capable of carrying up to 2,000 bytes of data. The kit's built-in transmitter and receiver support driving and communicating with RFID cards and transponders without extra circuitry, while the digital module handles ISO/IEC 14443 A-framing and error detection .

Understanding and manipulating RFID serial numbers can enhance security by allowing systems to accurately identify and authenticate each RFID-tagged item or person. By comparing serial numbers to pre-defined values, unauthorized access can be prevented. Additionally, comprehending these serial numbers helps in tracking and recording access logs, managing permissions dynamically, and integrating RFID systems with broader security protocols for real-time monitoring and audit tracking .

SPI (Serial Peripheral Interface) plays a central role in facilitating efficient data exchange between the MFRC522 module and microcontrollers such as those used in the Arduino platform. This protocol allows high-speed synchronous data transfer up to 10Mbit/s, supporting the rapid reading and writing processes required by RFID technology. SPI's full-duplex capability and simple design make it suited for the development kit's compact and low-power environment, ensuring seamless integration for reading and decoding RFID card data .

The RFID module manages error detection through ISO/IEC 14443 A-framing, which includes functionalities such as parity checks and cyclic redundancy checks (CRC). This capability is crucial for maintaining the integrity of data transmission in contactless communication. By ensuring that errors are detected and handled promptly, the system reduces the likelihood of faulty operations, thereby enhancing the reliability and security of information exchange between the reader and the RFID card or transponder .

You might also like