0% found this document useful (0 votes)
3 views3 pages

Arduino RFID Door Lock System Guide

Uploaded by

shweta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Arduino RFID Door Lock System Guide

Uploaded by

shweta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

#include <SPI.

h>
#include <MFRC522.h>
#include <Servo.h>

#define SS_PIN 10
#define RST_PIN 9

#define SERVO_PIN 3
Servo myservo;

#define ACCESS_DELAY 2000


#define DENIED_DELAY 1000
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.

void setup()
{
[Link](9600); // Initiate a serial communication
[Link](); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522

[Link](SERVO_PIN);
[Link]( 70 );
delay(7500);
[Link]( 0 );
[Link]("Put your card to the reader...");
[Link]();

}
void loop()
{
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
//Show UID on serial monitor
[Link]("UID tag :");
String content= "";
byte letter;
for (byte i = 0; i < [Link]; i++)
{
[Link]([Link][i] < 0x10 ? " 0" : " ");
[Link]([Link][i], HEX);
[Link](String([Link][i] < 0x10 ? " 0" : " "));
[Link](String([Link][i], HEX));
}
[Link]();
[Link]("Message : ");
[Link]();
if ([Link](1) == "69 C8 E2 2A") //change here the UID of the card
{
[Link]("Authorized access");
[Link]();
[Link]( 70 );
delay(7500);
[Link]( 0 );

else {
[Link](" Access denied");

delay(DENIED_DELAY);

}
}

[Link]
srsltid=AfmBOorq5JI9xAYdYtGB0Ool5ZEvIDNQT9C0sVhD9RmgBKQNlq7qi_dw

components required

 Arduino UNO board x 1


 RFID module x 1
 Servo motor x 1
 Door lock x 1
 Foamboard
 Jumper wires
working:

When powering this door lock, the servo motor activates and pushes the door lock forward.
When the RFID tag is moved closer to the RFID reader, it is scanned. Then, if the RFID tag
is correct, the servo motor is activated and the door lock is pulled back. When the RFID tag is
moved closer to the RFID reader again, if it gets the correct tag, the servo motor will push the
lock forward. If a wrong RFID tag is used according to the program.

conclusion :

Smart Door Lock system has a wide range of application. Specially in prohibited areas like
workplaces, banks, malls, worker rooms, labs and homes. This paper explains how to control
house safety for digital homes, specifically door key locks. As a prototype for an inside and
outside key lock system, we use a solenoid door lock system. It also provides security and
convenience.

You might also like