Need some advice on how to use multiple RFID RC522 readers on the same Arduino Mega controller.
I don't mind which Libraries or methods you use to do this. So far I was able to get the RFID reader working and successfully detect tags. however I'm struggling on how to use multiple readers and keyly being able to distinguish which reader the tag was detected on?
it is important that both readers can detect the tags and that when detected the script also knows which reader the tag was detected on.
pondfish97:
it is important that both readers can detect the tags and that when detected the script also knows which reader the tag was detected on.
The MRFC522 datasheet shows an IRQ output pin. If this pin can be used to alert the host that RFID data is available, then you can connect the IRQ pins to corresponding input pins on the Arduino. This should tell you which RFID reader has been activated. To read data from that RFID reader, use the Arduino's output pins as SPI chip-select signals so you can have all RFID readers on the same SPI port. (I didn't see the chip-select signal on the chip pin-out but I'm sure there is one.)
(Disclaimer: I'm not familiar with the MRFC522 at all.)