KEMBAR78
RFID | PDF
0% found this document useful (0 votes)
13 views3 pages

RFID

Uploaded by

Madhur T Bgmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

RFID

Uploaded by

Madhur T Bgmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment Title: Study and Implement RFID/NFC Using Arduino

Aim: To study the working of RFID/NFC technology and implement an


RFID/NFC-based system using Arduino to read and display tag information.
Required Components:
1. Arduino board (e.g., Arduino Uno)
2. USB cable
3. RFID/NFC module (e.g., RC522)
4. RFID/NFC tags/cards
5. Breadboard
6. Jumper wires
Theory: RFID (Radio Frequency Identification) and NFC (Near Field
Communication) are wireless communication technologies used for data
exchange. An RFID/NFC reader module can detect and read data from
compatible tags or cards. The Arduino microcontroller processes the data and
displays it on a connected display or serial monitor.
Process:
1. Circuit Setup:
o Connect the RC522 RFID module to the Arduino as follows:
 SDA -> Pin 10
 SCK -> Pin 13
 MOSI -> Pin 11
 MISO -> Pin 12
 GND -> GND
 RST -> Pin 9
 3.3V -> 3.3V on the Arduino
2. Programming:
o Open the Arduino IDE.
o Install the MFRC522 library from the Arduino Library Manager.
o Write the following code:

#include <SPI.h>

#include <MFRC522.h>

#define SS_PIN 10
#define RST_PIN 9
MFRC522 rfid(SS_PIN, RST_PIN);

void setup() {
Serial.begin(9600);
SPI.begin();
rfid.PCD_Init();

Serial.println("Place your RFID card near the reader.");


}

void loop() {
if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial()) {

return;
}

Serial.print("Card UID: ");


for (byte i = 0; i < rfid.uid.size; i++) {

Serial.print(rfid.uid.uidByte[i], HEX);
Serial.print(" ");
}
Serial.println();
rfid.PICC_HaltA();
}
3. Upload and Test:
o Connect the Arduino board to the computer using a USB cable.
o Select the appropriate board and port from the Arduino IDE.
o Click the upload button.
o Open the Serial Monitor in the Arduino IDE.
o Place an RFID/NFC tag near the reader and observe the tag's
unique ID displayed on the Serial Monitor.
Conclusion: The RFID/NFC system successfully reads and displays tag
information, demonstrating how to implement wireless identification using
Arduino and the RC522 module.

You might also like