Bukit Mertajam, Penang

Reading RFid Tag Using Mifare RC522 and Raspberry Pi

Introduction

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.

Video

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

Hardware Connection

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 (MFRC552.py).

Mifare RC522 RFID Reader Raspberry Pi
3.3V 3.3V
RST Pin 22 / GPIO 25 (can use any GPIO pins)
GND GND
IRQ Not connected
MISO Pin 21 / GPIO 9 (MISO)
MOSI Pin 19 / GPIO 10 (MOSI)
SCK Pin 23 / GPIO 11 (SCK)
SDA Pin 24 / GPIO 8 (CE0)

Related Products

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

Thank You

References:

  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.

Related Posts

Comments (8)

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.

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

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

can work on raspberry pi Zero WH? i follow the step twice but still fail, any advice?

Hi Azlan, yes, it should work. You can share your problem detail at our technical forum. Thanks.

Hi, you can use 40 Ways Female to Female Jumper for hardware connection. If you would like to use HAT, you can buy Maker pHAT.

Hi, we’re not sure on RFid USB 125kHz. For further technical questions, you can post at our technical forum. Thanks.

Hi, we’re not sure on RFid USB 125kHz. For further technical questions, you can post at our technical forum. Thanks.

Leave a comment