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 170 forks source link

Reader not detecting tag #64

Open ncls-alien opened 1 month ago

ncls-alien commented 1 month ago

I already saw this issue on here but nothing came around so I figured I'd bump it again.

So basically I'm using the following code:

from RPi import GPIO
from mfrc522 import SimpleMFRC522

GPIO.setmode(GPIO.BOARD)
reader = SimpleMFRC522()

try:
    print('Hold your tag near the reader')
    id, text = reader.read()
    print('ID:', id)
    print('Value:', text)
except KeyboardInterrupt:
    GPIO.cleanup()
    raise
finally:
    GPIO.cleanup()

This gets to the reader.read() call but then just never continues, even though I hold my tag near the reader. The reader's LED is also blinking so it is doing something (hopefully reading) but I never get to the print statement.

Using: