EasyManua.ls Logo

Freenove RFID-RC522 User Manual

Freenove RFID-RC522
11 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
7
RFID www.freenove.com
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
rfid.halt(); // command the card to enter sleeping state
}
void ShowCardType(unsigned char * type)
{
Serial.print("Card type: ");
if (type[0] == 0x04 && type[1] == 0x00)
Serial.println("MFOne-S50");
else if (type[0] == 0x02 && type[1] == 0x00)
Serial.println("MFOne-S70");
else if (type[0] == 0x44 && type[1] == 0x00)
Serial.println("MF-UltraLight");
else if (type[0] == 0x08 && type[1] == 0x00)
Serial.println("MF-Pro");
else if (type[0] == 0x44 && type[1] == 0x03)
Serial.println("MF Desire");
else
Serial.println("Unknown");
}
After including the RFID library, we need to construct a RFID class object before using the function in RFID
library. Its constructor needs to be written to two pins, respectively to the SDA pin and the RST pin.
5
RFID rfid(10, 9);
In setup, initialize the serial port, SPI and RFID.
11
12
13
Serial.begin(9600);
SPI.begin();
rfid.init(); //initialization
In loop (), use .findCard () waiting for the card approaching. Once it detects card contact, this function will
return MI_OK and save the card type data in parameter str. Then enter the if statement.
20
if (rfid.findCard(PICC_REQIDL, str) == MI_OK) {
After entering if statement, call the sub function ShowCardType(). Then determine the type of the card
according to the content of STR and print the type out through the serial port.
23
ShowCardType(str);
Then use the.anticoll() to read UID of the card and use serial port to print it out.
25
26
27
28
29
30
31
32
33
if (rfid.anticoll(str) == MI_OK) {
Serial.print("The card's number is : ");
//Display card serial number
for (int i = 0; i < 4; i++) {
Serial.print(0x0F & (str[i] >> 4), HEX);
Serial.print(0x0F & str[i], HEX);
}
Serial.println("");
}
Question and Answer IconNeed help?

Do you have a question about the Freenove RFID-RC522 and is the answer not in the manual?

Freenove RFID-RC522 Specifications

General IconGeneral
ChipMFRC522
Operating Voltage3.3V
Communication InterfaceSPI
Operating Frequency13.56 MHz
Maximum Data Rate10 Mbit/s
Dimensions40mm x 60mm
Compatible PlatformsArduino, Raspberry Pi
Card Types SupportedMIFARE Ultralight, MIFARE Pro, MIFARE DESFire
Read RangeUp to 3 cm

Summary

Project 1 Read UID

Component List

Lists all hardware components required for the RFID project.

Circuit Knowledge

RFID Overview

Explains RFID technology, its systems, and product categories.

Component Knowledge

MFRC522 RFID Module

Details the MFRC522 module, its integration, and communication interface.

Mifare1 S50 Card Details

Card Structure

Explains the 1K byte capacity, sectors, and blocks of the Mifare1 S50 card.

Circuit Connection

Schematic Diagram

Visual representation of the RFID module and UNO board connections.

Hardware Connection

Practical wiring guide for connecting the RFID module to the UNO board.

Arduino Sketch

Sketch 1 - Read UID

Code example to read RFID card UID and display information via serial port.

FCC Statement

Radiation Exposure Statement

Details FCC radiation exposure limits and installation guidelines.

End Product Labeling

Requirements for labeling the final product with FCC ID.

Manual Information to End User

OEM integrator's responsibility for end-user manual content regarding the RF module.

Integration Instructions

Applicable FCC Rules

Lists the relevant FCC rules investigated for the modular transmitter.

RF Exposure Considerations

Addresses RF exposure limits for the equipment and installation distance.

Antenna Information

Details approved antenna types and their gain for the transmitter.

Label and Compliance Information

Specifies requirements for end-product labeling and FCC ID.

ISED Statement

ISED Modular Usage Statement

Guidance on labeling when the ISED certification number is not visible externally.