Skip to content

Communication failure with MFRC522v2, but the original MFRC522 had no such issues #27

@arseni-mourzenko

Description

@arseni-mourzenko

I'm trying to read Mifare Classic 1K cards using Seeeduino Lotus. It works with the original https://github.com/miguelbalboa/rfid library, detecting the card and showing its UID.

However, when I try MFRC522v2 version 2.0.4 and use the sample code from the documentation, it shows:

= (unknown)
WARNING: Communication failure, is the MFRC522 properly connected?
Scan PICC to see UID, SAK, type, and data blocks...

Note that the wiring is exactly the same in both cases, with the default pins being used, as specified in the documentation. If I upload back the original sketch, it works.

I noticed that the example from the original MFRC522 library specifies both the SPI SS pin and the reset pin like this:

#define RST_PIN 9
#define SS_PIN 10

however the example from has only the SS pin specified:

MFRC522DriverPinSimple ss_pin(10);

Is this the issue? How do I tell what's the reset pin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions