- branqueira
- Posts: 3
- Joined: Wed Oct 22, 2025 5:05 pm
Re: Pi 5 / RC522 / Python for RFID Reading?
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?
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
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?
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%?
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?
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.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
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?
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?
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion