Creatjet3D-Labsmunazirali4793
Published © GPL3+

Security System and Access Control with Arduino and RFID

RFID based acess control using arduino, an RFID reader emits a low level radio frequency magnetic field that energises the tag.

IntermediateFull instructions provided264
Security System and Access Control with Arduino and RFID

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
RFID reader (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Servos (Tower Pro MG996R)
×1

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)

Code

Security System and Access Control with Arduino and RFID

C/C++
Security System and Access Control with Arduino and RFID.RFID based acess control using arduino,an RFID reader emits a low level radio frequency magnetic field that energises the tag .
char tag[] ="180088F889E1"; 
char input[12];         
int count = 0;        
boolean flag = 0; 
void setup()  
{
  pinMode(2,OUTPUT); 
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  Serial.begin(9600);    

}
    void loop()
{
  digitalWrite(3,1);
  if(Serial.available())
  {
    count = 0;
  while(Serial.available() && count < 12)
    {
      input[count] = Serial.read(); 
      count++; 
      delay(5);
    }
    if(count == 12)
    {
      count =0;
      flag = 1;
      while(count<12 && flag !=0)  
      {
        if(tag[count]==input[count])
        flag = 1; 
        else
        flag= 0;
}
    if(flag == 1) 
    {
      digitalWrite(2,HIGH);
       digitalWrite(3,LOW);
      delay(5000);
      digitalWrite(2,LOW);
    }
     if(flag == 0)
      {
       for(int k =0; k<= 10; k++)
      {
        digitalWrite(4,HIGH);
      }
      }
    }
  }
}

Credits

Creatjet3D-Labs
7 projects • 23 followers
munazirali4793
8 projects • 20 followers

Comments