RFID IC - Wireless RC522 Proximity Module

SKU: HA3003
RC522 RFID reader module with white S50 card, blue key fob and two pin header strips

RFID IC - Wireless RC522 Proximity Module

SKU: HA3003
Default
Regular price $6.99
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $100.00 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

Choose a quantity and add it to your cart.

USB Cable - Type C
$2.9910+ in stock
Breadboard 400 holes
$4.4910+ in stock
Breadboard Jumper Wire - 140pcs
$11.9910+ in stock

The RC522 is a 13.56 MHz RFID reader module built around the NXP MFRC522 chip, with an SPI interface and a blank card and key fob included.

Use it to read the type and unique ID of MIFARE-style cards and tags from an Arduino or ESP32. It runs from 3.3 V.

Chip
MFRC522
Frequency
13.56 MHz
Interface
SPI
Supply
3.3 V

Why choose it

  • Ready to test — a blank S50 card and a key fob are in the box, so you can scan straight away.
  • Well-supported chip — the MFRC522 datasheet is public, and the MFRC522 Arduino library covers the common read functions.
  • Simple wiring — seven wires on SPI; both a straight and a right-angle header strip are supplied.

Specifications

Core
Reader chip MFRC522 (NXP)
Operating frequency 13.56 MHz
Standard ISO/IEC 14443 A / MIFARE and NTAG
Cards supported by the chip MIFARE Mini, 1K, 4K, Ultralight, DESFire EV1, Plus RF
Data rate (chip) 106 to 848 kBd
Typical read/write distance (chip datasheet) Up to 50 mm, depending on antenna size and tuning
Interface and power
Module interface SPI
SPI speed (chip) Up to 10 Mbit/s
Supply voltage 3.3 V
Chip supply range 2.5 V to 3.6 V (below 3 V reduces performance)
Included cards
White card S50 blank card
Key fob S50 key-ring tag

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ◐ With adapter Module is 3.3 V; use a level shifter on the signal lines
ESP32 (3.3 V) ✓ Yes Direct connection; no level shifter needed
Software ✓ Yes Arduino IDE with the MFRC522 library by GithubCommunity

In the box

Included
  • 1 × RFID-RC522 module
  • 1 × white S50 blank card
  • 1 × blue S50 key fob
  • 2 × pin header strips (one straight, one right-angle)

Applications

  • Reading card UIDs to learn how RFID works
  • Prototype door-lock or access-control projects
  • Attendance or tag-based check-in prototypes

Tutorial

What you'll build: read the type and unique ID (UID) of an RFID card or key fob and print it on your computer. About 30 minutes.

How it works

The module has a printed coil (the antenna) and an MFRC522 chip. The chip sends out a 13.56 MHz field. A card or tag near the coil is powered by that field and answers with its ID. The module talks to your board over SPI.

  • SPI — four signal wires: SCK is the clock, MOSI carries data to the module, MISO carries data back, and SDA (also called SS) selects the module.
  • UID — the unique number stored in a card. It is read-only and not secret.
  • GND — the return path; every GND must be joined.
ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), USB data cable, 7 jumper wires

ESP32 DevKitCRC522 moduleGPIO5SDAGPIO18SCKGPIO23MOSIGPIO19MISOGNDGNDGPIO22RST3V33.3V

■ Power ■ GND ■ Signal ■ I2C / SPI / UART ■ Other

# ESP32 pin Module pin Wire Notes
1 3V3 3.3V Red The ESP32 and the module are both 3.3 V, so no level shifter is needed
2 GND GND Black Common ground
3 GPIO22 RST Green Reset
4 GPIO5 SDA Blue SPI chip select (SS)
5 GPIO23 MOSI Blue Default SPI data out
6 GPIO19 MISO Blue Default SPI data in
7 GPIO18 SCK Blue Default SPI clock
– – IRQ – Not connected

Watch out: Keep the module on 3V3, never on 5V. The sketch calls SPI.begin() with no arguments, which uses the Arduino-ESP32 default SPI pins (GPIO18, GPIO19, GPIO23). If you move the wires, change the sketch to match.

1
Install the Arduino IDE
Install the Arduino IDE.
2
Add the ESP32 board package
Go to File → Preferences, paste https://espressif.github.io/arduino-esp32/package_esp32_index.json into "Additional boards manager URLs", then Tools → Board → Boards Manager, search "esp32" and install esp32 by Espressif Systems (see the official install guide).
3
Install the library
Sketch → Include Library → Manage Libraries, search for MFRC522 by GithubCommunity (MFRC522 library page) and click Install. Its listing includes the esp32 architecture.
4
Wire the module
Power off. Solder the header and connect the wires as in the table. Solder the pin header strip to the module first (use the straight strip for a breadboard, or the right-angle strip if you want the board to stand off the side). Check the pin labels printed on your board.
5
Upload the example
Connect the ESP32 by USB data cable. Choose Tools → Board → ESP32 Dev Module and your port under Tools → Port. Paste the sketch below and click Upload. If the upload fails, set Tools → Upload Speed → 115200 and upload again. Then open the Serial Monitor at 115200 baud.
▸ Example 1 — Read a card UID (ESP32)
// RC522 -> ESP32 DevKitC (SPI). Prints the card type and UID.
// Wiring: SDA=GPIO5, SCK=GPIO18, MOSI=GPIO23, MISO=GPIO19, RST=GPIO22, 3V3, GND
#include <SPI.h>
#include <MFRC522.h>

