Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use RFID-RC522: Examples, Pinouts, and Specs

Image of RFID-RC522
Cirkit Designer LogoDesign with RFID-RC522 in Cirkit Designer

Introduction

The RFID-RC522 is a popular RFID (Radio Frequency Identification) module that operates at 13.56 MHz. It is widely used for contactless communication and is capable of reading and writing to various RFID tags and cards. This module is commonly utilized in applications such as access control systems, attendance systems, and identification tasks where a secure and quick method of data exchange is required.

Explore Projects Built with RFID-RC522

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO and RFID-RC522 Based RFID Reader System
Image of compartment: A project utilizing RFID-RC522 in a practical application
This circuit consists of an Arduino UNO microcontroller connected to an RFID-RC522 module. The Arduino provides power and handles communication with the RFID module, enabling it to read RFID tags for identification or access control purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO RFID Reader with MFRC522 Module
Image of ARSITEKTUR SISTEM : A project utilizing RFID-RC522 in a practical application
This circuit consists of an Arduino UNO microcontroller connected to an RFID-RC522 module. The Arduino UNO reads RFID tags using the RFID-RC522 and outputs the tag information via the serial monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and RFID-RC522 Based RFID Reader System
Image of attendance: A project utilizing RFID-RC522 in a practical application
This circuit integrates an Arduino UNO with an RFID-RC522 module to enable RFID-based identification. The Arduino provides power and SPI communication to the RFID module, allowing it to read RFID tags and potentially perform actions based on the tag data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO RFID Access Control System with I2C LCD Feedback and Keypad Input
Image of eduVents_NFC: A project utilizing RFID-RC522 in a practical application
This circuit is designed to read RFID tags using the RFID-RC522 module, display information on an I2C LCD screen, and accept user input via a 4x4 membrane matrix keypad. It is controlled by an Arduino UNO, which is powered by a 3xAA battery pack, and communicates with the RFID module and LCD screen using SPI and I2C protocols, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with RFID-RC522

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of compartment: A project utilizing RFID-RC522 in a practical application
Arduino UNO and RFID-RC522 Based RFID Reader System
This circuit consists of an Arduino UNO microcontroller connected to an RFID-RC522 module. The Arduino provides power and handles communication with the RFID module, enabling it to read RFID tags for identification or access control purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ARSITEKTUR SISTEM : A project utilizing RFID-RC522 in a practical application
Arduino UNO RFID Reader with MFRC522 Module
This circuit consists of an Arduino UNO microcontroller connected to an RFID-RC522 module. The Arduino UNO reads RFID tags using the RFID-RC522 and outputs the tag information via the serial monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of attendance: A project utilizing RFID-RC522 in a practical application
Arduino UNO and RFID-RC522 Based RFID Reader System
This circuit integrates an Arduino UNO with an RFID-RC522 module to enable RFID-based identification. The Arduino provides power and SPI communication to the RFID module, allowing it to read RFID tags and potentially perform actions based on the tag data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of eduVents_NFC: A project utilizing RFID-RC522 in a practical application
Arduino UNO RFID Access Control System with I2C LCD Feedback and Keypad Input
This circuit is designed to read RFID tags using the RFID-RC522 module, display information on an I2C LCD screen, and accept user input via a 4x4 membrane matrix keypad. It is controlled by an Arduino UNO, which is powered by a 3xAA battery pack, and communicates with the RFID module and LCD screen using SPI and I2C protocols, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Technical Details

  • Frequency: 13.56 MHz
  • Supply Voltage: 2.5V to 3.3V
  • Current Consumption: 13-26mA (operating); 10uA (sleep mode)
  • Supported Card Types: Mifare1 S50, Mifare1 S70, Mifare UltraLight, Mifare Pro, Mifare Desfire
  • Operating Distance: Up to 50mm (depending on antenna geometry)
  • Interface: SPI
  • Data Transfer Rate: Max. 10 Mbit/s

Pin Configuration and Descriptions

Pin Name Description
SDA Serial Data Signal (SPI SS)
SCK Serial Clock Signal (SPI SCK)
MOSI Master Out Slave In (SPI MOSI)
MISO Master In Slave Out (SPI MISO)
IRQ Interrupt Request (active low)
GND Ground
RST Reset Signal
3.3V Supply Voltage (3.3V)

Usage Instructions

Integration with a Circuit

To use the RFID-RC522 module in a circuit, follow these steps:

  1. Connect the module's power pins (3.3V and GND) to the power supply of your microcontroller, ensuring that it is within the specified voltage range.
  2. Interface the SPI pins (SDA, SCK, MOSI, MISO) with the corresponding SPI pins on your microcontroller.
  3. Optionally, connect the RST pin to a digital pin on your microcontroller to control the reset function.
  4. The IRQ pin can be left unconnected if interrupt-driven operation is not required.

Important Considerations and Best Practices

  • Ensure that the power supply is stable and within the specified voltage range to prevent damage to the module.
  • Place the RFID-RC522 module away from metal surfaces as they can interfere with the RF field.
  • For reliable communication, maintain a clear line of sight between the RFID tag/card and the module's antenna.
  • Use proper decoupling capacitors close to the module's power pins to filter out noise and voltage spikes.

Example Code for Arduino UNO

#include <SPI.h>
#include <MFRC522.h>

#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance

void setup() {
  Serial.begin(9600); // Initialize serial communications with the PC
  SPI.begin();        // Init SPI bus
  mfrc522.PCD_Init(); // Init MFRC522 card
  Serial.println("Scan a MIFARE Classic card");
}

void loop() {
  // Look for new cards
  if (!mfrc522.PICC_IsNewCardPresent() || !mfrc522.PICC_ReadCardSerial()) {
    delay(50);
    return;
  }

  // Show UID on serial monitor
  Serial.print("Card UID:");
  for (byte i = 0; i < mfrc522.uid.size; i++) {
    Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
    Serial.print(mfrc522.uid.uidByte[i], HEX);
  }
  Serial.println();
  
  // Halt PICC
  mfrc522.PICC_HaltA();
  // Stop encryption on PCD
  mfrc522.PCD_StopCrypto1();
}

Troubleshooting and FAQs

Common Issues

  • Tag Read Failure: Ensure the tag is within the operational range and the antenna is not obstructed by metal objects.
  • Communication Errors: Check the wiring and connections between the RFID-RC522 module and the microcontroller.
  • Module Not Powering Up: Verify the power supply is within the specified voltage range and properly connected.

Solutions and Tips for Troubleshooting

  • If the module is not responding, try resetting the microcontroller and the RFID-RC522 module.
  • Ensure that the SPI bus is not shared with other devices that might interfere with the communication.
  • Check for soldering issues on the module pins and re-solder if necessary.
  • Use the example code provided to test basic functionality before integrating the module into a larger system.

FAQs

Q: Can the RFID-RC522 module write to RFID tags? A: Yes, the RFID-RC522 can write to compatible RFID tags that support the MIFARE protocol.

Q: What is the maximum range of the RFID-RC522 module? A: The maximum range is approximately 50mm, but this can vary based on the antenna design and environmental conditions.

Q: Is the RFID-RC522 module compatible with all RFID tags? A: No, it is designed to work with tags that operate at 13.56 MHz and support the MIFARE protocol.

Q: Can I use the RFID-RC522 module with a 5V microcontroller? A: While the module itself requires 3.3V, level shifters can be used to interface with 5V logic levels on a microcontroller. However, direct connection without level shifting can damage the module.