Introduction: RFID RC522 (Raspberry Pi)

Picture of RFID RC522 (Raspberry Pi)

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

Step 1: Parts

Picture of Parts

RPI 3 –

4 Amp Power Adapter –

16GB Micro SD –

Jumper Cable Assortment –

RFID Sensor –

Step 2: Setup

Picture of Setup

SDA <--> 24

SCK <--> 23

MOSI <--> 19

MISO <--> 21


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

cd SPI-Py

sudo python install

6. Install MFRC522-python

git clone

cd MFRC522-python

7. Run script


Step 3: Code

Picture of Code

Step 4: Additional Info

Picture of Additional Info


About This Instructable




Bio: the Raspberry Pi is Awesome!
More by piddlerintheroot:Accelerometer (Raspberry Pi)Flame Sensor (Raspberry Pi)Soil Moisture Sensor (Raspberry Pi)
Add instructable to: