Smart Lock Report 27
Smart Lock Report 27
UNO (REPORT)
INTRODUCTION:
An RFID Arduino Uno Smart Lock is a door locking system
that uses radio-frequency identification (RFID)
technology to authenticate and permit access to a
secured area e.g. door and it can also be used to take
attendance of students and many other things The
system consists of an RFID reader connected to an
Arduino board that reads the unique identifier of an RFID
tag presented to it and compares it to a list of authorized
tags or card. If the tag is authorized, the system triggers a
lock connected to the Arduino board to unlock, allowing
access to the secured area….
With its advanced authentication capabilities, the RFID
Arduino Uno Smart Lock ensures that only authorized
individuals with the proper RFID tags can gain entry. The
system is easy to install, configure, and use, making it an
ideal solution for various applications, including homes,
offices, and industrial settings.
METHODOLOGY/PROCEDURE:
1. Firstly, identify these components
Arduino UNO board
RFID module
LCD display
I2C module
Servo motor
#include <SPI.h>
#include <MFRC522.h>
#include <Servo.h>
#define RST_PIN 9
#define SS_PIN 10
byte readCard[4];
String MasterTag = "B62ADEE"; // REPLACE this Tag ID
with your Tag ID!!!
String SlaveTag = "D3E5A429";
String tagID = "";
int angle;
// Create instances
MFRC522 mfrc522(SS_PIN, RST_PIN);
Servo servo;
void setup()
{
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(servoPin, OUTPUT);
servo.attach(servoPin);
angle =0;
servo.write(angle);
// Initiating
SPI.begin(); // SPI bus
mfrc522.PCD_Init(); // MFRC522
Serial.begin(9600); // LCD screen
void loop()
{
digitalWrite(greenPin, LOW);
digitalWrite(redPin, LOW);
}
else
{
Serial.println(" Access Denied!");
digitalWrite(redPin, HIGH);
}
Serial.println(" ID : ");
Serial.println(tagID);
delay(1000);