RFID module not scanning card

As on connecting the M522 module with arduino uno and running the "dumpinfo" sketch, it didn't scan the card or tag i.e. Shows nothing. I have checked all connections and also on checking the version of rfid reader, it shows it v2. I think this shows that reader is connected properly to uno. I have checked in all examples of library but none of them detects the card or tag. I havetried different distances from the reader, but nothing works. Please help.

(deleted)

sorry my mistake, its RFID-RC522 (MF-RC522) as shown in this link Arduino Playground - MFRC522.

(deleted)

I have that reader, reading the Mifare Classic tags. It uses the SPI interface, but I also have another device on that bus. Even though the two should be compatible, sooner or later, the software always hangs up, but if you aren't using two devices on the bus, that shouldn't be the problem.

Also the device is a 3.3 v. device. Have you taken level shifting into account? Are you trying to run it from the 3.3v supply on the Uno? That supply doesn't supply much current.

I have tried it with more current 3.3v but same, shows nothing when card is put in front of scanner. I want to tell you that I have never used them before, do fresh cards have no data in there? Also i am using the read and write sketch from MFRC522 library, is that scans fresh cards? Please help me out I have no idea how to fix this..

have tried it with more current 3.3v

3.3V is not current it is voltage. If you have used more voltage then you may have damaged it.

How is this wired up? Please post a schematic.
What sort of Arduino do you have?

Please help me out I have no idea how to fix this

Unless you tell us what you have done we have no idea what you have done wrong.

1 Like

ohh sorry for this... That's the grammer problem ,I haven't increased the voltage just used a different source providing 3.3volts with more current. Actually English is not my native language :stuck_out_tongue: . I have done the wiring as given in library's example codes i.e.

Arduino UNO:- MFRC522:-

9 RST
10 SDA(SS)
11 MOSI
12 MISO
13 SCK

I have checked the wiring many times and it seems to be fine.

do fresh cards have no data in there?

A fresh card has 16 blocks of data, which starts out as all zeros. But the access keys are in there for all blocks, namely FFFFFFFF, and DumpInfo should show you the card UID (four bytes) and the contents of all 16 blocks.

The Uno is a 5V system, so that wiring has 5V signals going into a 3V3 reader. As you were told before you have to cut the output signals from the Arduino down to 3V3. This can be done with a level shifter or a potential divider using a 510R and 1K resistor. Do not cut down the output of the reader, that is the MISO line.

All cards have an ID which you should be able to read with any reader.

Ok, I have tried all this... but still its showing nothing. Please help

From reply #6

How is this wired up? Please post a schematic.

And also post your code.

here's the code:-

/* 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));
}

wiring is done as given in comment. The code I have used is "dumpinfo" from "MFRC522" library.
Also I have attached my wiring. Other than here in this picture where I have connected 'Vin' in arduino's 3.3V, I have also checked it high current 3.3volts as I have said previously.

Also I have attached my wiring.

Nothing is attached to that post.

That code is not going to show you anything, it is very poor.
Print out something showing a card has been detected after that first if statement.

sorry for late reply. I have attached the pics. When on putting "Serial.println("worked");" under first 'if' statement, it prints 'worked worked worked........' continuously without scanning the card.

#2nd attachment

#2nd attachment

Well I have tried your code and while I don't get the 'worked worked worked........' continuously without scanning the card, I don't get any card readings either. I get the software version number back from the reader and it does not print that the communications is broken so there is some response from the reader, but no card reading.

I got the reader in a batch of 3 from the same seller for a project on the Raspberry Pi. The readers I used in that project work. However, after failing to get this reader working on the Arduino with that libiary and wiring, I transferred it to the Raspberry Pi project and found that the reader wouldn't work in that either. Now it is possible that this reader never worked, but as I said the other two I got did.

So the conclusion I have come to at the moment is that these readers are very easy to damage through either software or miss wiring. I did check the supply from the Arduino reader and it was fine. I am going to have to get another reader and try again, testing first that it works on the Pi and then seeing if I can get it working on the Arduino. It looks at the moment that your reader might be damaged in a similar way.

thanks mike... I also think that maybe the hardware is damaged. I will soon order a new one.

OK just to round off. I got a new reader and first tested it on my other system so I know it works. I have tried that code on a new reader and it works with the code here. This is what I got:-

Card seen
Dump info about the card
Card UID: 76 2B E3 93
PICC type: MIFARE 1KB
Sector Block   0  1  2  3   4  5  6  7   8  9 10 11  12 13 14 15  AccessBits
  15     63   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         62   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         61   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         60   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  14     59   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         58   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         57   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         56   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  13     55   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         54   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         53   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         52   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  12     51   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         50   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         49   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         48   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  11     47   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         46   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         45   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         44   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  10     43   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         42   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         41   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         40   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   9     39   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         38   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         37   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         36   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   8     35   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         34   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         33   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         32   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   7     31   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         30   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         29   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         28   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   6     27   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         26   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         25   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         24   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   5     23   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         22   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         21   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         20   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   4     19   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         18   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         17   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         16   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   3     15   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         14   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         13   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         12   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   2     11   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         10   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
          9   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
          8   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   1      7   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
          6   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
          5   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
          4   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   0      3   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
          2   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
          1   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
          0   76 2B E3 93  2D 08 04 00  62 63 64 65  66 67 68 69  [ 0 0 0 ]

I put a 510R in series with each of the following pins 13,11,5 & 3 with a 1K pull down to ground on the reader side of the signal. I connected pin 12 on the Arduino directly to the MISO pin of the reader. I supplied 3V3 from the Arduino and also connected up the ground.