Skip to content
Library utilized for Pi My Life Up's guide on setting up an RFID RC522 reader.
Branch: master
Clone or download
Latest commit 970e903 Apr 2, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
mfrc522 Shouldnt rush updates Apr 2, 2019
.gitignore Add the Git Ignore file Mar 19, 2019
LICENSE Add License Jan 25, 2019 Add a README and the RPI.GPIO requirements Mar 19, 2019 Update Apr 2, 2019


A python library to read/write RFID tags via the budget MFRC522 RFID module.

This code was published in relation to a blog post and you can find out more about how to hook up your MFRC reader to a Raspberry Pi there.


Until the package is on PyPi, clone this repository and run python install in the top level directory.

Example Code

The following code will read a tag from the MFRC522

from time import sleep
import sys
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()

    while True:
        print("Hold a tag near the reader")
        id, text =
        print("ID: %s\nText: %s" % (id,text))
except KeyboardInterrupt:
You can’t perform that action at this time.