RFID ACCESS CONTROL SYSTEM
ARDUINO:THE MAGIC BOARD
RFID access control system
RFID stands for Radio Frequency Identification, quite simply it is used to identify who the person is. Like each person has a unique fingerprint a person can be assigned with a RFID code for identification.
We can compare n RFID code to a Barcode,But the barcode is far too simple and easy to replicate, With the information known one can replicate the barcode quite easily.
HOW RFID WORKS:
In this post i wont be going into the details of how RFID works, Keeping it simple we ca say that an RFID card,chip or sticker can be coded with re-writable information that an RFID reader module can pick up, this can be used for identifying the card or chip
For a more detailed understanding check out this youtube Video it explains it all
THE ACCESS CONTROL SYSTEM:
Here we are going to use these RFID cards to create an access control system for an office or home, It is much cheaper than other market products and provides same level of security.
THE HARDWARE:
1. ARDUINO BOARD
2. RFID READER MODULE
3. RFID CARDS/CHIPS
4. SERVO MOTORS
5. CABLES(as required)
The steps can be elaborated as follows:
Wiring it UP:
Now lets start with simply connecting the reader module to the arduino, Folow the schematics below:
We will start of simply by reading some tags and go in for further attachments like LCD screens later, Lets read some taggd
READING A TAG:
char val = 0; // variable to store the data from the serial port
void setup() {
Serial.begin(9600); // connect to the serial port
}
void loop () {
// read the serial port
if(Serial.available() > 0) {
val = Serial.read();
Serial.print(val, BYTE);
}
}
void setup() {
Serial.begin(9600); // connect to the serial port
}
void loop () {
// read the serial port
if(Serial.available() > 0) {
val = Serial.read();
Serial.print(val, BYTE);
}
}
We will use the above code to test. Copy it and paste it o to the infinity compiler and upload it onto the arduino. Open the serial monitor and scan the rfid card using the reader , if everything is right then you will see the value of the card appearing on the serial screen as output
Once you have mastered this it is fairly easy to create an access control system, If you are familiar with programming one can easily alter the code by adding an if condition to grant access when the Tag is the right one.
That is put an if condition stating that for eg:
If(val=2900940E9528)
println("ACCESS GRANTED");
else
println("ACCESS DENIED");
This is just an example, The possibilities are endless we can then attach codes for driving an arduino motor to open the door when the right tag is used. We can also connect an LCD display to print the information rather than connecting the entire setup o a pc and using a serial monitor in the compiler.
For instructions on connecting and using LCD screens check out my other tutorials.
The instructions for the complete access control system with LCD display and servo motors will be uploaded soon.
Check out these videos for further information on this project:
You can check out my source code below but note that the code contains lines for an LCD display omit them if you do not have an LCD display the rest of the code would work just fine, MAKE SURE TO CHANGE THE TAG NUMBERS , and enter your once .Click on the link below to download the source code.
Please leave your questions and suggestions in the comments section and stay tuned for more updates and projects using the Magic Board
Comments
Post a Comment