pimylifeup / MFRC522-python

Library utilized for Pi My Life Up's guide on setting up an RFID RC522 reader.
https://pimylifeup.com/raspberry-pi-rfid-rc522/
GNU Lesser General Public License v3.0
193 stars 172 forks source link

Reader not reading #44

Closed alexanderkoller closed 2 years ago

alexanderkoller commented 2 years ago

Hi all,

this is probably a really basic question -- my apologies --, but I'm really frustrated and have no idea how to continue.

I'm trying to connect an AZ-Delivery RC522 reader to a Raspberry Pi (have tried both 3A+ and Zero 2 W), but the reader just won't read the RFID chip and card that came in the package.

I am using the wiring with IRQ to GPIO24, and have double-checked that all wires are connected correctly.

I am using the current version of Raspberry Pi OS, and have enabled SPI in raspi-config. The kernel modules are loading:

$ uname -a
Linux raspberrypi 5.10.17-v7+ #1414 SMP Fri Apr 30 13:18:35 BST 2021 armv7l GNU/Linux

$ lsmod|grep spi
spidev                 20480  0
spi_bcm2835            20480  0

However, when I run the test program from the README, it hangs at the reader.read statement, no matter how long I hold the chip or card to the reader.

Any idea what I could try to make this work? Or how I would even debug this?

alexanderkoller commented 2 years ago

Oops, this may be a duplicate of #32, but that issue was not resolved either.

I should say that I use Python 3.7.