Introduction: RFID RC522 (Raspberry Pi)

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

Step 1: 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

Step 2: Setup

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

Step 3: Code

Step 4: Additional Info

Comments

About This Instructable

412views

17favorites

License:

Bio: the Raspberry Pi is Awesome!
More by piddlerintheroot:USB Barcode Scanner (Raspberry Pi)Thermal Camera AMG8833 (Raspberry Pi)Sound Sensor (Raspberry Pi)
Add instructable to: