+91-9972364704 / [email protected]

RFID Reader/Writer RC522 SPI S50 with RFID Card and Tag

(2 customer reviews)



  • It is designed by NXP as low power consumption.
  • Low cost and compact size read and write chip.
  • It is the best choice in the development of smart meters and portable hand-held devices.
  • This is RFID Reader/Writer RC522 SPI S50 CARD AND KEYCHAIN which works on non-contact 13.56mhz communication.

Add to Wishlist
Add to Wishlist

How to use the MFRC522 RFID reader. I’ll do a quick overview of the specifications and demonstrate a project example using an Arduino.

RFID means radio-frequency identification. RFID uses electromagnetic fields to transfer data over short distances. RFID is useful to identify people, to make transactions, etc…

You can use an RFID system to open a door. For example, only the person with the right information on his card is allowed to enter. An RFID system uses:

  • tags attached to the object to be identified, in this example we have a keychain and an electromagnetic card. Each tag has his own identification (UID)

rfid tags www.mifraelectronics.com

  • two-way radio transmitter-receiver, the reader, that send a signal to the tag and read its response.

rfid reader

Specifications :

  • Input voltage: 3.3V
  • Price: approximately 3$ (https://mifraelectronics.com/shop/wireless-modules/rfid-modules/rfid-card-and-tag/)
  • Frequency: 13.56MHz


Library download :

Here’s the library you need for this project:

  • Download the RFID library here created by miguelbalboa
  • Unzip the RFID library
  • Install the RFID library in your Arduino IDE
  • Restart your Arduino IDE

Pin wiring

Pin Wiring to Arduino Uno
SDA Digital 10
SCK Digital 13
MOSI Digital 11
MISO Digital 12
IRQ unconnected
RST Digital 9
3.3V 3.3V

Caution: You must power this device to 3.3V!

rfid interfacing

Reading Data from a RFID tag

After having the circuit ready, go to File > Examples > MFRC522 > DumpInfo and upload the code. This code will be available in your Arduino IDE (after installing the RFID library).

Then, open the serial monitor. You should see something like the figure below:

serial monitor1

Approximate the RFID card or the keychain to the reader. Let the reader and the tag closer until all the information is displayed.

serial monitor2

This is the information that you can read from the card, including the card UID that is highlighted in yellow. The information is stored in the memory that is divided into segments and blocks as you can see in the previous picture.

You have 1024 bytes of data storage divided into 16 sectors and each sector is protected by two different keys, A and B.

Write down your UID card because you’ll need it later.

Upload the following code.

 * All the resources for this project: https://mifratech.com/
 * Modified by Shoaib mustafa
 * Created by Abdulnabi
#include <SPI.h>
#include <MFRC522.h>
#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN);   // Create MFRC522 instance.
void setup() 
  Serial.begin(9600);   // Initiate a serial communication
  SPI.begin();      // Initiate  SPI bus
  mfrc522.PCD_Init();   // Initiate MFRC522
  Serial.println("Approximate your card to the reader...");

void loop() 
  // Look for new cards
  if ( ! mfrc522.PICC_IsNewCardPresent()) 
  // Select one of the cards
  if ( ! mfrc522.PICC_ReadCardSerial()) 
  //Show UID on serial monitor
  Serial.print("UID tag :");
  String content= "";
  byte letter;
  for (byte i = 0; i < mfrc522.uid.size; i++) 
     Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
     Serial.print(mfrc522.uid.uidByte[i], HEX);
     content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
     content.concat(String(mfrc522.uid.uidByte[i], HEX));
  Serial.print("Message : ");
  if (content.substring(1) == "BD 31 15 2B") //change here the UID of the card/cards that you want to give access
    Serial.println("Authorized access");
 else   {
    Serial.println(" Access denied");
In the piece of code above you need to change the if (content.substring(1) == “REPLACE WITH YOUR UID”) and type the UID card you’ve written previously.

Highly integrated analog circuitry to demodulate and decode responses.
Supports ISO/IEC 14443 A/MIFARE.
Typical operating distance in reading/Write mode up to 50 mm.
Supports ISO/IEC 14443 A higher transfer speed communication up to 848 kBd.
SPI up to 10 Mbit/s.
FIFO buffer handles 64 bytes send and receive.
Flexible interrupt modes.
Power-down by software mode.
Programmable Timer.
2.5 V to 3.3 V power supply.
CRC coprocessor.
Internal self-test.

* Product Images are shown for illustrative purposes only and may differ from actual product.

Package Includes:

  • 1 x RFID Card and Tag.

Weight 0.2 kg

2 reviews for RFID Reader/Writer RC522 SPI S50 with RFID Card and Tag

  1. admin

    really good place to get all kind of electronics components

  2. admin

    top online electronics components store in india,

Add a review

Your email address will not be published. Required fields are marked *