Skip to main content

A library to integrate the MFRC522 RFID readers with the Raspberry Pi

Project description

joyit_mfrc522

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.

Installation

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

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

pip install spidev
git clone https://github.com/joy-it/MFRC522-python
cd MFRC522-python
python3 setup.py install
cd ..

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.

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_mfrc522-0.1.0.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

joyit_mfrc522-0.1.0-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

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