19ECE181-Electronics System Lab
19ECE181-Electronics System Lab
19ECE181-Electronics System Lab
JUNE|2023
JUNE-2023
AMRITA VISHWA VIDYAPEETHAM
AMRITA SCHOOL OF ENGINEERING, BENGALURU, 560035
1
ES PROJECT REPORT
Index
SI.NO TOPIC Page no
1 Aim 3
2 Components required 3
3 Detailing of components 3
4 Arduino Code 6
5 GUI Code 10
6 Circuit diagram 12
7 Result & inference 13
2
ES PROJECT REPORT
Aim:
To make security wakeup call for lock system. Using RFID, Keypad (4x4)
and Sim module 800L.
Components required:
Keypad (3x4)
Sim module 800L
RFID kit
Arduino UNO board
Jumper wires
Antenna
buzzer
Keypad(3x4)
The Arduino UNO can be used to interface with a 3x4 matrix keypad, which allows you to
input values or commands into your Arduino project. The keypad consists of 12 buttons
arranged in a 3x4 grid.
3
ES PROJECT REPORT
The "SIM800L" is a popular GSM/GPRS module commonly used with Arduino and other
microcontrollers for wireless communication.
It allows you to add cellular connectivity to your projects, enabling them to send and receive
SMS messages, make phone calls, and access the internet.
Communication Standards: It supports GSM (2G) and GPRS (2.5G) networks, operating in the
frequency ranges of 850/900/1800/1900 MHz.
SIM Card Slot: It has a SIM card slot where you insert a valid GSM SIM card to establish a
cellular connection.
I/O Pins: SIM800L has several General Purpose Input/Output (GPIO) pins that can be used to
interface with external devices or sensors.
When using the SIM800L module with Arduino, you typically connect the module's TX and
RX pins to the corresponding digital pins on the Arduino board.
Antenna:
The module requires an external antenna for reliable signal reception and transmission. An
appropriate GSM antenna should be connected to the module.
RFID KIT:
RFID module, and various components to facilitate RFID-based projects. The RFID module is
used to communicate with RFID tags and read their unique identification numbers.
RFID Module: The RFID module is the core component of the kit. It consists of an RFID reader
that communicates with RFID tags using radio frequency signals. The module may have built-in
antennas or require an external antenna.
4
ES PROJECT REPORT
RFID Tags: The kit typically contains a few RFID tags. These tags are small electronic devices
that store unique identification numbers. They can be attached to objects or embedded within
them for identification purposes.
JUMPER WIRES:
Jumper wires are commonly used in electronics projects, including those involving Arduino
microcontrollers. They are used to establish connections between different components on a
breadboard or to connect components directly to an Arduino board.
Arduino UNO:
The Arduino Uno is a popular microcontroller board based on the ATmega328P
microcontroller. It is widely used in various electronics projects and prototyping due to its
simplicity and versatility.
as PWM (Pulse Width Modulation) outputs. It also has 6 analog input pins for reading analog
sensor values.
Programming: The Arduino Uno can be programmed using the Arduino programming
language, which is a simplified version of C/C++. You can write your code using the Arduino
IDE (Integrated Development Environment) and upload it to the board via a USB connection.
Buzzer:
An Arduino Buzzer is basically a beeper. The Arduino buzzer is a device that produces sound
when an electric current is passed through it. The Arduino buzzer can be directly connected to
the Arduino and produce different tones by giving different frequency electric pulses to the
buzzer.
Arduino Code:
// Include required libraries
#include <MFRC522.h>
#include <Keypad.h>
#include <SoftwareSerial.h>
#include <SPI.h>
6
ES PROJECT REPORT
char initial_password[4] = {'1', '2', '4', '4'}; // Variable to store initial password
String tagUID = "43 FF 5C A6"; // String to store UID of tag. Change it with your tag's UID
uint8_t count=0;
uint8_t count_1=0;
char hexaKeys[rows][columns] = {
{'1', '2', '3', }, {'4', '5', '6', }, {'7', '8', '9', }, {'*', '0', '#', }
};
void setup()
{Serial.begin(9600);
delay(100);
7
ES PROJECT REPORT
SIM800L.begin(19200);
void loop() {
while(SIM800L.available())
{ Serial.println(SIM800L.readString());
} if (NormalMode == false) {
if (RFIDMode == true) {
delay(1500);
delay(1500);
if ( ! mfrc522.PICC_IsNewCardPresent()) {
return;
if ( ! mfrc522.PICC_ReadCardSerial()) {
return;
tag.concat(String(mfrc522.uid.uidByte[j], HEX)); }
tag.toUpperCase();
8
ES PROJECT REPORT
{ // If UID of lcd.clear();
Serial.println("Tag Matched");
delay(3000);
Serial.println("Enter Password:");
count=0;
} else
Serial.println("Access Denied");
delay(3000);
count=count+1;
if (RFIDMode == false) {
if (key_pressed)
Serial.print("*");
{ delay(200);
{ Serial.println("Pass Accepted");
delay(3000);
count_1=0;
i = 0;
{ count_1=count_1+1;
Serial.println("Wrong Password");
delay(3000);
i = 0;
}}} }
if(count>1){
Serial.println("Limit is completed.");
Serial.println ("ATD+918886877566;\r\n");
SIM800L.println ("ATD+918886877566;\r\n");
delay(20000);
count=0;
}if(count_1>1){
Serial.println("Limit is completed.");
Serial.println ("ATD+918886877566;\r\n");
SIM800L.println ("ATD+918886877566;\r\n");
delay(20000);
count_1=0;
}}
GUI Code:
import processing.serial.*;
PFont f;
Serial myPort;
String val;
void setup(){
10
ES PROJECT REPORT
println(Serial.list());
size(500,500);
f= createFont("Arial Black",24,true);
void draw(){
val=myPort.readStringUntil('\n');
background(50,50,0);
textFont(f,24);
text(val,70,140);
println(val);
11
ES PROJECT REPORT
Circuit Diagram:
12
ES PROJECT REPORT
13
ES PROJECT REPORT
If in case of two or more continuous and discontinuous wrong passwords have been entered by
the user by using keypad ,then the Arduino UNO interfaces with the sim module 800L and later
the user gets a call regarding the wrong attempts.
Similarly, if a person tries to enter or unlock the door using RFID tag, in case of two or
unsuccessful attempts, the RFID module interfaces with the Arduino UNO and makes the call
to the user regarding the unsuccessful attempts.
The main motto of this experiment is to enhance safety and security and keep updating the user
in case of any burglar activity took place.
For sim module 800L , which we are using is having less accuracy.
14