DIY

MFRC522 RFID Reader with Arduino

Login To Bookmark

  • May 09,2020
  • 2 min read
  • 10
  • 3.28 thousand Views

In this post, we will use the MFRC522 RFID Reader Module with Arduino to read the data from an RFID Tag. 

Introduction - 

RFID stands for radio-frequency identification. It uses radio wave(electromagnetic fields) to read the data stored in an RFID tag. An RFID system consists of two components : 

1) RFID TAG - It contains a chip for storing the data and an antenna for receiving and transmitting the data. 

 

                                      RFID_KEY_TAGRFID_KEY_TAG_2

                                                     Card type RFID Tag                                      Key chain type RFID card 

 

2) RFID Reader -  It works as a transceiver, it can transmit and receive data from the RFID tag. 

 

                                                                                          RFID_MFRC522

 

Working - 

The RFID Reader module generates a high-frequency electromagnetic signal, this EM wave signal induces an EMF in the RFID tag circuit which powers up the chip. The chip then alters the signal and produces a feedback signal that is received by the reader.

Paint_rfid

Components Required -   

1. Arduino Board

2. MFRC522 RFID Reader Module ( RFID-RC522)

3. Connection wires 

 

Connections - 

1.  3.3V   -  3.3V

2.  RST    -  Pin 9

3.  GND  -  GND 

4.  IRQ    -  No connection 

5.  MISO -   Pin 12

6.  MOSI -   Pin 11

7.  SCK   -    Pin  13

8.  SDA  -     Pin 10 

Note:- Do not connect the 3.3V pin to 5V.

 

Circuit Schematic -    

 BB_RFID

 

 

Schem_RFID

 

 

Reading Data from an RFID tag:-   

In this example, we will be reading data from the RFID tag and then printing it in the serial monitor. First, we need to download and install the library for the module from the library manager in the Arduino ide, as shown below : 

SS_RFID_1

Search for "MFRC522".

 

SS_RFID_2

Install the library.

 

SS_RFID_3

Open DumpInfo : File>Example>MFRC522>DumpInfo.

SS_RFID_4

After Uploading the sketch, Go to the serial monitor.

 

Bring the RFID tag near the reader...

 

 

The serial monitor will print the data in it, Note down the UID of your card.

SS_RFID_5

 

 

 


avatar
An asset to GizMeek

0 comments

Leave a reply

Please Login or Register to Comment. Get Started

Share this article