I have a leonardo and rc522.. all is well, however I need a smaller footprint so pro micro fits the bill.
Purchased a clone off amazon, same code as leonardo, with different rst and sda pins (5 &10 as the build on line).
Will not read a mifare card, good or bad. However passed the rc522 self diagnostics.
I know the rc522 is good.. works with leonardo, other functions of the pro micro are working.. pwm and digital outputs.
Tests done with standard library examples
I was concerned that the voltage divider 10k/20k to get 3.3v might not be giving enough to let the rc522 do its thing (30ma required).. so I built a lm317 regulator. No change.
The code is from the examples. The only difference between the leonardo version and the pro micro versions are the assignment of rst_pin and ss_pin for the library to use.
I will post the exact code and pin connections later
odd, just spent 20 mins putting a reply together, hit post & it disapeared... oh well!
OK, code (mine), pin mapping and schematic attached (credit the project forum, PC-Pass, by movano the idiot)
These are the micro version, on the Leonardo version RST -> pin 13 and SS to pin 10, MOSI/MISO and SCK are attached to the ISCP header.
There is more going on in the attached code, however essentially all it does is fade a blue LED, on fail read flash red, on a good read flash green and dump the content of sector 7 to the serial monitor.
As I said I ran the standard example firmware-check from Miguel Balboas library.. I am using the library as supplied!
It seems you're not using the MFRC522 chip directly. Post a link to the schematics of the breakout board you're using!
You must use a level converter between the Micro and the MFRC522 (if not already included on the breakout board)! You might damage the MFRC522 if you connect the SPI signals directly to the Micro!