Closed jlebunetel closed 6 years ago
Use the chip RS522 (with the Velleman VMA405 module for instance) to read RFID tags directly with the Raspberry Pi without using an Arduino Board.
This chip uses the SPI interface. You need to activate it through the Raspberry Pi configuration interface :
$ sudo raspi-config
This chip can be used with the pi-rc522 library.
Install it with :
$ sudo pip3 install pi-rc522
Then, use it in a Python script :
from pirc522 import RFID import time rc522 = RFID() while True: rc522.wait_for_tag() (error, tag_type) = rc522.request() if not error: (error, uid) = rc522.anticoll() if not error: print("UID: " + str(uid)) time.sleep(1)
Moved to the Wiki: https://github.com/MusicBoxProject/raspberry-service/wiki/How-to-plug-the-RS522-Raspberry-NFC-reader-to-the-Raspberry%3F
Use the chip RS522 (with the Velleman VMA405 module for instance) to read RFID tags directly with the Raspberry Pi without using an Arduino Board.
SPI interface
This chip uses the SPI interface. You need to activate it through the Raspberry Pi configuration interface :
Python script
This chip can be used with the pi-rc522 library.
Install it with :
Then, use it in a Python script :
Hardware connection