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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file joyit_rc522-1.0.0.tar.gz.
File metadata
- Download URL: joyit_rc522-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8a82cc0515001a3da2fe5423e61757e24d20fd18a19de74dde757b4597c2429
|
|
| MD5 |
e9d8917678d6aca4dce1e2e48d3a81a5
|
|
| BLAKE2b-256 |
8baf479a4fc6c3cbcd765f4d58c21d188524364f08fde7a1f6d415283e72c421
|
File details
Details for the file joyit_rc522-1.0.0-py3-none-any.whl.
File metadata
- Download URL: joyit_rc522-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e35a947100e2a6066700d9afdded47ec07d29a6ab6b9eaedbc13433a83fb74ec
|
|
| MD5 |
fb3686b8097dab8821104713bd03662d
|
|
| BLAKE2b-256 |
2cebe8f3305256640aa0aa1e03913904f7ed2f05eb4db4ddbe018ec08c869ade
|