Interfacing Raspberry Pi With RFID.: Installation Manual
Interfacing Raspberry Pi With RFID.: Installation Manual
Installation Manual
RFID stands for Radio Frequency Identification uses radio frequency to read information stored
in a RFID card or tag. Each card has a unique ID and this makes it a perfect choice for many
authentication applications. The RFID authentication systems are easy to design and are cheap in
cost. Interfacing RFID Reader with Raspberry Pi can be very useful as you can implement a wide
range of applications like:
Access Control
Authentication
e-Ticket ,e-Payment ,e-Toll
Attendance System
Hardware Requirements
1. Raspberry Pi Model 3 B/B+
2. RFID Reader (RC 522)
3. RFID Tags or Cards
4. Jumper wires (Female to Male)
5. Breadboard
1. Raspbian Stretch OS
2. SPI Supporting Libraries
3. RC522 Python Library
Connect your RFID reader with Raspberry Pi's GPIO Pins.
RFID Reader
RPI Physical Pin Raspberry Function
Board Pin
SDA 24 GPIO8 (SPI_CE0_N)
IRQ UNUSED
GND 6 GND
Step 6: Install spidev to Raspberry Pi using pip. The spidev library helps to handle
interactions with the SPI
Step 7: Install the MFRC522 library using pip that helps talk to the RC522 module over
the SPI interface
When you run script, it asked to write in the new data, in my case I am going to just type in msd
gurukul. Press Enter when you are happy with what you have written.
With that done, simply place your RFID Tag on top of your RFID RC522 circuit. As soon as it
detects it, it will immediately write the new data to the tag. You should see “Data Written
successfully” appear in your command line if it was successful.
Step 8: Write Python script which is used to read this data back off the RFID tag.
With the script now running, all you need to do is place your RFID Tag on top of your RFID
RC522 circuit. As soon as the Python script detects the RFID tag being placed on top, it will
immediately read the data and print it back out to you.
If you successfully receive data back from your read.py script with the text that you pushed to
the card using your write.py script then you have successfully set up your Raspberry Pi to
connect with your RFID RC522 Circuit.