Skip to content

Library utilized for Pi My Life Up's guide on setting up an RFID RC522 reader.

License

Notifications You must be signed in to change notification settings

zachary822/MFRC522-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mfrc522

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.

Installation

Clone this repository and run pip 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()

try:
    while True:
        print("Hold a tag near the reader")
        uid, text = reader.read()
        print("UID: {}\nText: {}".format(uid, text))
        sleep(5)
finally:
    GPIO.cleanup()

Additional Resources

MIFARE Classic EV1 1K - Mainstream contactless smart cardIC for fast and easy solution development

https://www.nxp.com/docs/en/data-sheet/MF1S50YYX_V1.pdf

About

Library utilized for Pi My Life Up's guide on setting up an RFID RC522 reader.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%