1

I am doing a project using Arduino and a Rfid Mfrc522 module that consists of reading a card to unlock/lock a door. The Arduino is 3 meters far away from the Rfid Mfrc522 module and I used 7 cables to connect it, according to the schematic of the Mfrc522 Arduino library. When I previously tested the system everything was working fine but after I connect the Arduino to the module with the 3 meters cable I get this output and I can not read any card.

Firmware Version: = (unknown)
Scan PICC to see UID, SAK, type, and data blocks...

When I try to run the firmware check example for the library I get the following output

*****************************
MFRC522 Digital self test
*****************************
Firmware Version: = (unknown)
-----------------------------
Only known versions supported
-----------------------------
Performing test...
-----------------------------
Result: DEFECT or UNKNOWN

Is it possible that 3 meters away from Arduino the module is unable to communicate with it? If so what can be a possible solution to extend the "communication range" between both of them?

Thanks for the help,

Enzo

7
  • 2
    You are using 7 individual wires? That sounds bad, because that's 7 antennas. While I can't say that it will work, I'd at least try a shielded cable (you can try a standard CAT-5 cable)
    – PMF
    Dec 10, 2021 at 11:15
  • Try slowing down your SPI communication. Also quadruple-check your wiring.
    – Majenko
    Dec 10, 2021 at 12:13
  • @PMF Thanks for the answer I will try to do that. So the issue is that each cable interferes with each other or the noise outside in air interfere with the 7 cables? Because my cat 5 cable I have at home is shielded between the 8 wires and the surroundings, not between each other. Thanks
    – Enzo
    Dec 10, 2021 at 13:36
  • @Majenko Thanks that could also help, do you know how I can do this in the Arduino code editor?
    – Enzo
    Dec 10, 2021 at 13:36
  • Depends on what library you are using. Read this: arduino.cc/en/Reference/SPISetClockDivider
    – Majenko
    Dec 10, 2021 at 14:23

0

Your Answer

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

Browse other questions tagged or ask your own question.