Introduction
The RFID Card Reader Detector Module Kit allows for contactless identification and authentication using RFID technology. This kit includes an RC522 reader module and RFID tags.
Kit Components
- RC522 RFID Reader Module
- RFID Key Fob (13.56 MHz)
- RFID Card (13.56 MHz)
- Header Pins
- Connecting Cables
Pinout of RC522 RFID Module
Pin | Description |
---|---|
VCC | Connect to 3.3V |
GND | Connect to ground |
RST | Reset pin |
SDA | SPI Chip Select |
SCK | SPI Clock |
MOSI | SPI Master Out |
MISO | SPI Master In |
IRQ | Interrupt Pin |
Working Principle
RFID modules work by emitting electromagnetic fields to power and communicate with nearby RFID tags. The RC522 operates at 13.56 MHz and retrieves the UID of tags within range.
Example Code
#include#include #define RST_PIN 9 #define SS_PIN 10 MFRC522 rfid(SS_PIN, RST_PIN); void setup() { Serial.begin(9600); SPI.begin(); rfid.PCD_Init(); } void loop() { if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial()) { return; } for (byte i = 0; i < rfid.uid.size; i++) { Serial.print(rfid.uid.uidByte[i], HEX); } Serial.println(); }
RC522 Module Image
