@AdamS28 welcome to the Community! If you look at the code you copied, the top of the file has:
/* Define the pins used for the DATA OUT (MOSI), DATA IN (MISO) and CLOCK (SCK) pins for SOFTWARE SPI ONLY */
/* Change as required and may be same as hardware SPI as listed in comments */
#define MOSI_PIN D3 // hardware SPI: A5
#define MISO_PIN D4 // " " : A4
#define SCK_PIN D5 // " " : A3
/* Create an instance of the RFID library */
#if defined(_USE_SOFT_SPI_)
RFID RC522(SS_PIN, RST_PIN, MOSI_PIN, MISO_PIN, SCK_PIN); // Software SPI
#else
RFID RC522(SS_PIN, RST_PIN); // Hardware SPI
#endif
What’s important to note is that SPI pins D2, D3, D4 are used for software SPI, which is enabled when _USE_SOFT_SPI_ is defined, which isn’t by default. Instead the hardware SPI pins are used (A3, A4 and A5) as indicated above. If you change your wiring accordingly, you may have more luck!
Hi @peekay123 - Thank you for the very quick reply and nice welcome
If I understand you correctly, I switched D3 -> A5. D4 -> A4 and D5 -> A3 however I cant get the Card ID to display.
From his article, I copied all 3 of the code files: .ino .h and .cpp - is there an easier way I can test my RFID reader? I am just looking to have it output the ID from the card somehow to ensure it works, thank you again for your help!
@peekay123, this keeps tripping me up all the time too - the Gen1&2 pinout is so hardwired in my brain that I often forget that Gen3 uses an entirely different pinout.
On the Argon (also Boron & Xenon) it’s not A3, A4, A5 as it would be on Gen2 devices but rather MI/D11, MO/D12, SCK/D13.