Skip to main content

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.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distributions

mfrc522-0.0.6-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

mfrc522-0.0.6-py2-none-any.whl (18.6 kB view details)

Uploaded Python 2

File details

Details for the file mfrc522-0.0.6.tar.gz.

File metadata

  • Download URL: mfrc522-0.0.6.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

Hashes for mfrc522-0.0.6.tar.gz
Algorithm Hash digest
SHA256 742dc8156fd9ca369b509be052ce50f520e18ed4ccb724bc3c3ac4d7cb11ac4e
MD5 a8f705dbd7be019ca50b4ee40173aeab
BLAKE2b-256 184eea49e1a60003959d146baf0d026888b49bb12ebd9c073cf138817031cf34

See more details on using hashes here.

File details

Details for the file mfrc522-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: mfrc522-0.0.6-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

Hashes for mfrc522-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 86c57d180af96cb430c10f9e55ff9c6424ee82d19e285faadb9efc19427b5eb8
MD5 25a94cf6d89ff2cea7a8eea1e021b0d7
BLAKE2b-256 00e73f3f0a3ca16043d3c353b001acb99a126f999f424dd64353c5777ff424dd

See more details on using hashes here.

File details

Details for the file mfrc522-0.0.6-py2-none-any.whl.

File metadata

  • Download URL: mfrc522-0.0.6-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

Hashes for mfrc522-0.0.6-py2-none-any.whl
Algorithm Hash digest
SHA256 ef198652c51a6e9956eaa658d64b4614f42e27580c1fd95e1ed9450cb5fb53ea
MD5 0b884b6ada5e9d505570de51d5ec6c6e
BLAKE2b-256 9d6e259cde6382d2154396c8e6a7d29a73b271acf496c68620f459cb0828c877

See more details on using hashes here.

Supported by

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