We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

branqueira
Posts: 3
Joined: Wed Oct 22, 2025 5:05 pm

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

Wed Oct 22, 2025 5:09 pm

Hello, I tried Miguel Balboa's C code, including the example on pimylifeup mentioned earlier in this post. All these examples work very well, however, there is one is not good: I'm using a Raspberry Pi 5, and when executing read.py while waiting for an RFID card to be read, the Raspberry Pi 5's cpu 1 core is literally at 100%. I find this extremely slow for reading an RFID card.

danjperron
Posts: 4880
Joined: Thu Dec 27, 2012 4:05 am

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

Wed Oct 22, 2025 10:29 pm

Hi branqueira,

Please post the link about the library for the PI5.

The only one I found about Miguel Blaboa is for arduino.

Good chance that the cpu usage is about a loop without delay.

Daniel

branqueira
Posts: 3
Joined: Wed Oct 22, 2025 5:05 pm

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

Fri Oct 24, 2025 9:06 pm

I tried this example too GitHub https://github.com/paulvha/rfid-rc522 but there are others on the net. I have the impression that the rc522 receiver that we currently find on the market no longer manages the irq

I tried other examples on the net in python in c and each time the cpu is at 100%. Can someone confirm that there is a code where the htop is not at 100%?

danjperron
Posts: 4880
Joined: Thu Dec 27, 2012 4:05 am

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

Wed Oct 29, 2025 7:16 pm

I tried this example GitHub https://github.com/paulvha/rfid-rc522 but there are others on the net. I have the impression that the rc522 receiver that we currently find on the market no longer manages the irq
That version is old and won't work very well for the PI5 because of the new method to access the GPIO on the Pi5.

Even my old version from google archive needs to be modify. I can't play with it before a week or two. Too buzy!!
https://github.com/danjperron/rc522_reader

branqueira
Posts: 3
Joined: Wed Oct 22, 2025 5:05 pm

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

Sat Nov 01, 2025 9:31 pm

No worries, the code I'm using works perfectly except that the CPU is at 100%, but that's a minor issue. I have the impression that all the RFID receivers I've bought are clones and don't have the IRQ. Where do you buy yours?

Return to "Python"

AltStyle によって変換されたページ (->オリジナル) /