A library to integrate the MFRC522 RFID readers with the Raspberry Pi
Project description
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
Until the package is on PyPi, clone this repository and run python setup.py 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")
id, text = reader.read()
print("ID: %s\nText: %s" % (id,text))
sleep(5)
except KeyboardInterrupt:
GPIO.cleanup()
raise
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.7.tar.gz
(5.7 kB
view details)
Built Distributions
mfrc522-0.0.7-py3-none-any.whl
(18.6 kB
view details)
mfrc522-0.0.7-py2-none-any.whl
(18.6 kB
view details)
File details
Details for the file mfrc522-0.0.7.tar.gz
.
File metadata
- Download URL: mfrc522-0.0.7.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c7020a4fc4870f5d7022542c36143fba771055a2fae2e5929e6a1159d2bf00 |
|
MD5 | 325c57fcb1cb452991d58ac4b88f44d6 |
|
BLAKE2b-256 | 3c34f2e893baa79d82d4faad8abb7c5c0fcd138d367f6f38071f7afe883f65a2 |
File details
Details for the file mfrc522-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: mfrc522-0.0.7-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 874fd0385a7e40190063b60af83d615534b1f764c6b776fed1fcc94551c1e62f |
|
MD5 | 36e8585d310870e6908df455b08b87ec |
|
BLAKE2b-256 | d5b5d33c0634cece0931c3c4e0978b0db58f248045c3b379ccf2d512b76fe044 |
File details
Details for the file mfrc522-0.0.7-py2-none-any.whl
.
File metadata
- Download URL: mfrc522-0.0.7-py2-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f0e06d2ca4550d545478b20edb6661d5da943e75b3d4542ba9eb9eef4e541e7 |
|
MD5 | d1b3f3f5dab572654963a11a8da21a4a |
|
BLAKE2b-256 | fab6824c5782411c4b59eca5599ac3e5662f94c061507743b5da587d1a72f20e |