[go: up one dir, main page]

0% found this document useful (0 votes)
10 views12 pages

Smart Lock Report 27

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)
10 views12 pages

Smart Lock Report 27

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
You are on page 1/ 12

RFID SMART LOCK PROJECT - ADRUINO

UNO (REPORT)

GROUP NAME: GROUP 27


PROJECT: ADRUINO UNO RFID (SMART LOCK) DESIGN
COURSE: ENGINEERING DRAWING (MEG 214)

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

AND OTHERS LIKE JUMPER WIRES, LED LIGHT,


BUZEER
2. connect all the components to the Arduino Uno
board and connect it to the breadboard in series
3. create a program to read the RFID tags and card to be
authorized
4. then, turn on the serial monitor and bring the RFID tag
closer to the RFID reader to can the card and tags
5. create a code and add library for servo and sensor
6. select a board and port to upload this code to the Arduino
Uno board
7. write a new code on how the servo would respond to the
sensor
8. upload it to the Arduino Uno
9. open the serial monitor and start scanning the card the
card that is registered to the code would be granted
access else access would be denied
once the authenticity of the card has been confirmed by the
RFID reader, the Arduino Uno microcontroller will utilize the
obtained data to initiate the lock.
THE CODE USED IN THE DEVELOPMENT OF THE
SMARTDOOR LOCK

#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 = "";

const int redPin = 5;


const int greenPin = 4;
const int servoPin = 2;

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

Serial.println(" Access Control ");


Serial.println("Scan Your Card>>");
}

void loop()
{
digitalWrite(greenPin, LOW);
digitalWrite(redPin, LOW);

//Wait until new tag is available


while (getID())
{

if (tagID == MasterTag | tagID == SlaveTag)


{

Serial.println(" Access Granted!");


// You can write any code here like opening doors, switching
on a relay, lighting up an LED, or anything else you can think
of.
digitalWrite(greenPin, HIGH);
if (angle == 0){
angle = 90;
servo.write(angle);
}
else{
angle = 0;
servo.write(angle);
}

}
else
{
Serial.println(" Access Denied!");
digitalWrite(redPin, HIGH);
}

Serial.println(" ID : ");
Serial.println(tagID);

delay(1000);

Serial.println(" Access Control ");


Serial.println("Scan Your Card>>");
}
}

//Read new tag if available


boolean getID()
{
// Getting ready for Reading PICCs
if ( ! mfrc522.PICC_IsNewCardPresent()) { //If a new PICC
placed to RFID reader continue
return false;
}
if ( ! mfrc522.PICC_ReadCardSerial()) { //Since a PICC placed
get Serial and continue
return false;
}
tagID = "";
for ( uint8_t i = 0; i < 4; i++) { // The MIFARE PICCs that we
use have 4 byte UID
//readCard[i] = mfrc522.uid.uidByte[i];
tagID.concat(String(mfrc522.uid.uidByte[i], HEX)); // Adds the
4 bytes in a single String variable
}
tagID.toUpperCase();
mfrc522.PICC_HaltA(); // Stop reading
return true;
}
THE ABOVE IS THE CONNECTION OF THE
SMARTDOORLOCK
THE BELOW IS THE FREECAD ANIMATION OF THE
DOORLOCK.
CONCLUSION:
In summary, the smart lock RFID project, built
around the Arduino Uno, represents an ingenious and
secure approach to access control. By seamlessly
integrating RFID technology with the Arduino platform,
we’ve crafted a system that not only streamlines
convenience but also enhances security.
The system’s ability to authenticate users through RFID
tags ensures that only authorized individuals gain entry,
providing an additional layer of confidence. The Arduino
Uno’s versatility and user-friendly design make it an
ideal foundation for this project, allowing for easy
customization and scalability.
Beyond its immediate application, the smart lock RFID
system holds promise across diverse contexts—homes,
offices, and industrial facilities. Its potential to elevate
security protocols while simplifying daily routines
underscores its significance.
In essence, this project exemplifies the power of
combining RFID technology with the Arduino Uno,
resulting in a smart and reliable access control solution.

You might also like