# WARNING: Communication failure, is the MFRC522 properly connected?

**URL:** <https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177>\
**Category:** Sensors\
**Created:** [January 30, 2018, 12:45pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177 "2018-01-30T12:45:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [January 30, 2018, 12:45pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/1 "2018-01-30T12:45:58Z")

</div>

I just got an RFID module and want to use it with my arduino UNO R3. Everytime try to use the Dumpinfo example, it says WARNING: Communication failure, is the MFRC522 properly connected?  
I've literally checked every connection 20 times and I can't figure out what's wrong.  
Can you please help me?

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [January 30, 2018, 4:58pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/2 "2018-01-30T16:58:46Z")

</div>

> I've literally checked every connection 20 times and I can't figure out what's wrong.

Post a picture of that wiring! Also it would help to see what sketch you're using. Post complete code!

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [January 31, 2018, 5:02am UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/3 "2018-01-31T05:02:20Z")

</div>

/\*

- 
* * *
- Example sketch/program showing how to read data from a PICC to serial.
- 
* * *
- This is a MFRC522 library example; for further details and other examples see: [GitHub - miguelbalboa/rfid: Arduino RFID Library for MFRC522](https://github.com/miguelbalboa/rfid)
- 
- Example sketch/program showing how to read data from a PICC (that is: a RFID Tag or Card) using a MFRC522 based RFID
- Reader on the Arduino SPI interface.
- 
- When the Arduino and the MFRC522 module are connected (see the pin layout below), load this sketch into Arduino IDE
- then verify/compile and upload it. To see the output: use Tools, Serial Monitor of the IDE (hit Ctrl+Shft+M). When
- you present a PICC (that is: a RFID Tag or Card) at reading distance of the MFRC522 Reader/PCD, the serial output
- will show the ID/UID, type and any data blocks it can read. Note: you may see "Timeout in communication" messages
- when removing the PICC from reading distance too early.
- 
- If your reader supports it, this sketch/program will read all the PICCs presented (that is: multiple tag reading).
- So if you stack two or more PICCs on top of each other and present them to the reader, it will first output all
- details of the first and then the next PICC. Note that this may take some time as all data blocks are dumped, so
- keep the PICCs at reading distance until complete.
- 
- @license Released into the public domain.
- 
- Typical pin layout used:
- 
* * *
- MFRC522 Arduino Arduino Arduino Arduino Arduino
- Reader/PCD Uno/101 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\>

constexpr uint8\_t RST\_PIN = 9; // Configurable, see typical pin layout above  
constexpr uint8\_t 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));  
}

This is the sketch and the wiring is exactly like:

- Typical pin layout used:
- 
* * *
- MFRC522 Arduino Arduino Arduino Arduino Arduino
- Reader/PCD Uno/101 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  
\*/

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [January 31, 2018, 5:23pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/4 "2018-01-31T17:23:29Z")

</div>

Use code tags!! Please edit your post and put code tags around the code, otherwise the forum system may hide stuff that may be relevant.

> This is the sketch and the wiring is exactly like:
> 
> - Typical pin layout used:
> - 
> * * *
> - MFRC522 Arduino Arduino Arduino Arduino Arduino
> - Reader/PCD Uno/101 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  
> \*/

That are five different wirings. And for the UNO there are two versions. I want to know which one you're using. You may post a picture of your setup.

How did you install the MFRC522 library?

---

<div class="post-metadata">

