RFID BASED ACCESS CONTROL USING ARDUINO
RFID based Door Access Control is developed to build a security system
for a home/office to prevent the other persons to enter into the important
room/chamber by controlling radio frequency identification by checking a
suitable RFID card. The RFID tag gives the unique id whenever it reads
the card information. This id information is sent to the microcontroller to
check the correct card to take a security action. If the card id matches the
original information, it allows entering into the room, if not gives the buzzer
as an indication of the wrong person tried to enter into the room.
In the present system, there are no efficient methods for accurate
identifications, there are certain places where accuracy is important mainly in
banking, health care, and government sectors. This application will provide
RFID tag based system which uses a microcontroller. RFID is one of the
fast-growing technology all over the world for identifying and tracing goods.
This system can help hospitals to find expensive equipment in less time and
provide better services for patients. This technology is also widely used in
pharmaceuticals and logistics.
CIRCUIT DIAGRAM:
SOFTWARE:
Arduino IDE
Arduino is an open-source software and hardware company that is used for manufacturing or building Micro-Controllers or Micro-Controller kits for experimental or project purposes. It is an easily operated, easily coded device where this board design uses a variety of Micro-Processors or Micro-Controllers.
Here is the code that is used for the project to work:
int count = 0; //
count = 0
char input[12]; //
character array of size 12
boolean flag = 0; // flag
=0
void setup()
{
Serial.begin(9600); // begin
serial port with baud rate 9600bps
}
void loop()
{
if(Serial.available())
{
count = 0;
while(Serial.available()
&& count < 12) //
Read 12 characters and store them in input array
{
input[count] =
Serial.read();
count++;
delay(5);
}
Serial.print(input); // Print RFID tag
number
if((input[0] ^ input[2] ^
input[4] ^ input[6] ^ input[8] == input[10]) &&
(input[1] ^ input[3] ^
input[5] ^ input[7] ^ input[9] == input[11]))
Serial.println("No Error");
else
Serial.println("Error");
}
}
Comments
Post a Comment