Skip to main content

A library to integrate the MFRC522 RFID readers with the Raspberry Pi

Project description


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:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mfrc522-0.0.5.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distributions

mfrc522-0.0.5-py3-none-any.whl (18.6 kB view hashes)

Uploaded Python 3

mfrc522-0.0.5-py2-none-any.whl (18.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page