ESP32 RC522 RFID/NFC Module

RC522 RFID/NFC Module image

RC522

Protocol: SPI,I2C,UART

Overview

The RC522 RFID/NFC module offers an affordable and reliable solution for integrating NFC and RFID functionality into your projects. Its compact size, multi-protocol support, and robust performance make it a great choice for a wide range of applications.

About RC522 RFID/NFC Module

The RC522 is a cost-effective and compact RFID/NFC module designed for proximity identification and security applications. It supports multiple communication protocols (SPI, I²C, UART), making it easy to integrate with ESP32, Arduino, and other microcontrollers.

Key Features

  • Multi-Protocol Support – Communicates via SPI, I²C, and UART.
  • ISO/IEC 14443 Type A Compatibility – Works with RFID/NFC cards and tags.
  • Versatile Applications – Ideal for access control, payment systems, and secure authentication.
  • Compact & Low Power – Suitable for embedded security projects.

With its flexibility and affordability, the RC522 is a great choice for NFC-based applications requiring secure and contactless authentication. 🚀

Where to Buy

RC522 RFID/NFC Module

Starting from

3.00$ per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Communication Protocols SPI, I2C, UART
Operating Voltage 3.3V
Supported Standards ISO/IEC 14443 Type A
Operating Temperature -20°C to +80°C
Dimensions 40mm x 60mm x 3mm

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

The RC522 pinout includes:

  • VCC: Power supply input (3.3V).
  • GND: Ground connection.
  • RST: Reset signal input (active low).
  • IRQ: Interrupt signal output.
  • MISO: SPI Master In Slave Out.
  • MOSI: SPI Master Out Slave In.
  • SCK: SPI clock line.
  • SDA: I2C data line or SPI slave select.

Wiring with ESP32

To interface the RC522 with a microcontroller, follow these steps:
  • Connect VCC to a stable 3.3V power supply.
  • Connect GND to the system ground.
  • For SPI: Connect MISO, MOSI, SCK, and SDA to the respective SPI pins on the microcontroller. Use RST for reset control.
  • For I2C: Connect SDA to the microcontroller's SDA pin and SCK to the SCL pin.
  • For UART: Use appropriate UART lines (if available on the module version).

Troubleshooting Guide

Common Issues

❌ Module Fails to Power On

🔌 Communication Interface Not Working

🚫 Unable to Read Tags

⚠️ Inconsistent Tag Detection

💻 Library or Software Issues

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 RC522 RFID/NFC Module is a powerful NFC sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.