I am currently using a rfid rc522 nfc tag reader with raspberry pi using the MFRC522-python code. In my project I need to collect data from two rfid rc522 cards at the same time, rc522 are located at two different places and I want to distinguish between them, I mean how can I tell the pi which card has detected the tag.


Your rc522 reader has "CS" pin which can be controlled to activate each rc522 reader. You can try to toggle them one by one to be able to read the individual one.

The MFRC522-python module does not seem to allow to control/specify it, so you may need to modify the module or control GPIO pin yourself: that's line 113 in https://github.com/mxgxw/MFRC522-python/blob/master/MFRC522.py.

  • Thanks for your reply, But I am not getting the Tag ID correct. If both RFID readers are connected the status is 2 and UID is also not correct, as soon as I remove one reader I get the correct UID from the other card – arslion Mar 25 '16 at 17:08
  • Please follow my suggestions above. The CS signal controls which reader is currently active. When using one, you have to disable another one. – nochkin Mar 25 '16 at 19:28

I have a solution using Raspberry Pi at this link: https://github.com/erivandoramos/TwoRC522RPi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.