You are on page 1of 3

MULTI LEVEL SECURITY BASED ACCESS CONTROL SYSTEM

AIM: The main aim of the project is to get the security for valuable things (devices).

BLOCK DIAGRAM:

4X4 MATRIX LCD


KEYPAD

AT89S52

SWITCH
24C08

GSM DC
MODULE DEVICE

REQUIREMENTS:
HARDWRAE REQUIREMENTS:
 AT89S52
 GSM
 LCD
 AT24C08
 SWITCH
 4X4 KEYPAD
 DC DEVICE(LED or DC MOTOR(OPTIONAL))
 SERIAL ISP (For chip Programming)
SOFTWARE REQUIREMENTS:
 EMBEDDED C – PROGRAMMING
 KEIL-C COMPILER
EXPLANATION OF EACH BLOCK RESPONSIBILITY:
Note:
Refer to data sheets where necessary for required details during
implementation.
GSM MODULE (M660A):
GSM (M660A): In this application GSM is used for sending the SMS to the user.
M660A is a compact wireless GSM/GPRS module that supports downlink EDGE. It can
provide functions of high-quality voice, SMS, and data services and is widely used in industrial and
consumer fields. Neoway M660A module adopts 68-pin LCC encapsulation and its dimensions are
24 mm x 24 mm x 2.6 mm, which can meet most customers' requirements. It provides customers
the following hardware resources and features:
 UART interfaces, used for data communication, firmware updating and commissioning, and
supporting hardware flow control
 Audio interfaces, including one line of MIC input (differential) and one line of receiver
output (differential)
  10-bit ADC input, voltage ranging from 0 V to 2.8 V
  One line of SIM card interface, compatible with 1.8 V and 3.0V SIM card
  RING/LIGHT/DTR (sleep mode) functions
  Time updating and timing power-on/off
 Firmware updating via USB interface
LCD: It is used for display the step by step process, succuss or failure conditions of the process.
Keypad (4x4 matrix)
It is an input device consists of 16 switches arranged in a matrix format to reduce the port
pin usage. It is used for enter password and otp from user side.
AT24C08: In this application EEPROM is used for saving the password of the user.
The AT24C01A/02/04/08/16 provides 1024/2048/4096/8192/16384 bits of serial electrically
erasable and programmable read-only memory (EEPROM) organized as 128/256/512/1024/2048
words of 8 bits each. The device is optimized for use in many industrial and commercial
applications where low-power and low-voltage operation are essential.

Steps to be followed to complete your project:


 Create New Folder in your server save that folder with your project name
 Copy what you done files
 lcd.c, lcd.h, delay,c, delay.h, uart.c, uart.h, keypad.c, keypad.h, i2c.c and i2c.h into project
folder.
 Individually can check each and every module.
 First check lcd to display character constant, string constant and integer constant.
 Next check keypad peripheral by displaying key values on LCD.
 Next write n bytes into EEPROM and read that n number of bytes from EEPROM and
display on LCD.
Note: Use BYTE WRITE and BYTE READ functions or PAGE WRITE and PAGE READ
functions
 Next check uart peripheral by transmitting character constant, string constant and receive
string constant using hyper terminal.
 Check GSM Module with AT commands on hyperterminal.
 If above steps are completed create new file with projectmain.c, add all peripheral definition
files, and write below steps in projectmain.c file
 In External Interrupt0 ISR write function to Edit password
 Edit Password function has to be defined by calling keypad functions, store that key values
in an array, make it as a string constant by ending last position with null character and write
that password into EEPROM in specified memory locations.
 Write that array values into EEPROM in specified memory locations.
 And inside main initialize all peripherals
 Enter Password by using keypad function. Enter Key values store into one array; make it as
a string constant.
 Read password from EEPROM and store into one array; make it as a string constant.
 Now compare both string constants, if condition is true generate OTP using rand and srand
functions, send that OTP to particular mobile number through GSM module.
 Enter that OTP using Keypad function.
 Compare generated OTP and given OTP which is given from keypad.
 If both are same on DC device.
 Else it should be off.
 If Condition is failed for password comparison display related msg on LCD like wrong
password.
 Again start continuation task up to 3 times to access password.
 If condition is failed up to 3 times stop the execution by displaying message “SYSTEM IS
BLOCKED” on LCD.
 If you’re getting this output then your project is completed.
********************************ALL THE BEST **********************************

You might also like