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

How to Use MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic: Examples, Pinouts, and Specs

Image of MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic
Cirkit Designer LogoDesign with MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in Cirkit Designer

Introduction

The MFRC RFID522 is a highly integrated reader/writer designed for contactless communication at a frequency of 13.56 MHz. It is widely used in RFID (Radio Frequency Identification) applications for reading and writing data to RFID tags. The module supports multiple protocols, including ISO/IEC 14443 A/MIFARE, and provides a simple SPI interface for communication with microcontrollers.

Explore Projects Built with MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic

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 Mega 2560 RFID and LED Control System
Image of L298 Ebay: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
This circuit features an Arduino Mega 2560 microcontroller interfaced with multiple RFID-RC522 modules for RFID reading and several LEDs of different colors for visual indication. The LEDs are connected through resistors to limit current, and the RFID modules are powered by the Arduino's 3.3V and 5V outputs, with various pins used for communication and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32F103C8T6-Based Access Control System with RFID and Servo Motor Actuation
Image of PARCEL SORTING SEM 5: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
This circuit features an STM32F103C8T6 microcontroller interfaced with an RFID-RC522 module for RFID reading, two servo motors, an IR sensor, and a 2-channel relay module controlling two hobby motors. The microcontroller manages the communication with the RFID module via SPI (MOSI, MISO, SCK, SDA), processes the IR sensor signal, and outputs PWM signals to the servo motors. The relay module is used to switch the hobby motors on and off, with the microcontroller providing control signals and power supplies providing the necessary voltage levels for the different components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Controlled RFID Door Lock with Servo Mechanism
Image of Eco RFID Transportation: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
This circuit consists of an RFID-RC522 module interfaced with an Arduino UNO for RFID reading capabilities. The Arduino is also connected to a servo motor, which can be controlled based on the RFID tags detected by the RC522 module. The common ground and 3.3V power supply from the Arduino suggest that all components operate at the same voltage level for seamless communication and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino 101 Based RFID and GSM Security System with I2C LCD Display and RTC
Image of id scanner with messaging system: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
This circuit features an Arduino 101 microcontroller interfaced with an RFID-RC522 module for RFID reading, a GSM SIM900 module for cellular communication, a DS3231 Real Time Clock for timekeeping, and an I2C LCD screen for display. The Arduino controls a buzzer connected to its D7 pin and communicates with the GSM module via serial connection on pins D0/RX and D1/TX. The RFID, RTC, and LCD modules are powered by the Arduino's 5V and 3.3V outputs, and they use I2C (SCL/SDA) for communication, except for the RFID module which uses SPI (MISO/MOSI/SCK) and a digital pin for reset (D9).
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic

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 L298 Ebay: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
Arduino Mega 2560 RFID and LED Control System
This circuit features an Arduino Mega 2560 microcontroller interfaced with multiple RFID-RC522 modules for RFID reading and several LEDs of different colors for visual indication. The LEDs are connected through resistors to limit current, and the RFID modules are powered by the Arduino's 3.3V and 5V outputs, with various pins used for communication and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of PARCEL SORTING SEM 5: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
STM32F103C8T6-Based Access Control System with RFID and Servo Motor Actuation
This circuit features an STM32F103C8T6 microcontroller interfaced with an RFID-RC522 module for RFID reading, two servo motors, an IR sensor, and a 2-channel relay module controlling two hobby motors. The microcontroller manages the communication with the RFID module via SPI (MOSI, MISO, SCK, SDA), processes the IR sensor signal, and outputs PWM signals to the servo motors. The relay module is used to switch the hobby motors on and off, with the microcontroller providing control signals and power supplies providing the necessary voltage levels for the different components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Eco RFID Transportation: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
Arduino-Controlled RFID Door Lock with Servo Mechanism
This circuit consists of an RFID-RC522 module interfaced with an Arduino UNO for RFID reading capabilities. The Arduino is also connected to a servo motor, which can be controlled based on the RFID tags detected by the RC522 module. The common ground and 3.3V power supply from the Arduino suggest that all components operate at the same voltage level for seamless communication and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of id scanner with messaging system: A project utilizing MFRC RFID522_d5542a2cc23721db3fcbe4ea437685a4_3_schematic in a practical application
Arduino 101 Based RFID and GSM Security System with I2C LCD Display and RTC
This circuit features an Arduino 101 microcontroller interfaced with an RFID-RC522 module for RFID reading, a GSM SIM900 module for cellular communication, a DS3231 Real Time Clock for timekeeping, and an I2C LCD screen for display. The Arduino controls a buzzer connected to its D7 pin and communicates with the GSM module via serial connection on pins D0/RX and D1/TX. The RFID, RTC, and LCD modules are powered by the Arduino's 5V and 3.3V outputs, and they use I2C (SCL/SDA) for communication, except for the RFID module which uses SPI (MISO/MOSI/SCK) and a digital pin for reset (D9).
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Access control systems (e.g., door locks, attendance systems)
  • Contactless payment systems
  • Inventory management and tracking
  • Smart card applications
  • Embedded systems requiring RFID functionality

Technical Specifications

