Hardware Setup:
- Arduino Uno
- MFRC522 RFID Reader
- Standard SPI Connections:
- RST -> Pin 9
- SDA (SS) -> Pin 10
- MOSI -> Pin 11
- MISO -> Pin 12
- SCK -> Pin 13
- 3.3V from Arduino to RFID VCC
- GND from Arduino to RFID GND
Code Used:
/* Typical pin layout used:
* -----------------------------------------------------------------------------------------
* MFRC522 Arduino Arduino Arduino Arduino Arduino
* Reader/PCD Uno Mega Nano v3 Leonardo/Micro Pro Micro
* Signal Pin Pin Pin Pin Pin Pin
* -----------------------------------------------------------------------------------------
* RST/Reset RST 9 5 D9 RESET/ICSP-5 RST
* SPI SS SDA(SS) 10 53 D10 10 10
* SPI MOSI MOSI 11 / ICSP-4 51 D11 ICSP-4 16
* SPI MISO MISO 12 / ICSP-1 50 D12 ICSP-1 14
* SPI SCK SCK 13 / ICSP-3 52 D13 ICSP-3 15
*/
#include <SPI.h>
#include <MFRC522.h>
#define RST_PIN 9 // Configurable, see typical pin layout above
#define SS_PIN 10 // Configurable, see typical pin layout above
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance
void setup() {
Serial.begin(9600); // Initialize serial communications with the PC
while (!Serial); // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4)
SPI.begin(); // Init SPI bus
mfrc522.PCD_Init(); // Init MFRC522
mfrc522.PCD_DumpVersionToSerial(); // Show details of PCD - MFRC522 Card Reader details
Serial.println(F("Scan PICC to see UID, SAK, type, and data blocks..."));
}
void loop() {
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent()) {
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial()) {
return;
}
// Dump debug info about the card; PICC_HaltA() is automatically called
mfrc522.PICC_DumpToSerial(&(mfrc522.uid));
}
Problem Description: I am using an Arduino Uno and an MFRC522 RFID reader module for my project. The module successfully scans blue key fob tags but does not scan white RFID cards. Both types of tags are supposed to be 13.56 MHz and compatible with the MFRC522 reader.
Troubleshooting Steps Taken:
- Verified wiring and connections as per the typical pin layout.
- Ensured stable 3.3V power supply to the RFID reader.
- Tested with multiple blue tags (all are scanned successfully).
- Tried different white cards (none are scanned).
- Added 510 Ohm resistors in series with SCK, MOSI, RST, and SDA, and 1K Ohm pull-down resistors on the RFID reader side, as suggested for signal integrity (did not resolve the issue).
Request: I am seeking advice on why the RFID reader might scan blue tags but fail to scan white cards. Are there any specific compatibility issues or additional troubleshooting steps I should consider?
Additional Information:
- Using the MFRC522 library.
- The blue tags and white cards are supposed to be 13.56 MHz.
- The issue persists with multiple white cards, suggesting it's not a single faulty card.
Thank you for your help!

