Product |
RFID & NFC
| 13.56MHz RFID Module Kits With External Antenna
13.56MHz RFID Module Kits With External Antenna
RFID frequency identification is a non-contact object recognition technology, it can automaticlly recognize target and get relevant data through rf signal, so there are so many interactive projects which need to use RFID to achieve object recognition.
Supported cards :
ISO 14443A/MIFARE®、MIFARE® Classic 1K、MIFARE® Classic 4K
Special Features :
1、Complete Read/Write module with built-in transceiver antenna
2、Auto checks for presence of a tag and upload ID need no command
3、Auto read/write data from RFID tag
4、Auto increment/decrement value when reading card
5、Easy LOCK/UNLOCK function to protect RFID information
6、Encrypted EEPROM to store configured data and up to 40 groups of keys
7、Contactless operating frequency 13.56 MHz
8、Supports ISO 14443A/MIFARE®、MIFARE® Classic 1K、MIFARE® Classic 4K
9、UART、SPI Interface, baud rate 19200bps
10、Fast data transfer: contactless communication up to 106KHz
11、Secure Encrypted contactless communication
12、Ideal for emoney,secure access and fast data collection applications
13、Typical Operating Distance: 0~~100 mm
14、Operating Voltage DC:3.0-5.5V(fully compatible with 3.3v and 5v)
15、Watchdog timer
16、1 LED indicator, 3 I/O pins for external use
17、512 bytes eeprom
18、Unique serial number on each device
19、Size : 40mm × 20mm × 6mm
20、Weight : 12g
21、Work Temperature : -20 ℃ - + 70 ℃
Interface Options :
1、UART Interface
2、SPI Interface
Please choose the interface you want to order and the default interface mode is UART Interface.
Application:
Vending Machine、Secure Access、Parking、Payment、Ticketing、Leisure、Membership、Time& Attendance、Biometrics、IT-access、Identify、Loyalty、Counter、Data Storage and Fast Data Collection systems.
The working principle of RFID is actually not complex, once the tag into the working area of card reader, card reader can read the data of tag by magnetic field generated by the antenna.
According to the specific use of different scene, we can use different types of tags, different types of tags have different range :
According to the specific use of different scene, we can use different types of tags, different types of tags have different range :
In the process of actual using, we can firstly use the reader to read the ID of different tags.
After connection, we use the serial debugging tool to open Serial Dongle corresponding Serial port, the baud rate is set to 19200, then send reading card order as HEX format : AA BB 02 20 22 (totally 5 bytes) :
If no cards within the working area of RFID module, then the RFID module return order as HEX format through serial port: AA BB 02 DF DD (five bytes) :
But If there are cards within the working area of RFID module, RFID module red LED will be lighted, at the same time return order as HEX format through serial port : AA BB 06 20 5E 97 25 C7 0D (9 byte), and then 5E 97 25 C7 is the tag ID. Different tags returns different ID value, and we just distinguish different objests through different ID value.
When geting the corresponding tags ID value, then we can recognize on Arduino, about the hardware connection, we still use the COM interface of Arduino sensor shield to connect RFID mdule with Arduino.
After connection, we use the serial debugging tool to open Serial Dongle corresponding Serial port, the baud rate is set to 19200, then send reading card order as HEX format : AA BB 02 20 22 (totally 5 bytes) :
If no cards within the working area of RFID module, then the RFID module return order as HEX format through serial port: AA BB 02 DF DD (five bytes) :
When geting the corresponding tags ID value, then we can recognize on Arduino, about the hardware connection, we still use the COM interface of Arduino sensor shield to connect RFID mdule with Arduino.
The corresponding Arduino code shown as below, the test tag ID is 5E 97 25 C7, when Arduino detected the corresponding tag, will light the LED on 13 digital I/O port of Arduino, and last for 1 second :
Test Code Start :
int val = 0;
int ledPin = 13;
int status = 0;
unsigned char searchCMD[] = {0xAA, 0xBB,0x02, 0x20, 0x22};
unsigned char searchRES[4];
void setup()
{
Serial.begin(19200);
pinMode(13, OUTPUT);
}
int searchCard()
{
Serial.write(searchCMD, 5);
delay(100);
status = 0;
while(true) {
if (Serial.available() > 0) {
val = Serial.read();
switch (status) {
case 0: // parse 0xAA
if (val == 0xAA) status = 1;
break;
case 1: // parse 0xBB
if (val == 0xBB) status = 2;
else return -1;
break;
case 2:
if (val == 0x06) status = 3;
else return -1;
break;
case 3:
if (val == 0x20) status = 4;
else return -1;
break;
case 4:
case 5:
case 6:
case 7:
searchRES[status - 4] = val;
status ++;
break;
case 8:
return 0; // read successfully
break;
default:
return -1;
break;
}
}
}
}
void loop()
{
if (searchCard() != -1) {
if (searchRES[0] == 0x5E && searchRES[1] == 0x97 && searchRES[2] == 0x25 && searchRES[3] == 0xC7) {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
}
}
Item List:
1、13.56MHz UART / IIC / SPI RFID Module With External Antenna ×1
Test Code Start :
int val = 0;
int ledPin = 13;
int status = 0;
unsigned char searchCMD[] = {0xAA, 0xBB,0x02, 0x20, 0x22};
unsigned char searchRES[4];
void setup()
{
Serial.begin(19200);
pinMode(13, OUTPUT);
}
int searchCard()
{
Serial.write(searchCMD, 5);
delay(100);
status = 0;
while(true) {
if (Serial.available() > 0) {
val = Serial.read();
switch (status) {
case 0: // parse 0xAA
if (val == 0xAA) status = 1;
break;
case 1: // parse 0xBB
if (val == 0xBB) status = 2;
else return -1;
break;
case 2:
if (val == 0x06) status = 3;
else return -1;
break;
case 3:
if (val == 0x20) status = 4;
else return -1;
break;
case 4:
case 5:
case 6:
case 7:
searchRES[status - 4] = val;
status ++;
break;
case 8:
return 0; // read successfully
break;
default:
return -1;
break;
}
}
}
}
void loop()
{
if (searchCard() != -1) {
if (searchRES[0] == 0x5E && searchRES[1] == 0x97 && searchRES[2] == 0x25 && searchRES[3] == 0xC7) {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
}
}
Item List:
1、13.56MHz UART / IIC / SPI RFID Module With External Antenna ×1
2、Non-Welded Commom Connector Module ×1
3、13.56MHz RFID Card ×1
4、13.56MHz RFID Key IC Tag - A ×1
5、Arduino I2C/COM Cable 30cm ×1
Document Download:
Click to download the UART datasheet
Click to download the SPI datasheet
Click here to download the SDK
Categories
Newsletter
Join our newsletter today, to get latest product information and promotion code.
Loading ...