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.4.tar.gz
(5.5 kB
view details)
Built Distributions
mfrc522-0.0.4-py3-none-any.whl
(18.5 kB
view details)
mfrc522-0.0.4-py2-none-any.whl
(18.5 kB
view details)
File details
Details for the file mfrc522-0.0.4.tar.gz
.
File metadata
- Download URL: mfrc522-0.0.4.tar.gz
- Upload date:
- Size: 5.5 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 |
7ae3ce29e5bc28683f4503414f858b46de866c92e568f041d39ac93abe29e02f
|
|
MD5 |
3ef821a096a78038e9c826825ae6e93f
|
|
BLAKE2b-256 |
6c6fa366c16268350efd2b83dc289565b08cab725fae5113d2e8b6822aa79486
|
File details
Details for the file mfrc522-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: mfrc522-0.0.4-py3-none-any.whl
- Upload date:
- Size: 18.5 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 |
b1583d2a254599d8dc666d43bc67d7d1d8a50ab8f5004b5b26c119858528ac29
|
|
MD5 |
46fa04f27d33578058b1c9acf868e0b1
|
|
BLAKE2b-256 |
fe0adb2a498521738d2a5333f196c2e041ade1685bbf36328c87ec1401415c21
|
File details
Details for the file mfrc522-0.0.4-py2-none-any.whl
.
File metadata
- Download URL: mfrc522-0.0.4-py2-none-any.whl
- Upload date:
- Size: 18.5 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 |
3dda5e4bece75a6c498d3773dac01a2175d279f52add28494052346edbcacab1
|
|
MD5 |
ab69fa54b033e1c3ad5bd8888e58cdea
|
|
BLAKE2b-256 |
9b1e250f8103c9c2cd9883db3dda27a09c57ccbf58912cfdf123789247b0e1c5
|