RFID (RC522)

Posted on Jul 20 2017 - 11:19pm by piddler

Basic tutorial of how to setup a RFID reader/writer (RC522) with the Raspberry Pi.

PARTS:
RPI 3 – https://goo.gl/CdVNoH
4 Amp Power Adapter – https://goo.gl/js4Uc7
16GB Micro SD – https://goo.gl/FDqZal
Jumper Cable Assortment – https://goo.gl/7o34sL
RFID Sensor – https://goo.gl/d7Gq5v

SCHEMATIC:


SDA <--> 24

SCK <--> 23

MOSI <--> 19

MISO <--> 21

IRQ <--> UNUSED

GND <--> 6

RST <--> 22

3.3V <--> 1

 
SETUP:
1. Enable SPI Interface

2. Reboot

3. Check if spi_bcm2835 is loaded

4. Install python2.7-dev

5. Download Git Project, change directory, and install

6. Install MFRC522-python

7. Run script

CODE:
https://github.com/mxgxw/MFRC522-python.git

REFERENCE:
https://www.instructables.com/id/Raspberry-Pi-3-Model-B-MIFARE-RC522-RFID-Tag-Readi/