Read and Write RFid Data Using RC522 on Raspberry Pi

Read and Write RFid Data Using RC522 on Raspberry Pi

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

Related Products