Hello ,
I connected an rc522 module to my particle argon and tried using the MFRC522
library from the web ide but I m unable to read any data from the provided cards.
I didn’t follow the wiring instructions since they were made for spark devices.
My connections:
SDA : A4
RST : D6
MISO : MI
MOSI : MO
SCK : SCK
How have you set the pin values for SDA (aka SS) and RST in your sketch?
How have you connected IRQ?
Also, the SPI bus speed may be an issue - it is using DIV8 - maybe you should set the speed to be 2MHz. To do that you would need to edit the .cpp file where the SPI is configured.
Is there a reason to use SPI1 rather than SPI and have you connected SCK, MOSI, MISO pins to secondary port? Suggests not since you have used RST_PIN on D2?
I tried spi1 because I am on device os 4.2.0 and according to the particle spi documention spi1 used to be faster prior to 5.3.1 (unless I totally misunderstood)