Read and Write RFid Data Using RC522 on Raspberry Pi

Now you can read and write your own RFid tag/card.

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.

Hardware connection table.

Mifare RC522 RFID ReaderRaspberry Pi (Maker pHAT)
3.3V3.3V
RSTGPIO 25
GNDGND
IRQNot Connected
MISOMISO
MOSIMOSI
SCKSCK
SDACE0

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 better application.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Control LED on EDU:BIT Using IoT Blynk App and Raspberry Pi
EDU:BIT Pedestrian Crossing Traffic Lights
USB Serial Communication Using Raspberry Pi and Microbit
Record QR Data Into CSV Format Using Raspberry Pi
Reading QR Code Using Raspberry Pi Camera
Scroll to Top