#define SS_PIN 5   // SDA(SS) pin - you can change this
#define RST_PIN 22  // RST pin - you can change this

MFRC522 rfid(SS_PIN, RST_PIN);  // create the reader object

void setup() {
  Serial.begin(115200);
  SPI.begin();          // start the SPI bus on the default pins
  rfid.PCD_Init();      // start the RC522
  delay(4);

  // Version register reads 0x00 or 0xFF when nothing answers
  byte v = rfid.PCD_ReadRegister(MFRC522::VersionReg);
  if (v == 0x00 || v == 0xFF) {
    Serial.println("RC522 not found - check wiring");
    while (true) {}   // stop here
  }
  Serial.println("OK - epartners.co.nz test");
  Serial.println("Hold a card or tag near the antenna...");
}

void loop() {
  // Do nothing until a new card is near the reader
  if (!rfid.PICC_IsNewCardPresent()) return;
  if (!rfid.PICC_ReadCardSerial()) return;

  MFRC522::PICC_Type type = rfid.PICC_GetType(rfid.uid.sak);
  Serial.print("Card type: ");
  Serial.println(rfid.PICC_GetTypeName(type));

  Serial.print("UID (hex):");
  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();

  rfid.PICC_HaltA();       // stop talking to this card
  rfid.PCD_StopCrypto1();  // stop encryption
}

✓ Check: Serial Monitor (115200 baud) prints OK - epartners.co.nz test once. Hold the white card or blue key fob over the printed antenna and a line like Card type: MIFARE 1KB followed by UID (hex): xx xx xx xx appears. If you see RC522 not found - check wiring, power off and recheck the pin table.

Troubleshooting

Board Problem Likely cause Fix
All RC522 not found - check wiring Wrong or loose SPI wire, or no 3.3 V Recheck SDA, SCK, MOSI, MISO and 3.3V against the pin table
All Module found but no card is read Card too far, or the card is not a type the example handles Hold the card flat over the printed coil; try the white card or the blue key fob from the box
ESP32 Stuck on "Connecting…" when uploading Board not in upload mode Hold BOOT until uploading starts
ESP32 Upload fails or stops part-way Upload speed too high for the USB cable Tools → Upload Speed → 115200, then upload again
ESP32 No port appears Charge-only cable or missing USB driver Use a data USB cable and install the USB driver for your board

Try next: compare a scanned UID with a stored one and switch an LED on for a match.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • The module runs from 3.3 V. Do not connect it to 5 V.
  • The MFRC522 library notes that a card UID must not be used for security.
  • The library examples read MIFARE Classic cards and tags. The chip itself also lists DESFire EV1 and Plus, but the library does not support DESFire.

Datasheet

Key figures from the manufacturer's datasheet for the MFRC522, the reader chip on this module.

MFRC522 contactless reader IC
Document MFRC522 Standard performance MIFARE and NTAG frontend, Rev. 3.9, 27 April 2016
Carrier frequency 13.56 MHz
Standard ISO/IEC 14443 A / MIFARE and NTAG
Cards listed MIFARE Mini, 1K, 4K, Ultralight, DESFire EV1, Plus RF
Data rate 106 kBd to 848 kBd
Host interfaces SPI, I2C and UART
SPI speed Up to 10 Mbit/s
I2C speed Fast mode 400 kBd; high-speed 3.4 Mbit/s
UART speed Up to 1228.8 kBd
Supply voltage (analog, digital, transmitter) 2.5 V min, 3.3 V typ, 3.6 V max; below 3 V reduces performance
FIFO buffer 64 bytes
Typical read/write distance Up to 50 mm, depending on antenna size and tuning
Package HVQFN32, 5 × 5 × 0.85 mm

Download the MFRC522 datasheet (PDF)

▸ Preview the datasheet

If the preview does not load on your device, use the download link above.

Source: NXP Semiconductors, MFRC522 Standard performance MIFARE and NTAG frontend, document 112139, Rev. 3.9.

Resources

FAQ

▸ Can I power the RC522 from 5 V?

No. The module is a 3.3 V part, so power it from a 3.3 V pin. The MFRC522 chip supply range in the datasheet is 2.5 V to 3.6 V.

▸ Does it work with an Arduino UNO?

Yes, with care. The UNO outputs 5 V signals, so use a level shifter on SDA, SCK, MOSI and RST, and power the module from the 3.3V pin.

▸ Does it work with an ESP32?

Yes. The ESP32 is 3.3 V, so the module connects directly over SPI.

▸ Which cards can it read?

The MFRC522 chip lists MIFARE Mini, 1K, 4K, Ultralight, DESFire EV1 and Plus RF. The Arduino library examples read MIFARE Classic cards and tags such as the two included.

▸ How far away can it read a card?

The chip datasheet gives a typical read/write distance of up to 50 mm, depending on antenna size and tuning. Hold the card flat over the printed coil.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed