Reading RFid Tag Using Mifare RC522 and Raspberry Pi

Plan to do Raspberry Pi project using RFid? You can get start here.


RC522 RFID modules are a simple add-on you can connect to a Raspberry Pi to read MIFARE tags and cards. This is potentially a great feature to include in a security system or any application where you need to identify an object or person without them pressing buttons, operating switches or other sensors.


This video shows how to read RFid tag using Mifare RC522 RFid Reader with Raspberry Pi


You can refer to the photo and table below for hardware connection. By default, RST pin is defined as pin 22 or GPIO 25 by library provided. However you can connect to any GPIO pins and later edit the pin connection in the library (

Mifare RC522 RFID ReaderRaspberry Pi
RSTPin 22 / GPIO 25 (can use any GPIO pins)
IRQNot connected
MISOPin 21 / GPIO 9 (MISO)
MOSIPin 19 / GPIO 10 (MOSI)
SCKPin 23 / GPIO 11 (SCK)
SDAPin 24 / GPIO 8 (CE0)

Related Products

You can consider to buy the product from the list below.

Thank You


  1. RC522 RFID Tag Reading with the Raspberry Pi

Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.

8 thoughts on “Reading RFid Tag Using Mifare RC522 and Raspberry Pi”

  1. Good evening, if i use RFID USB 125kHz should i need to be install all the SPI, and other as shown in the video same as MFRC522?.Thank you

  2. Right now I have the Mifare RC522 RFID kit and a Raspberry PI 0 w.

    Where can I get the wires to connect the RFID kit to the Raspberry PI and what type of HAT connection is on the Raspberry PI. Please give me the links to buy these 2 items.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

BLTouch Installation for Ender 3 with 32-bit V4.2.2 Board
Pick and Send Random Meal’s Option and Locations through Telegram Bot Using Grove WiFi 8266 on micro:bit
DIY Automated Vacuum Cleaner Using REKA:BIT With Micro:bit
Rainbow Spark in Mini House using Maker Uno.
TinyML on Arduino using Edge Impulse
Tutorials of Cytron Technologies Scroll to Top