You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few years ago I wrote some tried and tested instructions for wiring up the RFID-RC522 module, installing the SPI-Py library, and the MFRC-522 python library and test application. The thread where it appeared (#1547) is now so long that the relevant comment is hidden by default, and the whole thread takes ages to load.
This issue is a repost of that comment.
========
Starting from a clean current Raspbian install:
Use the following wiring:
RFID-RC522 Pin
Raspberry Pi Pin
Raspberry Pi Pin name
SPI1 Pin
SPI1 Pin name
SDA/NSS
24
GPIO8
12
GPIO18
SCK
23
GPIO11
40
GPIO21
MOSI
19
GPIO10
38
GPIO20
MISO
21
GPIO9
35
GPIO19
IRQ
None
None
None
None
GND
20
GND
34
GND
RST
22
GPIO25
22
GPIO25
3.3V/VCC
17
3V3
17
3V3
Note that there are multiple versions of the module with different pin-outs - I've shown the pin names from two that I know.
Run sudo raspi-config, choose Advanced Options -> SPI -> Yes . You can reboot, but it isn't necessary (dtoverlay -l will show that there is a run-time overlay that enables the SPI interface).
Is there any equivalent, application-specific documentation? It does seem like more of a project to me, but just having this short (but growing...) thread with the important information at the top should be sufficient.
Activity
pelwell commentedon Jul 10, 2018
Closing to escape the attentions of the @JamesH65 bot.
JamesH65 commentedon Jul 10, 2018
Too late...
Is this something that out to be in docs somewhere, or perhaps the projects section (not my domain)?
pelwell commentedon Jul 11, 2018
Is there any equivalent, application-specific documentation? It does seem like more of a project to me, but just having this short (but growing...) thread with the important information at the top should be sufficient.
pelwell commentedon Nov 26, 2018
There's also a simple Python app that uses the SPI-Py library to read registers here.
When you run it you should see output like this: