Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5220

Python • Re: Pi 5 / RC522 / Python for RFID Reading?

$
0
0
gpiozero

If you are using someone else's code that uses GPIO you may need them to update it to use gpiozero, but since you're a software person, you may be able to either modify it for your own use or write your own version of it.
I had seen gpiozero mentioned in a few other forums, but when I asked ChatGPT (I know, I know) whether or not it could actually read data from a card or chip, it said gpiozero wouldn't support that:
Using gpiozero alone might not be sufficient for reading data from an RFID card using an RC522 reader. gpiozero is designed to simplify interaction with GPIO pins on the Raspberry Pi for tasks like controlling LEDs, motors, and simple sensors. However, reading data from an RFID card involves more complex communication protocols that gpiozero doesn't directly support.
Obviously this may be inaccurate. I haven't had the chance to test it yet as I can't even be sure I have the RC52 wired up properly. I couldn't find any examples on the internet of someone using it to actually read the card data. But I need it to actually read the card. Not just identify when a card has been scanned.

Statistics: Posted by Scoops — Tue Mar 19, 2024 10:36 pm



Viewing all articles
Browse latest Browse all 5220

Trending Articles