Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›IoT & Wireless
  4. ›RC522 RFID Reader
Step 12 of 14 in Smart home buildsPart of a learning path.
Next

How-to · Beginner · 3 min read

RC522 RFID Reader

Wiring, Reading Tags and Access Control

By Geekobot Learning Team · Updated 24 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerRC522 SPI wiringRead a tag's UIDTurning it into a door lock or attendance loggerWhich tags work?RC522 vs PN532 vs EM4100 (125 kHz)Common mistakesFAQsParts and next steps
Short answer

The RC522 is a 13.56 MHz RFID reader that reads MIFARE cards and key fobs from a few centimetres away over SPI. It runs on 3.3 V, never 5 V, and uses the MFRC522 Arduino library: a few lines of code print each tag's unique ID, which you compare against a list to open a lock or log attendance. For 125 kHz tags you need an EM4100 reader instead.

Key specs at a glance

Frequency
13.56 MHz (ISO 14443A: MIFARE Classic, Ultralight, NTAG)
Supply
3.3 V, about 25 mA active
Interface
SPI (also I2C and UART on the chip, rarely broken out)
Range
1 to 3 cm with the PCB antenna
Logic
3.3 V; SPI inputs tolerate 5 V on most boards but 3.3 V is safer
Library
MFRC522 (by GithubCommunity) for Arduino, ESP32, Pico
01

RC522 SPI wiring

RC522 pinArduino Uno / NanoESP32Raspberry Pi Pico
3.3V3.3V3V33V3
GNDGNDGNDGND
RSTD9GPIO 22GP20
SDA (SS)D10GPIO 5GP17
SCKD13GPIO 18GP18
MOSID11GPIO 23GP19
MISOD12GPIO 19GP16
IRQNot connectedNot connectedNot connected
3.3V
Arduino Uno / Nano:
3.3V
ESP32:
3V3
Raspberry Pi Pico:
3V3
GND
Arduino Uno / Nano:
GND
ESP32:
GND
Raspberry Pi Pico:
GND
RST
Arduino Uno / Nano:
D9
ESP32:
GPIO 22
Raspberry Pi Pico:
GP20
SDA (SS)
Arduino Uno / Nano:
D10
ESP32:
GPIO 5
Raspberry Pi Pico:
GP17
SCK
Arduino Uno / Nano:
D13
ESP32:
GPIO 18
Raspberry Pi Pico:
GP18
MOSI
Arduino Uno / Nano:
D11
ESP32:
GPIO 23
Raspberry Pi Pico:
GP19
MISO
Arduino Uno / Nano:
D12
ESP32:
GPIO 19
Raspberry Pi Pico:
GP16
IRQ
Arduino Uno / Nano:
Not connected
ESP32:
Not connected
Raspberry Pi Pico:
Not connected
02

Read a tag's UID

Install MFRC522 from the Library Manager. The example below prints each card's UID in hex.

Print RFID tag UID · Arduino C++Verify & upload in Electrolark
#include <SPI.h>
#include <MFRC522.h>

MFRC522 rfid(10, 9);   // SS, RST

void setup() {
  Serial.begin(9600);
  SPI.begin();
  rfid.PCD_Init();
  Serial.println("Scan a tag");
}

void loop() {
  if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial()) return;
  Serial.print("UID: ");
  for (byte i = 0; i < rfid.uid.size; i++) {
    if (rfid.uid.uidByte[i] < 0x10) Serial.print("0");
    Serial.print(rfid.uid.uidByte[i], HEX);
  }
  Serial.println();
  rfid.PICC_HaltA();
}
03

Turning it into a door lock or attendance logger

Store the UIDs of allowed tags in an array (or EEPROM so you can add tags at runtime). On a match, pulse a relay module or a 12 V solenoid lock through a MOSFET for a second, and beep a buzzer. For attendance, send the UID and a timestamp from an ESP32 to a Google Sheet or MQTT broker. Note that a UID can be cloned onto writable cards, so a UID check is convenience, not security; MIFARE DESFire or NTAG with authentication is needed for real access control.

04

Which tags work?

The RC522 reads 13.56 MHz ISO 14443A tags: MIFARE Classic 1K (the usual white cards and blue fobs), MIFARE Ultralight, NTAG213/215/216 stickers, and the chips in many phone-compatible NFC tags. It does not read 125 kHz EM4100 tags, which are also common in India for office doors, or ISO 15693 tags. Check the tag type before buying a reader.

05

RC522 vs PN532 vs EM4100 (125 kHz)

