RFID RC522 (Raspberry Pi)

About: the Raspberry Pi is Awesome!

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Parts

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

2 People Made This Project!

Recommendations

  • Indoor Lighting Contest

    Indoor Lighting Contest
  • Make It Fly Challenge

    Make It Fly Challenge
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest

5 Discussions

0
None
Osquar

Question 13 hours ago on Step 3

Sorry, but I feel stupid here.

Step 3 - where do I change/add the code?

And where do I clone the github for reading and writing? Apart from that, everything above works dandy :)

0
None
KschitaXino

5 months ago

After writing the command: cd MFRC522-python
I'm getting an error as:" bash: cd: MFRC522-python: No such file or directory "
why is this comming and how can i rectify this?

temp.JPG
2 replies
0
None
ChadR1KschitaXino

Reply 5 months ago

You are in the SPI-Py directory. Type 'cd ..' to return to the next higher directory, which should be the root directory. Next, type 'ls' to see if the MFRC522-python directory is listed. If so, you can then type 'cd MFRC522-python' to get into that directory. Don't type the ' marks in your command line.

0
None
bhakti_dhongadeChadR1

Reply 5 months ago

after commanding 'ls' its showing 'pi', then how to check if MFRC522-python directory is there or not?

0
None
kaltax

Question 8 months ago on Introduction

Will this unit program and read RFID Pills