Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reader not detecting tag #64

Open
ncls-alien opened this issue Jul 21, 2024 · 0 comments
Open

Reader not detecting tag #64

ncls-alien opened this issue Jul 21, 2024 · 0 comments

Comments

@ncls-alien
Copy link

ncls-alien commented Jul 21, 2024

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:

  • Raspberry Pi 5 (RPi.GPIO is from rpi-lgpio for compatibility with Pi 5)
  • Python 3.11.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant