Skip to main content

A python library to read/write RFID tags via the MFRC522 RFID module.

Project description

JoyIT_RC522

A python library to read/write RFID tags via the MFRC522 RFID module.

This code was edited for the use with Raspberry Pi 5 by Joy-IT. The source 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.

Prerequirements:

SPI has to be enabled, otherwise a error message will be shown ("FileNotFoundError: [Errno 2] No such file or directory").

To enable SPI you can do the following:

1. sudo raspi-config
2. Interface Options -> SPI -> Enable

Installation

This library is for the use with virtual environments for the Raspberry Pi 5 and older models.

mkdir your_project
cd your_project
python -m venv --system-site-packages env
source env/bin/activate

pip3 install spidev
pip3 install JoyIT_RC522

Example

In this library are two example codes. One is for reading from a tag and the other is for writing on a tag. You can execute them like the following.

git clone https://github.com/joy-it/MFRC522-python
python3 MFRC522-python/examples/write.py
python3 MFRC522-python/examples/read.py

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

joyit_rc522-1.0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

joyit_rc522-1.0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file joyit_rc522-1.0.1.tar.gz.

File metadata

  • Download URL: joyit_rc522-1.0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for joyit_rc522-1.0.1.tar.gz
Algorithm Hash digest
SHA256 31dcedcfccbfad3d353188f2eea0d42e9ff031a7a4b8d04b3240fb39fe776e00
MD5 d9b17c8765fd4c5ab153fc1c7069b7da
BLAKE2b-256 f4c97abb8b356a585b565a2811f7381fa685381ad33ec05990b98d646b2b5e79

See more details on using hashes here.

File details

Details for the file joyit_rc522-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: joyit_rc522-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for joyit_rc522-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0214464f739aae9727bf155348a91d2a0158e6a113b3fb2031f4a5aa8556fb7c
MD5 7a46a26be223e4876c74d00fed9159f7
BLAKE2b-256 fc3bbc42711f432651808097e80a7ec458fbcae1a7189ac9c3046f107563c528

See more details on using hashes here.

Supported by

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