Key Technical Details

  • Operating Voltage: 2.5V to 3.3V (logic level), typically powered via 3.3V
  • Operating Frequency: 13.56 MHz
  • Communication Interface: SPI, I2C, or UART (SPI is most commonly used)
  • Maximum Data Rate: 424 kbit/s
  • Supported Protocols: ISO/IEC 14443 A/MIFARE
  • Current Consumption: ~13-26 mA during operation, ~10 µA in standby mode
  • Operating Temperature: -20°C to +85°C
  • Antenna: Integrated or external antenna support

Pin Configuration and Descriptions

The MFRC522 module typically comes with an 8-pin header for interfacing. Below is the pinout:

Pin Name Description
1 VCC Power supply input (3.3V).
2 RST Reset pin. Active LOW. Used to reset the module.
3 GND Ground connection.
4 IRQ Interrupt pin. Can be used to signal events to the microcontroller.
5 MISO/SCL SPI Master-In-Slave-Out (data output) or I2C clock line (SCL).
6 MOSI/SDA SPI Master-Out-Slave-In (data input) or I2C data line (SDA).
7 SCK SPI clock input.
8 NSS/SDA(SS) SPI chip select (active LOW) or I2C address selection.

Note: The module is typically used in SPI mode, and the I2C/UART modes are less common.

Usage Instructions

How to Use the MFRC522 in a Circuit

  1. Power the Module: Connect the VCC pin to a 3.3V power source and GND to ground.
  2. Connect to a Microcontroller: Use the SPI interface to connect the module to a microcontroller (e.g., Arduino UNO). The typical connections are:
    • VCC → 3.3V
    • GND → GND
    • RST → Any digital pin (e.g., D9 on Arduino UNO)
    • IRQ → Not required for basic operation
    • MISO → Arduino UNO pin 12
    • MOSI → Arduino UNO pin 11
    • SCK → Arduino UNO pin 13
    • NSS → Arduino UNO pin 10
  3. Install Required Libraries: For Arduino, install the "MFRC522" library from the Arduino Library Manager.
  4. Write Code: Use the library functions to initialize the module, read RFID tags, and write data.

Example Arduino Code

Below is an example of how to use the MFRC522 module with an Arduino UNO to read RFID tags:

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

// Define MFRC522 pins
#define RST_PIN 9  // Reset pin connected to Arduino pin 9
#define SS_PIN 10  // Slave Select pin connected to Arduino pin 10

// Create an instance of the MFRC522 class
MFRC522 rfid(SS_PIN, RST_PIN);

void setup() {
  Serial.begin(9600); // Initialize serial communication
  SPI.begin();        // Initialize SPI bus
  rfid.PCD_Init();    // Initialize the MFRC522 module
  Serial.println("Place your RFID card near the reader...");
}

void loop() {
  // Check if an RFID card is present
  if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial()) {
    return; // No card detected, exit the loop
  }

  // Print the UID (Unique Identifier) of the card
  Serial.print("Card UID: ");
  for (byte i = 0; i < rfid.uid.size; i++) {
    Serial.print(rfid.uid.uidByte[i] < 0x10 ? " 0" : " ");
    Serial.print(rfid.uid.uidByte[i], HEX);
  }
  Serial.println();

  // Halt the card to stop communication
  rfid.PICC_HaltA();
}

Important Considerations and Best Practices

  • Voltage Levels: The MFRC522 operates at 3.3V logic levels. If using a 5V microcontroller (e.g., Arduino UNO), use level shifters to avoid damaging the module.
  • Antenna Placement: Ensure the antenna is not obstructed by metal objects, as this can interfere with communication.
  • Tag Compatibility: The module supports ISO/IEC 14443 A/MIFARE tags. Ensure your tags are compatible.
  • Library Updates: Always use the latest version of the MFRC522 library for optimal performance and bug fixes.

Troubleshooting and FAQs

Common Issues and Solutions

  1. The module is not detected by the microcontroller.

    • Check all connections, especially the SPI pins.
    • Ensure the module is powered with 3.3V and not 5V.
    • Verify that the SS_PIN and RST_PIN in the code match your wiring.
  2. The RFID tag is not being read.

    • Ensure the tag is compatible with the MFRC522 (e.g., MIFARE tags).
    • Place the tag closer to the antenna.
    • Check for interference from nearby metal objects or other RFID devices.
  3. The module heats up during operation.

    • Verify that the module is powered with 3.3V and not 5V.
    • Check for short circuits in the wiring.
  4. The UID is not displayed correctly.

    • Ensure the serial monitor baud rate matches the Serial.begin() value in the code.
    • Verify that the RFID tag is functioning properly.

FAQs

Q: Can the MFRC522 write data to RFID tags?
A: Yes, the MFRC522 can write data to compatible RFID tags, such as MIFARE Classic cards. Use the appropriate library functions for writing.

Q: Can I use the MFRC522 with a 5V microcontroller?
A: Yes, but you must use level shifters to convert the 5V logic levels to 3.3V to avoid damaging the module.

Q: What is the maximum range of the MFRC522?
A: The typical range is 2-5 cm, depending on the antenna design and tag type.

Q: Can I connect multiple MFRC522 modules to a single microcontroller?
A: Yes, you can connect multiple modules by using separate SS_PIN values for each module and managing them in your code.

This concludes the documentation for the MFRC RFID522 module.