Arduino RFID Library for MFRC522
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 68 commits ahead, 431 commits behind miguelbalboa:master.
ljos Turn off encryption after halting
Turning off encryption MUST happen after the command has been
sent. Because of this the card is never halted. This is what is
causing the same card to be read over and over again.

Please note that if the card is halted, the status returned will be ERR
- the card it halted and so can not respond. so a timeout will occur. In
this instance, this is the correct response.

Fixes #9.
Latest commit 88ac553 Feb 19, 2016

Arduino RFID Library for MFRC522 (13.56 Mhz)

Pin order, starting from the bottom left hand pin (in case your MFRC522 doesn't have pin markings like the B2CQSHOP one):

Pins SPI UNO Mega2560 Leonardo/Due
1 SDA (SS) 10 53 10
2 SCK 13 52 SCK1
3 MOSI 11 51 MOSI1
4 MISO 12 50 MISO1
5 IRQ * * *
7 RST 5 ? Reset
8 +3.3V 3V3 3V3 3.3V
* Not needed
1 on ICPS header

Using MFRC522 with other SPI components

If you are planning to use other SPI components you just have to make sure each have an exclusive SS (Slave Select) line. MISO, MOSI and SCK lines may be shared. More reference regarding SPI may be found here.