HOME

Fixing an RC522 RFIC reader

RC522 catalog image

Recently I stumbled across one of those ubiquitous RC522 RFID readers while cleaning out one of my parts drawers. I got that reader several years ago, played around with it a little and then abandoned it rather quickly since it was fun to play with but was not usable for anything practical as it would only read the token and card that came with it but would not work with any other RFID devices.

I decided to take another look at it and see if was possible to get it to work properly after all.

According to its datasheet the reader's MFRC522 controller should be able to read a wide variety of common RFID cards. So that gave me some hope.

While searching the internet for more documentation i came across this blog post by Lucas of Makerspace Leiden

It turns out they had the same idea that I had.
In contrast to me though, they had the proper equipment and knowledge to investigate the issue and a couple of similar readers for comparison.

What they found out is basically this:
There are several versions of this particular reader that differ only marginally. Mostly in the silkscreen and, what seems to be the cause of the problem, the width of the traces of the antennas. Those narrower traces on some PCBs in fact mess up the resonance frequency of the antenna circuit. As a result the reader can be made to operate in a wider frequency band by replacing some of the capacitors to compensate for the different trace width of the antenna.

They provided some sample values for the readers they had available.
Interestingly enough my reader seems to be yet another variety. The silk screen does not look like any of the ones they encountered.

Since that could mean that the capacitors they proposed would not work with my particular reader I was a little worried if their solution would actually work for me. Nonetheless I decided to give it a shot.

After digging in my component drawer for I while I did not find any capacitors that were a good match. The article proposed 150pF and 33pf to get a total of about 185pF.
The closest ones I found were 100pF and 22pF so I decided to try 100pF for C8 and C9 and a stack of four 22pF capacitors each for C10 and C11.
What made it even weirder was the fact that I only had through hole capacitors at hand and had to solder them onto the SMD pads. But see for yourselves:

RC522 with stacked capacitors

In the end everything worked out pretty nicely. Even though my reader is a little different than the others, 188pF did the trick and it successfully reads cards other than the ones that came with it now. As a matter of fact it now is the most compatible and reliable RFID reader I own.
All that is left to do now is to get some proper SMD capacitors.

Many thanks to the awesome guys at Makerspace Leiden who invested all the time and effort so I didn't have to ;).

BTW: If you are looking for instructions on how to use a RC522 reader with a Raspberry Pi, here's a great guide on that:
https://pimylifeup.com/raspberry-pi-rfid-rc522/