I followed this https://raspberrypi.stackexchange.com/a/56513/57412 trying to use my RC522 on spi 1.0 but I'm stuck.
Could someone give me a hand wiring correctly (I hope it is) and how to use the right Python library and codes in order to get it working.
I use RPi3.
I added this to /boot/config.txt
:
dtoverlay=spi1-3cs
dtoverlay=pi3-disable-bt
and if I search, I can see this:
ls /dev/spi*
/dev/spidev0.0 /dev/spidev0.1 /dev/spidev1.0 /dev/spidev1.1 /dev/spidev1.2
I used these repos:
https://github.com/mxgxw/MFRC522-python
https://github.com/lthiery/SPI-Py
and here is the wiring list:
Name Pin # Pin name
SDA 36 BCM16
SCK 40 BCM21
MOSI 38 BCM20
MISO 35 BCM19
IRQ None None
GND Any Any Ground
RST None None
3.3V 1 3V3
How can I find where the RC522 is actually connected? On which spidev?