ReaderFrequencyInterfaceChoose it for
RC522 (MFRC522)13.56 MHzSPICheapest MIFARE reader for Arduino projects
PN53213.56 MHzI2C, SPI, UARTNFC with phones, card emulation, longer range
EM4100 / RDM6300125 kHzUART (serial)Reading older 125 kHz fobs and cards
USB RFID reader125 kHz or 13.56 MHzUSB keyboardLogging to a PC or Raspberry Pi without coding
RC522 (MFRC522)
Frequency:
13.56 MHz
Interface:
SPI
Choose it for:
Cheapest MIFARE reader for Arduino projects
PN532
Frequency:
13.56 MHz
Interface:
I2C, SPI, UART
Choose it for:
NFC with phones, card emulation, longer range
EM4100 / RDM6300
Frequency:
125 kHz
Interface:
UART (serial)
Choose it for:
Reading older 125 kHz fobs and cards
USB RFID reader
Frequency:
125 kHz or 13.56 MHz
Interface:
USB keyboard
Choose it for:
Logging to a PC or Raspberry Pi without coding
06

Common mistakes to avoid

  • !Powering the RC522 from 5 V, which damages it.
  • !Buying 125 kHz tags for a 13.56 MHz reader, or the reverse.
  • !Placing the antenna on or near metal, which kills the range.
  • !Using long jumper wires for SPI; keep them short.
  • !Treating a UID match as secure access control.
07

Frequently asked questions

What voltage does the RC522 use?

3.3 V on the VCC pin. The logic pins are 3.3 V, and the module has no 5 V regulator.

What is the range of the RC522?

About 1 to 3 cm with the module's PCB antenna. Larger antennas and the PN532 reach a little further.

Can the RC522 read 125 kHz cards?

No. It reads 13.56 MHz MIFARE and NTAG tags only. For 125 kHz EM4100 fobs use an EM4100 or RDM6300 reader.

Can I use the RC522 with an ESP32 or Raspberry Pi?

Yes. On ESP32 use the VSPI pins (18, 19, 23, SS 5). On a Raspberry Pi use SPI0 and the Python mfrc522 library.

Can I write data to the cards?

Yes. MIFARE Classic cards have 1 KB of memory in sectors you can read and write with the library after authenticating with the default key FFFFFFFFFFFF.

Parts for this guide

  • EM4100 125kHz RFID Reader Module
    ₹223View
  • RFID / NFC Cards and Tags
    ₹14View
  • 5V Relay Module with Optocoupler
    ₹74View
  • 12V Electric Solenoid Door / Cabinet Lock
    ₹367View
Shop RFID & NFCShop Linear Actuators & Solenoids

Terms in this guide

RFIDRadio-frequency identification: reading a small tag's ID wirelessly. Hobby readers use 125 kHz (EM4100) or 13.56 MHz (RC522, PN532).NFCNear-field communication: the 13.56 MHz standard used by phones and contactless cards. The RC522 reads MIFARE cards but not every NFC tag type.SPISerial Peripheral Interface: a fast bus with clock, data in, data out and a chip-select line per device.UIDThe unique ID burned into an RFID tag, usually 4 or 7 bytes, that a reader uses to tell tags apart.MIFARENXP's family of 13.56 MHz contactless cards and fobs (MIFARE Classic 1K is the usual one) read by the RC522.

Projects that use it

Put this into practice: 7 step-by-step builds in our project library use parts from this guide.

Intermediate · 2–3 hoursRFID card door lockView projectIntermediate · 2 hoursRFID talking flashcards for childrenView projectIntermediate · 2–3 hoursRFID card attendance loggerView project
Browse all 7 projects

Keep learning

Component guideBeginnerRelay ModulesA relay module is an electrically controlled switch that lets a microcontroller turn a separate circuit on or off, such as a 12 V pump or a mains lamp.4 min read · Switches, Relays & InputComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersComponent guideBeginnerArduino UnoThe Arduino Uno is a beginner-friendly microcontroller board that reads sensors and controls LEDs, motors and relays using simple C++ programs called sketches.5 min read · Boards & MicrocontrollersHow-toIntermediateTransistors and MOSFETs as SwitchesA transistor lets a small microcontroller signal switch a much larger current.4 min read · Semiconductors & ICs

Sources

  • MFRC522 datasheet (NXP Semiconductors)
  • MIFARE Classic 1K datasheet (NXP Semiconductors)
  • MFRC522 Arduino library documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerRC522 SPI wiringRead a tag's UIDTurning it into a door lock or attendance loggerWhich tags work?RC522 vs PN532 vs EM4100 (125 kHz)Common mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹678

EM4100 125kHz RFID Reader Module · RFID / NFC Cards and Tags · 5V Relay Module with Optocoupler · 12V Electric Solenoid Door / Cabinet Lock

Run itChange the inputs and watch the output
Serial monitor9600 baud
Scan a tag

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question