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.5.tar.gz
(5.6 kB
view details)
Built Distributions
mfrc522-0.0.5-py3-none-any.whl
(18.6 kB
view details)
mfrc522-0.0.5-py2-none-any.whl
(18.6 kB
view details)
File details
Details for the file mfrc522-0.0.5.tar.gz
.
File metadata
- Download URL: mfrc522-0.0.5.tar.gz
- Upload date:
- Size: 5.6 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 |
434215ecb8261a6a50455c7c1177a8c1caa6721c60bb33279ca58f31fb046070
|
|
MD5 |
060baebcc6340f55cc2b75546e5de734
|
|
BLAKE2b-256 |
020a92d0b8a734e7b741b57bbe5e5c8b9dea330a8985ef17b19117763d28ec5c
|
File details
Details for the file mfrc522-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: mfrc522-0.0.5-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 |
7552e8079d45cc0a06f5558c12dbed9419dd3c733cad43facc5e89394caeb230
|
|
MD5 |
ffe19ac80561cfe3add228b19a9b0bce
|
|
BLAKE2b-256 |
dd666262285cdcc48859cb28a8185f2f94f1ece10ac8ce56be59c6d977ed3555
|
File details
Details for the file mfrc522-0.0.5-py2-none-any.whl
.
File metadata
- Download URL: mfrc522-0.0.5-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 |
f637e7182f39c7d0e35bf33635dcae80307263640fff60a0a6085d22e7eca017
|
|
MD5 |
c71052736550ef7e19e947ab623a360e
|
|
BLAKE2b-256 |
a45a05c7a33f31388e53c2dff5dd275ed1c599e0833890c3766068d446634ae5
|