RFID RC522 (Raspberry Pi)

by piddlerintheroot in Circuits > Raspberry Pi

95920 Views, 56 Favorites, 0 Comments

RFID RC522 (Raspberry Pi)

rfid.png

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

Parts

vlcsnap-4499-03-30-06h08m39s254.png

Setup

vlcsnap-4355-07-30-00h49m04s594.png
schem.PNG

SDA <--> 24

SCK <--> 23

MOSI <--> 19

MISO <--> 21

IRQ <--> UNUSED

GND <--> 6

RST <--> 22

3.3V <--> 1

1. Enable SPI Interface

sudo raspi-config

2. Reboot

sudo reboot

3. Check if spi_bcm2835 is loaded

lsmod | grep spi

4. Install python2.7-dev

sudo apt-get install python2.7-dev

5. Download Git Project, change directory, and install

git clone https://github.com/lthiery/SPI-Py.git

cd SPI-Py

sudo python setup.py install

6. Install MFRC522-python

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

cd MFRC522-python

7. Run script

python Read.py

Code

code.PNG

Additional Info

vlcsnap-4240-06-21-08h51m51s648.png
RFID RC522 (Raspberry Pi)