Your shopping cart is empty!
Read and Write RFid Data Using RC522 on Raspberry Pi
- Idris Zainal Abidin
- 26 Feb 2020
- 1802
Introduction
I have publish a tutorial regarding this topic before, around 2018. But now the library seems not compatible. So I decided to create a new tutorial and add a write function. So in this video it will cover on how to read and write RFid data using Mifare RC522 on Raspberry Pi. I'm using the same hardware connection like the previous tutorial. You better check on the link below.
Video
This video shows how to read and write RFid data using RC522 on Raspberry Pi.
Hardware Preparation
This is the list of items used in the video.
- Raspberry Pi 4 Model B (4GB)
- 16GB Micro SD Card
- Maker pHAT
- Mifare RC522 RFID Kit
- 40 Ways Male to Male Jumper Wire
- Official RPi 15W (5V/3A) PSU USB C UK Plug-Black
Hardware connection table.
Mifare RC522 RFID Reader | Raspberry Pi (Maker pHAT) |
3.3V | 3.3V |
RST | GPIO 25 |
GND | GND |
IRQ | Not Connected |
MISO | MISO |
MOSI | MOSI |
SCK | SCK |
SDA | CE0 |
Sample Program
This is the sample program to read and write RFid data using RC522 on Raspberry Pi. Before that, please install RC522 python3 library.
sudo pip3 install mfrc522
Thank You
References:
Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.
"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."