**Author:** ![johnnyandy7](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@johnnyandy7](https://forum.arduino.cc/u/johnnyandy7)\
**Post date:** [May 27, 2018, 3:27pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/5 "2018-05-27T15:27:01Z")

</div>

I have the same problem, any solution ?

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [May 29, 2018, 4:34pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/6 "2018-05-29T16:34:15Z")

</div>

> I have the same problem, any solution ?

Did you read the thread? No! Otherwise you've posted the information we requested.

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [May 30, 2018, 1:15pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/7 "2018-05-30T13:15:16Z")

</div>

I really don't have time to take a photo of the wiring, but please trust me, I have checked too many times, the wiring is exactly like it says in the sketch:

> RST/Reset 9  
> SPI SS 10  
> SPI MOSI 11  
> SPI MISO 12  
> SPI SCK 13

I can't remember where exactly I got the library from, but it was most probably Github, so I'm sure it's the correct one.

I wonder if the problem is with these Chinese ones, as neither the module I got in my kit, nor the one I bought separately off eBay work (oddly enough, the eBay one worked correctly, but after I uploaded another sketch [still, with the same wiring], it didn't work anymore and displayed the error {not even the original sketch that it worked with before would work}). The eBay seller said he will resend it, but it's almost been about 2 months and nothing showed up (still praying).

But I think I just have bad luck, as my friend just got his (from a Romanian site, but still a Chinese fake) and it works. I might consider getting one from the same site, but what kind of draws me back is the fact that the shipping costs almost as much as the module (module= ~$5, shipping= ~3.75). It's not that much, considering it's 2-day shipping, so I guess I should just try my luck.

Btw, are we all sure the module has 5v logic levels and not 3.3v? The eBay seller says he doesn't know (wow).

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [May 30, 2018, 4:24pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/8 "2018-05-30T16:24:04Z")

</div>

Is the I2C pin of the chip (1) pulled low and EA (32) pulled HIGH?

> I wonder if the problem is with these Chinese ones, as neither the module I got in my kit, nor the one I bought separately off eBay work (oddly enough, the eBay one worked correctly, but after I uploaded another sketch [still, with the same wiring], it didn't work anymore and displayed the error {not even the original sketch that it worked with before would work}). The eBay seller said he will resend it, but it's almost been about 2 months and nothing showed up (still praying).

That's always a problem with that cheap Chinese stuff on ebay. I only buy such stuff if all necessary material is provided (schematics, connection description, etc.).

> Btw, are we all sure the module has 5v logic levels and not 3.3v? The eBay seller says he doesn't know (wow).

The chip accepts only 3V3 so a board advertised as an Arduino extension should include a level converter. I doubt that $5 boards include much additional circuitry. It might be even possible that the chip accepts the over-voltage for some time to die later on.

It has a reason we're asking for wiring diagrams/schematics here. There are so many different boards available, we cannot know them all. And with Chinese sellers you increase the risk that you get a not working fake (chip is simply a piece of plastic without silicone inside).

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [June 1, 2018, 9:10am UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/9 "2018-06-01T09:10:05Z")

</div>

> Is the I2C pin of the chip (1) pulled low and EA (32) pulled HIGH?

I don't know, my module is, of course, a breakout (SPI) and has no pin labeled "EA" and, of course, I can't do micro-soldering to "mod" it, so...

Do you need photos of it (the module, a specific component, the IC itself etc.)? Maybe someone better than me at this could figure it out.

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [June 4, 2018, 5:06pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/10 "2018-06-04T17:06:39Z")

</div>

If you want to use that board and you don't get schematics from your vendor you have to go the hard way and make the schematics by following the traces on the board. The cheap hardware sometimes comes at a price, unfortunately. A multimeter in the "Peep" mode often helps to find the correct traces.

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [June 14, 2018, 4:04am UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/11 "2018-06-14T04:04:34Z")

</div>

Well, the seller has sent me a manual for it, but it's mostly in Chinese, I can't really do much with it, maybe you could help me.

[¦·¦+-¦+˜+-¦¦\_CN.pdf](https://forum.arduino.cc/uploads/short-url/g2LNNRPhRGmmzS61Yn2qxW6PZVU.pdf) (268 KB)

[RFID\_API.pdf](https://forum.arduino.cc/uploads/short-url/uGnw3NAArCn9MANGC7Cv4HHLV1.pdf) (66.2 KB)

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [June 14, 2018, 4:15pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/12 "2018-06-14T16:15:15Z")

</div>

I understand absolutely no Chinese but the drawings show a board with UART connections. That doesn't look like an SPI version.

I found the English version of that manual: [http://www.icstation.com/images/ICS/describe/4154/4154.rar](http://www.icstation.com/images/ICS/describe/4154/4154.rar).

There is also an ultra-simple sketch for the Arduino available at that site: [http://www.icstation.com/product\_document/Download/4154.zip](http://www.icstation.com/product_document/Download/4154.zip)

It shows you how to connect the board to a Mega and with the provided sketch you can see the tags in reach.

I guess you won't get happy with that module on an UNO, the example is for a Mega which has enough hardware serials, if you connect it to the UNO you loose the debugging serial channel. I guess it's cheaper to buy a new RFID reader than to upgrade to a Mega2560.

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [June 16, 2018, 5:34pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/13 "2018-06-16T17:34:41Z")

</div>

Attached is an image of my 2 boards. I'm pretty sure they are both SPI, please correct me if I am wrong. Maybe the manual is wrong, or even better, the seller doesn't even know what he is selling...  
So the solution is to buy a new board and hope for the best?

 ![IMG_20180616_202947.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/3/d/b/3dbf172f01591481ba708f45b7f80e5602a41453.jpeg)

---

<div class="post-metadata">

**Author:** ![zoomx](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zoomx/32/213669_2.png) [@zoomx](https://forum.arduino.cc/u/zoomx)\
**Post date:** [June 19, 2018, 2:51pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/14 "2018-06-19T14:51:17Z")

</div>

Watch carefully the chip pins, I received one board with some solder between two pins so it didn't work. I removed it and now the board works.

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [June 19, 2018, 4:19pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/15 "2018-06-19T16:19:15Z")

</div>

The soldering looks rather bad on the pictures.

In any way, connecting that board directly to an UNO might fry it.

> RST/Reset 9  
> SPI SS 10  
> SPI MOSI 11  
> SPI MISO 12  
> SPI SCK 13

On your picture none of the pins is labeled SS, so which pin did you use for SS?

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [June 23, 2018, 3:56pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/16 "2018-06-23T15:56:26Z")

</div>

> - 
> * * *
> - MFRC522 Arduino Arduino Arduino Arduino Arduino
> - Reader/PCD Uno/101 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

Here it says "SPI SS SDA(SS) 10" so I just hooked up the pin labelled "SDA" to pin 10.

> in any way, connecting that board directly to an UNO might fry it.

What do you mean?

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [June 25, 2018, 4:51pm UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/17 "2018-06-25T16:51:34Z")

</div>

> What do you mean?

The MFRC522 is not 5V tolerant. The UNO has 5V on it's SPI pins but the MFRC522 must not get more than 3.6V (according to the datasheet). So you need a level converter.

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [June 26, 2018, 5:20am UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/18 "2018-06-26T05:20:52Z")

</div>

Well, doesn't the module already have one? I mean, all the YouTube videos show these exact modules being used at 5V.

---

<div class="post-metadata">

**Author:** ![Whandall](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/whandall/32/222457_2.png) [@Whandall](https://forum.arduino.cc/u/Whandall)\
**Post date:** [June 26, 2018, 5:45am UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/19 "2018-06-26T05:45:13Z")

</div>

> Domnulvlad:  
> Well, doesn't the module already have one?

No, it has not.

> Domnulvlad:  
> I mean, all the YouTube videos show these exact modules being used at 5V.

> pylon:  
> It might be even possible that the chip accepts the over-voltage for some time to die later on.

There are a lot of flat earth videos also and they show a similar level of expertise.

---

<div class="post-metadata">

**Author:** ![zoomx](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zoomx/32/213669_2.png) [@zoomx](https://forum.arduino.cc/u/zoomx)\
**Post date:** [June 26, 2018, 7:30am UTC](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177/20 "2018-06-26T07:30:56Z")

</div>

> Domnulvlad:  
> Well, doesn't the module already have one? I mean, all the YouTube videos show these exact modules being used at 5V.

No there isn't, see schematic here

> **[Sunrom Electronics](https://www.sunrom.com/)**
>
> Sunrom Electronic components distributor with huge selection in stock and ready to ship same day with no minimum orders. New electronic parts added frequently.

Unfortunately there are many videos and projects that are only a show, they works only for few minutes just for the show.  
I used that board for testing without level shifher for tha same reason, many schematics doesn't have one, but thanks to Whandall I checked that and discovered I was wrong.  
Alternative to a level shifter is a 3.3V board.

[Next page](https://forum.arduino.cc/t/warning-communication-failure-is-the-mfrc522-properly-connected/505177.md?page=2)
