Skip to main content

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. Therefore the 'RPi.GPIO' library was exchanged with 'gpiozero'.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
pip 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

Metadata

Release files for JoyIT-RC522 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for JoyIT-RC522 1.0.2
File Size Uploaded
joyit_rc522-1.0.2.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for JoyIT-RC522 1.0.2
File Interpreter ABI Platform
joyit_rc522-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / joyit_rc522-1.0.2.tar.gz

Download URL joyit_rc522-1.0.2.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
21904ded7434d435aeacfa7ab0394df1e53cecaddc95bd3904cfe4cf9a3665c7
BLAKE2b-256 checksum
How to use checksums
3e017fb2289ce6219cc9db49ff2364e71d48623c930cde9382e7dab8618bf61f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / joyit_rc522-1.0.2-py3-none-any.whl

Download URL joyit_rc522-1.0.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c94d636305c3117873b17fc92c49b47c5e19be5196579baead2523ebacad5647
BLAKE2b-256 checksum
How to use checksums
7a4005c6e792a2e863e9c120a639531f4ae04e9b1dabe41c510b4ef581e86553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page