QB046/QB087 RFID RC522 I2C Module
1.Product Introduction
Radio-Frequency Identification (RFID) is a technology used to wirelessly identify and track objects, which is based on the principle of wireless communication through the use of RFID tags and RFID readers.
RFID tag: An RFID tag is a small chip that contains a unique identifier UID (usually a numeric code) along with some memory for storing additional information. These tags usually consist of an RFID chip and an antenna.
RFID Reader: An RFID reader is an electronic device that generates a radio frequency signal and sends it to a nearby RFID tag. The reader is also responsible for receiving the response signal from the tag and decoding the tag’s information.
Rf communication: When an RFID reader sends an RF signal, it activates nearby RFID tags. Passive RFID tags get energy from the reader’s signal as well as operational commands and use it to send their own response signals. Active RFID tags have their own electricity supply, so they can actively send signals.
Application reference: Scenarios requiring object recognition such as management systems and security systems.
2.Parameter Specification
Parameter |
Value//Description |
---|---|
Operating voltage |
3.3V~5V |
Operating temperature |
-40°C~+80°C |
Protocol standard |
ISO 14443A,ISO 14443B |
Support card type |
mifare S50, mifare S70 |
Frequency |
13.56MHz |
Communication mode |
IIC |
Size |
4.72cm*2.38cm |
3.Wiring Diagram
RFID RC522 I2C Module |
UNO |
---|---|
VCC |
5V |
GND |
GND |
SCL |
Analog Pin A5 |
SDA |
Analog Pin A4 |
4.Sample Code
1//www.acebott.com
2#include <Wire.h>
3#include "MFRC522_I2C.h"
4// 0x28 is the i2c address on SDA. If it doesn't match, use i2cscanner to check your address
5MFRC522 mfrc522(0x28); // Create MFRC522 instance.
6String rfid_str = "";
7void setup() {
8 Serial.begin(115200); // Set baud rate to 115200
9 Wire.begin(); // Initialize I2C
10 mfrc522.PCD_Init(); // Initialize MFRC522
11}
12void loop() {
13if ( ! mfrc522.PICC_IsNewCardPresent() || ! mfrc522.PICC_ReadCardSerial() ) {
14 delay(50);
15 return;
16}
17 rfid_str = ""; // Clear the string
18 Serial.print(F("Card UID:"));
19 for (byte i = 0; i < mfrc522.uid.size; i++) { // Dump UID
20 rfid_str = rfid_str + String(mfrc522.uid.uidByte[i], HEX); // Convert to string
21 }
22 Serial.println(rfid_str);
23}
5.Test Result
After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 115200, and switch to scroll mode.
When we put the RFID tag on the RFID reader, the serial port will display the unique identifier of the RFID tag, UID.
6.Related Resources
7.Get One Now
B2B Business: info@acebott.com
Individual buyer: shop on aliexpress