RFID – Radio Frequency Identification, has become part of everyday life, for example, with electronic vehicle tolling, door access control, public transport fare systems and so on.
RFID normally has two components: RFID key and RFID reader(sensor). In this project, we will use RFID reader to get the hidden ID from the key.
If Key ID does not match record, then RED LED will turn on, LCD shows “Card not recognized! contact admin”. In serial window(upright corner of Arduino IDE), you will see following information: “Card found – code: ** ** ** ** ** ” , ‘** ** ** ** **’ is 5-byte Hex ID of your key.
If the ID matches our record(security passed), make servo motor turn 180 degree(imitating door opening) and turn on the green LED and LCD screen show “ID Found!… Welcome X!”.
If the key Hex ID codes matches the any of the Hex ID array of user A,B,C (defined in line 25,26 27 in file RFID_Simples_V3_English.ino), system will consider the key is authorized ID card. So you can change the line 25, 26, 27 and make user A/B/C match your real key code( get from serial window) to test scenario of authorized Key situation.
2 . Devices used in this project
Arduino UNO R3 x 1 ；
Servo Motor x 1;
RFID key and receiver;
Buzzer x 1
220 ohm resistor x 2；
Red LED x 1；
Green LED x 1；
I2C LCD x 1；
Breadboard and jumper wires;
3) Circuit Connection：
Arduino/RFID sensor pin connection:
Arduino/LCD(i2c) pin connection:
Arduino/LED and Servo connection:
|Red LED long leg||D3|
|Green LED long leg||D2|
|servo signal(orange line)||D9|
|servo VCC(red line)||5v|
|servo GND(brown line)||GND|
Download Arduino Library code and library from following link http://kookye.com/driver/ArduinoRFID.rar
Unzip above file and you will see a folder called ArduinoRFID, enter into this folder, you will see a sub-folder “library”, this folder has libraries required by this project. Copy all these 5 folders in library into your Arduino IDE library folder(normally it should be in Arduino\library )
5)Run the project
Go to ArduinoRFID/RFID_Simples_V3_English folder and run RFID_Simples_V3_English.ino with your Arduino IDE
In IDE serial window, you will see following info:
Once you put a valid RFID key to sensor, you will see:
Servo will turn 180 green，buzzer will beep and green LED will turn on
You must be logged in to post a comment