0% found this document useful (0 votes)
86 views

Rahul Automation Project Report

This document discusses existing locker systems and proposes a new digital locker system with improved security features. It begins with an introduction on the importance of securely storing personal belongings. It then outlines problems with current manual locker systems such as human error and theft risks. The proposed system aims to provide a more efficient, secure and user-friendly digital locker system using technologies like GSM and LCD screens. It discusses extracting distinguishing facial features for recognition purposes and reducing high-dimensional face images. Overall, the document proposes developing an automated digital locker system with multiple security layers to securely store customer belongings.

Uploaded by

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

Rahul Automation Project Report

This document discusses existing locker systems and proposes a new digital locker system with improved security features. It begins with an introduction on the importance of securely storing personal belongings. It then outlines problems with current manual locker systems such as human error and theft risks. The proposed system aims to provide a more efficient, secure and user-friendly digital locker system using technologies like GSM and LCD screens. It discusses extracting distinguishing facial features for recognition purposes and reducing high-dimensional face images. Overall, the document proposes developing an automated digital locker system with multiple security layers to securely store customer belongings.

Uploaded by

Umesh K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

1.

INTRODUCTION

Face is one of the most important visual objects in our life which playing a major role in
conveying identity and emotion and includes rich information. Face recognition is a huge research
area in computer vision, pattern recognition and plays a vital role in the applications of image analysis
and understanding. Face recognition commonly includes feature extraction, feature reduction and
recognition or classification. Feature extraction is to find the most representative description of the
faces, making them can be most easily distinguished from others. Face reduction is to not only
decompose and compress the original features but also not destroy the most important information.
Recognition or classification is to choose the available measure method such as Euclidean distance,
which is used to classify the feature of images present in the database and test image. Because the face
image is often with a high dimension, it is difficult to use the original data directly, so it is critical to
choose the effectively distinguished features for extraction and reduction.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 1
2. PROBLEM STATEMENT

Nowadays everyplace is digitalized and secure with electronics devices, But until In the big malls
shopping complex, temples and beaches are not secure with digitalize locker. At this place one guard
is assign who issued the ticket or token after keeping the bag in shelf because of interruption of human
being they may be displaced or may be chances of stolen the thing by the guard. It maybe provides
wrong person access the things.
To overcome the all such difficulties and to facilitate automation in locker systems and to reduce
problem associated with baggage system, digital locker are comes in the market. Which is used user
defined security with the GSM and LCD to become user friendly device.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 2
3. AIM AND OBJECTIVES

1. To provide the customers with a efficient locker system.


2. To present a security locker system in market cheaper and more secure to store the user’s
belonging’s
3. To provide a user friendly GUI for the locker.
4. To improve the present locker scenario this is very elementary and uses manpower as a driving
force.
5. Making the customers feel safe about their possessions in the safes.
6. To improve the security with an automated system having multiple security

PES’s Modern College of Engineering


Department of Electrical Engineering Page 3
4. EXISTING SYSTEM AND PROPOSED SYSTEM

a. EXISTING SYSTEM:

While using bank we use our locker key for our banking. Biometric accessing system is not involved
in the current banking process. In the previous implementation RFID Card technologies are used for
authentication and password pin verification also used but these are all may give a chance for robbery.
More level of authentication is needed. CCTV camera systems are used but this kind of system won’t
give instant alert to the particulars.

b. PROPOSED SYSTEM:

Nowadays we are using locker key for banking though they are secured there are some disadvantages
.It maybe provide wrong person access the account. This system is secure and less cost it will be a best
banking system. So Our system Provides multilevel security.
When power supply is ON LCD displays “locker is available” Enter password if password is correct
then send sms like your things are secured. After that display message on LCD “locker is unavailable”
.If password getting wrong then buzzer will beep. After completion of process GSM send sms like
thank for using our service.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 4
5. LITERATURE SURVEY

The papers regarding the security system of the locker system presents the latest information.

1. “GSM Based Digital Door Lock Security System” This paper discusses the design and
implementation of a GSM based digital door lock security system using PIC platform. A 5-
digit password was used to lock/unlock the doors by employing a gear motor. Three
consecutive unsuccessful attempts in entering the correct password results in sending a
warning message, was sent to preset mobile numbers, as a means of detecting unauthorized
intrusion.
2. Using the idea of the paper mentioned above we can design a locker system for public use in
malls, beaches, at parking lots, etc. also these locker systems can be used by other people who
are not at the same venue.
3. Nowadays security is the major service that needs to be provided and which is in demand. This
project can be applied in public places to secure the belongings of the people from theft.
4. Secure Retrieval – consumer retrieval can be via pin number or barcode transmitted by email
or text message. Lockers can be rented and opened from a local kiosk or opened with a
configurable PIN keypad on each locker.
5. Payment Options – locker rental payments can be integrated with retail Point of Sale (POS)
systems, paid for by credit card or cash on a local locker kiosk, or purchased for in advance
with online reservation systems.
6. Remote Monitoring – locker rental data can be analyzed online, showing peak demand and
locker location and size usage. Full remote support to troubleshoot and gather real time data.
7. Electronic notification – consumers can receive remote notification of locker status and
notification of shipment arrival, offering them personalized secure pickup from various
designated locations.

1.Enhancing Security of Locker System Using Secret Sharing Scheme Based on Random Grids
Author : KapilTajane, Sonali Patil, Rahul Pitale and MayurTajane
Now a day’s security plays key role in every manner. As every system is becoming automated security
is must. In today’s worldwide computer network environment exact and secure data transmission is
very much essential. In this paper, a new approach is proposed to improve the security of banking
locker system. This system will enhance the security of automated banking locker system using visual
cryptography. Visual Cryptography (VC) is a secret sharing scheme where a secret image is encrypted

PES’s Modern College of Engineering


Department of Electrical Engineering Page 5
into the number of shares which independently unable to disclose information about the original secret
image. The proposed system uses random grids based VC. The advantage of this scheme is no pixel
expansion inreconstructed image and no need of a codebook. The proposed scheme enhances the
security of banking locker system by distributing the secret between customer and bank employee and
reduces the space complexity of database.

2. Smart Banking Security System Using Pattern Analyzer

Author : P. Sugapriya, K. Amsavalli

Security and Authentication of individuals is necessary for our daily lives especially in Bank
lockers.But the security provided with bank systems has some back-doors. It has been improved by
using techniques like pattern recognition comparing these existing traits, there is still need for
considerable computer vision. Pattern recognition is a particular type of biometric system that can be
used to reliably identify a person uniquely by analyzing the patterns found in OPEN CV image
processing is used in this security system to authenticate user. In this system a new approach is
provided for banking system. Initially pattern flow are collected as datasets and maintained in bank
agent server. The machine has a camera to capture the pattern flow of user and sent for processing
features of the logic were compared and user where recognized. In addition to the authentication of
user there is another system to identify the user before that RFID tad checking is needed. Image
processing is used and keypad password is needed for another level of security. In future bank can
implement this type of authentication option for banking and from this project shows that all the bank
accounts can be accessed without using cards through this face recognition efficiently and safely.

3.Fingerprint based bank locker system usingmicrocontroller


Author : Pavithra.B.C, Myna.B.C, Kavyashree.M
The main aim of the paper is to design and implement the Fingerprint based bank locker system using
microcontroller. Biometrics studies commonly include fingerprint, face, iris, voice, signature, and
hand geometry recognition and verification. Many other modalities are in various stages of
development and assessment. Among these available biometric traits finger Print proves to be one of
the best traits providing good mismatch ratio and also reliable. The present scenario to operate a bank
locker is with locks which are having keys. This does not provide good security to our lockers. To
provide perfect security to the bank lockers and to make the work easier, this project is taking help of
two different technologies viz. EMBEDDED SYSTEMS and BIOMETRICS.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 6
4.Intellectual Bank Safekeeping System
Author : Joshua Bapu.J,S.R.Aryalekshmi,S.Deepika,G.Kezia,P.MariaJothi Jenifer

Bank security is important for a number of reasons; one of those reasons includes providing secure
bankingfor clients and protecting the bank from fraudulent behavior. The main aim of this project is to
design a security systemthat provide efficient way of security for banks, by means of an advanced
door lock system. It is used in the fields wheresecurity and secrecy is the primary constraint. The main
objective is to design digital code lock which is used to reducemanual interference to the maximum
extent along with the ultrasonic motion sensor. Here users are given with separatepasswords by means
of GSM, when they use their RF-IDS. If any of the users want to open the door or locker then heneeds
to enter his password in the system correctly, then the system sends a message to the user
automatically. Thismessage is sent through a G S M Modem. By this System we provide advanced
Security in Banks.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 7
6. LOCKER USAGE PATTERNS

 Hourly customer – guests at an indoor trampoline park rent time on the trampolines in 45
minute blocks. Shoes must be removed by guests so storage is required for these and other
personal effects like wallets and cell phones. An electronic locker solution accepting credit
cards and cash provides 1 hour rentals to guests, streamlining the process and improving guest
satisfaction with no input from facility employees.

 Daily customer – guests at a premium water park rent lockers by the day during their season.
The water park makes different size lockers available each one priced differently, the option
for variable pricing is also inbuilt to cover peak demand periods. With over 400 lockers and 3
kiosks the lockers have individual keypads, this means that guests only interact with the kiosk
once at the initial rental. Multiple locker openings through the day are initiated directly from
the locker improving throughput.

 Multi Day customer – visitors to a ski lodge reserve accommodations, lift passes and
equipment online. At the same time the visitor can rent an intelligent stainless steel equipment
locker as an added benefit. The ski equipment is placed in the locker by lodge staff prior to
visitor arrival and the guest is emaiLCD the details along with the booking confirmation of
locker location and PIN unlock instructions.

 Event Visitors – at a company convention visitor’s use their attendee badge scanned into a
kiosk and are allocated an electronic locker for their use during the event. The locker system is
fully branded for the event organizer and on the first day welcome information and
personalized gift packs are waiting inside. The event visitor experience is greatly enhanced
with the availability of these convention lockers.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 8
7. METHODOLOGY
The working of the Security &system automation involves:

1. Interface with keyboard :


Consists of 16 keys .0-9 ,# ,* keys.
This keyboard is used for input the password.

2. Processing
Atmega 328 microcontroller

3. Storage
EEPROM Memory is used to store the password.

4. In this project, we have used EEPROM in the Arduino to store the password in it. The default
password stored in it will be ‘1234’.

5. When we enter a password, it will match it with the password stored in the Arduino EEPROM.
If it is correct, then it will show ‘Passkey Accepted’ and the push pull solenoid will come in
low state (Door Unlocked). If the password is wrong, then it will show ‘Access Denied’.
During this condition the buzzer will start beeping and the push pull solenoid will remain in the
high state (Door Locked).

6. The buzzer will also beep once when any key is pressed.
7. We have to press ‘#’. When we press ‘#’, it will ask for current passkey

PES’s Modern College of Engineering


Department of Electrical Engineering Page 9
7.1. FLOW CHART:

Fig.1. Flow chart

PES’s Modern College of Engineering


Department of Electrical Engineering Page 10
Flowchart process and conditions:

1. Initially Process start.


2. LCD displays the status.
3. Is it engaged or not? .i.e. available or not.
4. Cond.1 locker is not available.
5. It will ask for the password.
6. After the entering password there is two situations.
7. 1st password is matched and 2nd password is not matched.
8. If password is matched. It will send the command to operate the motor and change the position
of the lock.
9. If password is not matched then it will again ask the password to enter .
10. If maximum three attempt is finished. It will ask for the master password .
11. Cond2. If the locker is available.
12. Set the password.
13. After setting the password it will operate the lock and motor.
14. Close the locker.
15. Show the status as not available.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 11
8. COMPONENT CONNECTION

Fig.2. Components Connections

First of all, we will make the connection to the 4×4 Keypad. For connecting the keypad with
the Arduino we are using both analog and digital pins. We used analog pins since we need more that
14 digitals pins for this project. If you are using Arduino Mega, then there is no need to use analog
pins. Connect first six pins of keypad to analog pins A0 ~ A5 of Arduino and remaining two to digital
pins 3 and 2.

To connect the push pull solenoid with the Arduino, we will have to use external power
because it requires 6 ~ 12V to operate and much more current than the Arduino can provide. So to do
that, we will use TIP120 NPN transistor as a switch/driver and a DC power source which can provide
6 ~ 12V. The NPN transistor will switch ON when we will give HIGH to its base. So, connect its first
pin (which is the base pin) to the pin 11 through to a 1KΩ resistor, second pin (which is the collector
pin) to the negative wire of push pull solenoid and third pin (which is the emitter pin) to the ground.
Now connect the positive of power supply to the positive wire of solenoid and the negative of power
supply to the ground.

Now connect the positive wire of buzzer to the pin 10 of Arduino and negative wire to the ground.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 12
Now we will connect the 16×2 LCD to the Arduino.

 Connect pin 1 (VEE) to the ground.


 Connect pin 2 (VDD or VCC) to the 5V of the Arduino.
 Connect pin 3 (V0) to the middle pin of the 10KΩ potentiometer and connect the other two
ends of the potentiometer to VCC and GND. The potentiometer is used to control the contrast
of the LCD.
 Connect pin 4 (RS) to the pin 9 of the Arduino. This is Register Select pin used to select a
particular register in the LCD driver, which is handLCD by the LCD library.
 Connect pin 5 (Read/Write) to the ground of Arduino. This pin is not often used so we will
connect it to the ground as we are only writing data to LCD.
 Connect pin 6 (E) to the pin 8 of the Arduino. It is used indicate a valid data or command in the
following data pins.
 The following four pins are data pins which are used to send data or commands to the LCD.
o Connect pin 11 (D4) to pin 7 of Arduino.
o Connect pin 12 (D5) to pin 6 of Arduino.
o Connect pin 13 (D6) to pin 5 of Arduino.
o Connect pin 14 (D7) to pin 4 of Arduino.
 Connect pin 15 to the VCC through the 220-ohm resistor. By changing this resistor value, we
can change the backlight LCD brightness. Larger values will make the back light much darker.
 Connect pin 16 to the Ground

PES’s Modern College of Engineering


Department of Electrical Engineering Page 13
9. BLOCK DIAGRAM

Contrast

LCD
A
KEYPAD
R

U L293D
MOTOR
I DRIVER DC MOTOR

N GSM
O MODULE

U RELAY DOOR
MODULE
N LOCK

Fig.3. Block diagram of system

PES’s Modern College of Engineering


Department of Electrical Engineering Page 14
POWER SUPPLY

POWER SUPPLY

Fig.4. Power supply diagram

PES’s Modern College of Engineering


Department of Electrical Engineering Page 15
10. HARDWARE REQUIREMENT

 ARDUINO UNO
 DC MOTOR
 KEYPAD
 POWER SUPLLY
 DOOR LOCK
 LCD DISPLAY
 GSM MODULE
 L293D MOTOR DRIVER

PES’s Modern College of Engineering


Department of Electrical Engineering Page 16
10.1. Arduino UNO:

The Arduino Uno is a microcontroller board based on the ATmega328


(datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog
inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset
button. It contains everything needed to support the microcontroller; simply connect it to a computer
with a USB cable or power it with a AC-to-DC adapter or battery to get started. The Uno differs from
all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the
Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial converter.

Table no.1. Rating of Arduino

MicrocontrollerATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) of which 0.5 KB used by
bootloader
RAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz

PES’s Modern College of Engineering


Department of Electrical Engineering Page 17
Fig.5. Arduino

The Arduino Uno can be powered via the USB connection or with an external power supply.
The power source is selected automatically. External (non-USB) power can come either from an AC-
to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-
positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin
headers of the POWER connector. The board can operate on an external supply of 6 to 20 volts. If
supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be
unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The
recommended range is 7 to 12 volts.

The power pins are as follows:


Vin. The input voltage to the Arduino board when it's using an external power source (as opposed to 5
volts from the USB connection or other regulated power source). You can supply voltage through this
pin, or, if supplying voltage via the power jack, access it through this pin.

5V. The regulated power supply used to power the microcontroller and other components on the
board. This can come either from VIN via an on-board regulator, or be supplied by USB or another
regulated 5V supply.

3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.

GND. Ground pins.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 18
Each of the 14 digital pins on the Uno can be used as an input or output, using pinMode(),
digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin can provide or receive a
maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In
addition, some pins have specialized functions:

Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are
connected to the corresponding pins of the ATmega8U2 USB-to-TTL Serial chip.

External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a
rising or falling edge, or a change in value. See the attach Interrupt() function for details.

PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function. • SPI: 10
(SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although
provided by the underlying hardware, is not currently included in the Arduino language. •

LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is
on, when the pin is LOW, it's off.

The Uno has 6 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values).
By default they measure from ground to 5 volts, though is it possible to change the upper end of their
range using the AREF pin and the analogReference() function. Additionally, some pins have
specialized functionality: • I 2C: 4 (SDA) and 5 (SCL). Support I2C (TWI) communication using the
Wire library. There are a couple of other pins on the board:

AREF. Reference voltage for the analog inputs. Used with analogReference(). • Reset. Bring this line
LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one
on the board.

The Arduino Uno has a number of facilities for communicating with a computer, another Arduino, or
other microcontrollers. The ATmega328 provides UART TTL (5V) serial communication, which is
available on digital pins 0 (RX) and 1 (TX). An ATmega8U2 on the board channels this serial
communication over USB and appears as a virtual com port to software on the computer. The '8U2
firmware uses the standard USB COM drivers, and no external driver is needed. However, on
Windows, an *.inf file is required.. The Arduino software includes a serial monitor which allows
simple textual data to be sent to and from the Arduino board. The RX and TX LEDs on the board will
flash when data is being transmitted via the USB-toserial chip and USB connection to the computer
(but not for serial communication on pins 0 and 1). A Software serial library allows for serial

PES’s Modern College of Engineering


Department of Electrical Engineering Page 19
communication on any of the Uno's digital pins. The ATmega328 also support I2C (TWI) and SPI
communication. The Arduino software includes a Wire library to simplify use of the I2C bus

The Arduino Uno can be programmed with the Arduino software (download).Select "Arduino Uno w/
ATmega328" from the Tools > Board menu (according to the microcontroller on your board). For
details, see the reference and tutorials. The ATmega328 on the Arduino Uno comes preburned with a
bootloader that allows you to upload new code to it without the use of an external hardware
programmer. It communicates using the original STK500 protocol (reference, C header files). You can
also bypass the bootloader and program the microcontroller through the ICSP (In-Circuit Serial
Programming) header; see these instructions for details. The ATmega8U2 firmware source code is
available . The ATmega8U2 is loaded with a DFU bootloader, which can be activated by connecting
the solder jumper on the back of the board (near the map of Italy) and then resetting the 8U2. You can
then use Atmel's FLIP software (Windows) or the DFU programmer (Mac OS X and Linux) to load a
new firmware. Or you can use the ISP header with an external programmer (overwriting the DFU
bootloader).

PES’s Modern College of Engineering


Department of Electrical Engineering Page 20
10.2. LIQUID CRYSTAL DISPLAY:

Fig.6. LCD

LCD stands for Liquid Crystal Display. LCD is finding wide spread use replacing LEDs (seven
segment LEDs or other multi segment LEDs) because of the following reasons:

1. The declining prices of LCDs.


2. The ability to display numbers, characters and graphics. This is in contrast to LEDs, which are
limited to numbers and a few characters.
3. Incorporation of a refreshing controller into the LCD, thereby relieving the CPU of the task of
refreshing the LCD. In contrast, the LED must be refreshed by the CPU to keep displaying the
data.
4. Ease of programming for characters and graphics.

These components are “specialized” for being used with the microcontrollers, which means
that they cannot be activated by standard IC circuits. They are used for writing different messages on a
miniature LCD.

LCD screen consists of two lines with 16 characters each. Each character consists of 5x7 dot
matrix. Contrast on display depends on the power supply voltage and whether messages are displayed
in one or two lines. For that reason, variable voltage 0-Vdd is applied on pin marked as Vee. Trimmer
potentiometer is usually used for that purpose. Some versions of displays have built in backlight (blue
or green diodes). When used during operating, a resistor for current limitation should be used (like
with any LE diode).

PES’s Modern College of Engineering


Department of Electrical Engineering Page 21
SPECIFICATION:

 Display :- 16 Char* 2 Lines


 Controller:-LSI HD44780 IN BUILT
 Power Supply :- + 5v Dc
 Display Color :-Gray
 Weight :- 35

Table no:2 Pin description of LCD

PIN NO PIN NAME DESCRIPTION


Pin 1 GND This pin is a ground pin and the LCD is connected to the
Ground
Pin 2 VCC The VCC pin is used to supply the power to the LCD
Pin 3 VEE This pin is used for adjusting the contrast of the LCD by
connecting the variable resistor in between the VCC &
Ground.
Pin 4 RS The RS is known as register select and it selects the
Command/Data register. To select the command, register the
RS should be equal to zero. To select the Data, register the
RS should be equal to one.

Pin 5 R/W This pin is used to select the operations of Read/Write. To


perform the write operations the R/W should be equal to
zero. To perform the read operations the R/W should be
equal to one.
Pin 6 EN This is a enable signal pin if the positive pulses are passing
through a pin, then the pin function as a read/write pin.
Pin 7 DB0-DB7 The pin 7 contains total 8 pins which are used as a Data pin
of LCD.
Pin 15 LCD+ This pin is connected to VCC and it is used for the pin 16 to
set up the glow of backlight of LCD.
Pin 16 LCD- This pin is connected to Ground and it is used for the pin 15
to set up the glow of backlight of the LCD.

A model described here is for its low price and great possibilities most frequently used in
practice. It is based on the HD44780 microcontroller (Hitachi) and can display messages in two lines
with 16 characters each. It displays all the alphabets, Greek letters, punctuation marks, mathematical
symbols etc. In addition, it is possible to display symbols that user makes up on its own. Automatic

PES’s Modern College of Engineering


Department of Electrical Engineering Page 22
shifting message on display (shift left and right), appearance of the pointer, backlight etc. are
considered as useful characteristics.

Pins Functions

There are pins along one side of the small printed board used for connection to the
microcontroller. There are total of 14 pins marked with numbers (16 in case the background light is
built in). Their function is described in the table below:

LCD Basic Commands:

All data transferred to LCD through outputs D0-D7 will be interpreted as commands or as data, which
depends on logic state on pin RS:

RS = 1 - Bits D0 - D7 are addresses of characters that should be displayed. Built in processor


addresses built in “map of characters” and displays corresponding symbols. Displaying position is
determined by DDRAM address. This address is either previously defined or the address of previously
transferred character is automatically incremented.

RS = 0 - Bits D0 - D7 are commands which determine display mode. List of commands which
LCD recognizes are given in the table below:

Table no.3.Commands in LCD

Command RS RW D7 D6 D5 D4 D3 D2 D1 D0 Execution Time

Clear display 0 0 0 0 0 0 0 0 0 1 1.64mS


Cursor home 0 0 0 0 0 0 0 0 1 x 1.64mS
Entry mode set 0 0 0 0 0 0 0 1 I/D S 40uS
Display on/off control 0 0 0 0 0 0 1 D U B 40uS
Cursor/Display Shift 0 0 0 0 0 1 D/C R/L x x 40uS
Function set 0 0 0 0 1 DL N F x x 40uS
Set CGRAM address 0 0 0 1 CGRAM address 40uS
Set DDRAM address 0 0 1 DDRAM address 40uS

PES’s Modern College of Engineering


Department of Electrical Engineering Page 23
LCD Connection:

Depending on how many lines are used for connection to the microcontroller, there are 8-bit
and 4-bit LCD modes. The appropriate mode is determined at the beginning of the process in a phase
called “initialization”. In the first case, the data are transferred through outputs D0-D7 as it has been
already explained. In case of 4-bit LED mode, for the sake of saving valuable I/O pins of the
microcontroller, there are only 4 higher bits (D4-D7) used for communication, while other may be left
unconnected.

Consequently, each data is sent to LCD in two steps: four higher bits are sent first (that
normally would be sent through lines D4-D7), four lower bits are sent afterwards. With the help of
initialization, LCD will correctly connect and interpret each data received. Besides, with regards to the
fact that data are rarely read from LCD (data mainly are transferred from microcontroller to LCD) one
more I/O pin may be saved by simple connecting R/W pin to the Ground. Such saving has its price.
Even though message displaying will be normally performed, it will not be possible to read from busy
flag since it is not possible to read from display.

Fig.7. Interfacing of LCD

PES’s Modern College of Engineering


Department of Electrical Engineering Page 24
LCD Initialization:

Once the power supply is turned on, LCD is automatically cleared. This process lasts for
approximately 15mS. After that, display is ready to operate. The mode of operating is set by default.
This means that:

1. Display is cleared

2. Mode

DL = 1 Communication through 8-bit interface

N = 0 Messages are displayed in one line

F = 0 Character font 5 x 8 dots

3. Display/Cursor on/off

D = 0 Display off

U = 0 Cursor off

B = 0 Cursor blink off

4. Character entry

ID = 1 Addresses on display are automatically incremented by 1

S = 0 Display shift off

Automatic reset is mainly performed without any problems. Mainly but not always! If for any
reason power supply voltage does not reach full value in the course of 10mS, display will start perform
completely unpredictably. If voltage supply unit can not meet this condition or if it is needed to
provide completely safe operating, the process of initialization by which a new reset enabling display
to operate normally must be applied.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 25
10.3. KEYPAD:

Fig.8.Key Pad
Key Specifications

 Maximum Rating: 24 VDC, 30 mA


 Interface: 8-pin access to 4x4 matrix
 Operating temperature: 32 to 122 °F (0 to 50°C)
 Dimensions: Keypad, 2.7 x 3.0 in (6.9 x 7.6 cm)

Spefications

 Cable Length: 3-1/3" or 85mm (include connector)


 Weight: 8g
 Connector: Dupont 8 pins, 0.1" (2.54mm) Pitch
 Mount Style: Self-Adherence
 Max. Circuit Rating: 24VDC, 30mA
 Insulation Spec.: 100M Ohm, 100V
 Dielectric Withstand: 250VRms (60Hz, 1min)
 Contact Bounce: <=5ms
 Life Expectancy: 1 million closures
 Operation Temperature: -20 to +40 °C

PES’s Modern College of Engineering


Department of Electrical Engineering Page 26
10.4. ELECTRIC LOCK:

Fig.9. Electric Lock


An electronic lock (or electric lock) is a locking device which operates by means of electric current.
Electric locks are sometimes stand-alone with an electronic control assembly mounted directly to the
lock. Electric locks may be connected to an access control system, the advantages of which include:
key control, where keys can be added and removed without re-keying the lock cylinder; fine access
control, where time and place are factors; and transaction logging, where activity is recorded.
Electronic locks can also be remotely monitored and control LCD, both to lock and to unlock.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 27
10.5 DC motor
A DC motor is an electric motor that runs on direct current (DC) electricity.
DC Motor Connections
Figure shows schematically the different methods of connecting the field and armature circuits in a
DC Motor. The circular symbol represents the armature circuit, and the squares at the side of the
circle represent the brush commutator system. The direction of the arrows indicates the direction of
the magnetic fields.

Theory of DC motor:

The speed of a DC motor is directly proportional to the supply voltage, so if we reduce the
supply voltage from 12 Volts to 6 Volts, the motor will run at half the speed. How can this be achieved
when the battery is fixed at 12 Volts? The speed controller works by varying the average voltage sent
to the motor. It could do this by simply adjusting the voltage sent to the motor, but this is quite
inefficient to do. A better way is to switch the motor's supply on and off very quickly. If the switching
is fast enough, the motor doesn't notice it, it only notices the average effect.

When you watch a film in the cinema, or the television, what you are actually seeing is a series
of fixed pictures, which change rapidly enough that your eyes just see the average effect - movement.
Your brain fills in the gaps to give an average effect.

Now imagine a light bulb with a switch. When you close the switch, the bulb goes on and is at
full brightness, say 100 Watts. When you open the switch it goes off (0 Watts). Now if you close the
switch for a fraction of a second, and then open it for the same amount of time, the filament won't
have time to cool down and heat up, and you will just get an average glow of 50 Watts. This is how
lamp dimmers work, and the same principle is used by speed controllers to drive a motor. When the
switch is closed, the motor sees 12 Volts, and when it is open it sees 0 Volts. If the switch is open for
the same amount of time as it is closed, the motor will see an average of 6 Volts, and will run more
slowly accordingly. The graph below shows the speed of a motor that is being turned on and off.

Principles of operation
In any electric motor, operation is based on simple electromagnetism. A current-carrying conductor
generates a magnetic field; when this is then placed in an external magnetic field, it will experience a
force proportional to the current in the conductor, and to the strength of the external magnetic field. As
you are well aware of from playing with magnets as a kid, opposite (North and South) polarities
attract, while like polarities (North and North, South and South) repel. The internal configuration of a

PES’s Modern College of Engineering


Department of Electrical Engineering Page 28
DC motor is designed to harness the magnetic interaction between a current-carrying conductor and an
external magnetic field to generate rotational motion.

Let's start by looking at a simple 2-pole DC electric motor (here red represents a magnet or winding
with a "North" polarization, while green represents a magnet or winding with a "South" polarization).
Every DC motor has six basic parts -- axle, rotor (a.k.a., armature), stator, commutator, field
magnet(s), and brushes. In most common DC motors (and all that Beamers will see), the external
magnetic field is produced by high-strength permanent magnets. The stator is the stationary part of the
motor -- this includes the motor casing, as well as two or more permanent magnet pole pieces. The
rotor (together with the axle and attached commutator) rotates with respect to the stator. The rotor
consists of windings (generally on a core), the windings being electrically connected to the
commutator. The above diagram shows a common motor layout -- with the rotor inside the stator
(field) magnets.

The geometry of the brushes, commutator contacts, and rotor windings are such that when power is
applied, the polarities of the energized winding and the stator magnet(s) are misaligned, and the rotor
will rotate until it is almost aligned with the stator's field magnets. As the rotor reaches alignment, the
brushes move to the next commutator contacts, and energize the next winding. Given our example
two-pole motor, the rotation reverses the direction of current through the rotor winding, leading to a
"flip" of the rotor's magnetic field, driving it to continue rotating.

In real life, though, DC motors will always have more than two poles (three is a very common
number). In particular, this avoids "dead spots" in the commutator. You can imagine how with our
example two-pole motor, if the rotor is exactly at the middle of its rotation (perfectly aligned with the
field magnets), it will get "stuck" there. Meanwhile, with a two-pole motor, there is a moment where
the commutator shorts out the power supply (i.e., both brushes touch both commutator contacts
simultaneously). This would be bad for the power supply, waste energy, and damage motor
components as well. Yet another disadvantage of such a simple motor is that it would exhibit a high
amount of torque "ripple" (the amount of torque it could produce is cyclic with the position of the
rotor).
So since most small DC motors are of a three-pole design, let's tinker with the workings of one via an
interactive animation.
You'll notice a few things from this -- namely, one pole is fully energized at a time (but two others are
"partially" energized). As each brush transitions from one commutator contact to the next, one coil's
field will rapidly collapse, as the next coil's field will rapidly charge up (this occurs within a few

PES’s Modern College of Engineering


Department of Electrical Engineering Page 29
microsecond). We'll see more about the effects of this later, but in the meantime you can see that this
is a direct result of the coil windings' series wiring:
The use of an iron core armature (as in the Mabuchi, above) is quite common, and has a number of
advantages. First off, the iron core provides a strong, rigid support for the windings -- a particularly
important consideration for high-torque motors. The core also conducts heat away from the rotor
windings, allowing the motor to be driven harder than might otherwise be the case. Iron core
construction is also relatively inexpensive compared with other construction types.
But iron core construction also has several disadvantages. The iron armature has a relatively high
inertia which limits motor acceleration. This construction also results in high winding inductances
which limit brush and commutator life.
In small motors, an alternative design is often used which features a 'coreless' armature winding. This
design depends upon the coil wire itself for structural integrity. As a result, the armature is hollow, and
the permanent magnet can be mounted inside the rotor coil. Coreless DC motors have much lower
armature inductance than iron-core motors of comparable size, extending brush and commutator life.
DC motor behavior
High-speed output
This is the simplest trait to understand and treat -- most DC motors run at very high output speeds
(generally thousands or tens of thousands of RPM). While this is fine for some BEAM bots (say,
photo poppers or solar rollers), many BEAM bots (walkers, heads) require lower speeds -- you must
put gears on your DC motor's output for these applications.
H-BRIDGE:

An H-bridge is an electronic circuit which enables DC electric motors to be run forwards or


backwards. These circuits are often used in robotics. H-bridges are available as integrated circuits, or

Fig.10.Motor Connection

PES’s Modern College of Engineering


Department of Electrical Engineering Page 30
can be built from discrete components.

The two basic states of a H-bridge. The term "H-bridge" is derived from the typical graphical
representation of such a circuit. An H-bridge is built with four switches (solid-state or mechanical).
When the switches S1 and S4 (according to the first figure) are closed (and S2 and S3 are open) a
positive voltage will be applied across the motor. By opening S1 and S4 switches and closing S2 and
S3 switches, this voltage is reversed, allowing reverse operation of the motor.

Using the nomenclature above, the switches S1 and S2 should never be closed at the same time, as
this would cause a short circuit on the input voltage source. The same applies to the switches S3 and
S4. This condition is known as shoot-through.

Operation

The H-Bridge arrangement is generally used to reverse the polarity of the motor, but can also be used
to 'brake' the motor, where the motor comes to a sudden stop, as the motors terminals are shorted, or to
let the motor 'free run' to a stop, as the motor is effectively disconnected from the circuit. The
following table summarizes operation.

Table no.4. Operation of H-Bridge

S1 S2 S3 S4 Result

1 0 0 1 Motor moves right

0 1 1 0 Motor moves left

0 0 0 0 Motor free runs

0 1 0 1 Motor brakes

PES’s Modern College of Engineering


Department of Electrical Engineering Page 31
H-Bridge Driver:

The switching property of this H-Bridge can be replace by a Transistor or a Relay or a Mosfet or even
by an IC. Here we are replacing this with an IC named L293D as the driver whose description is as
given below.

Features:

 600mA OUTPUT CURRENT CAPABILITY


 PER CHANNEL
 1.2A PEAK OUTPUT CURRENT (non repetitive)
 PER CHANNEL
 ENABLE FACILITY
 OVERTEMPERATURE PROTECTION
 LOGICAL "0" INPUT VOLTAGE UP TO 1.5 V
 (HIGH NOISE IMMUNITY)
 INTERNAL CLAMP DIODES

DESCRIPTION

The Device is a monolithic integrated high voltage, high current four channel driver designed to accept
standard DTL or TTL logic levels and drive inductive loads (such as relays solenoides, DC and
stepping motors) and switching power transistors. To simplify use as two bridges each pair of channels
is equipped with an enable input. A separate supply input is provided for the logic, allowing operation
at a lower voltage and internal clamp diodes are included. This device is suitable for use in switching
applications at frequencies up to 5 kHz. The L293D is assembled in a 16 lead plastic packaage which
has 4 center pins connected together and used for heat sinking The L293DD is assembled in a 20 lead
surface mount which has 8 center pins connected together and used for heat sinking.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 32
BLOCK DIAGRAM

Fig.11. Internal Connection of H-Bridge

ABSOLUTE MAXIMUM RATINGS

Table.5. Rating of drive

PIN CONNECTIONS

Fig.12. Pin Diagram of L293D

PES’s Modern College of Engineering


Department of Electrical Engineering Page 33
10.6 GSM MODULE (SIM900A):

Fig.13. GSM module

A GSM modem is a device which can be either a mobile phone or a modem device which can be used
to make a computer or any other processor communicate over a network. A GSM modem requires a
SIM card to be operated and operates over a network range subscribed by the network operator. It can
be connected to a computer through serial, USB or Bluetooth connection.

SIM900 GSM Module – This means the module supports communication in 900MHz band. We are
from India and most of the mobile network providers in this country operate in the 900Mhz band. If
you are from another country, you have to check the mobile network band in your area. A majority of
United States mobile networks operate in 850Mhz band (the band is either 850Mhz or 1900Mhz).
Canada operates primarily on 1900 Mhz band.

Working of GSM module:

GSM modem duly interfaced to the MC through the level shifter IC Max232. The SIM card mounted
GSM modem upon receiving digit command by SMS from any cell phone send that data to the MC
through serial communication. While the program is executed, the GSM modem receives command
‘STOP’ to develop an output at the MC, the contact point of which are used to disable the ignition
switch. The command so sent by the user is based on an intimation received by him through the GSM
modem ‘ALERT’ a programmed message only if the input is driven low.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 34
GSM AT COMMANDS

Table:6. GSM Commands

Overview of AT Commands Description


AT+CMGD DELETE SMS MESSAGE
AT+CMGF SELECT SMS MESSAGE FORMAT
AT+CMGL LIST SMS MESSAGES FROM
PREFERRED STORE
AT+CMGR READ SMS MESSAGE
AT+CMGS SEND SMS MESSAGE
AT+CMGW WRITE SMS MESSAGE TO MEMORY
AT+CMSS SEND SMS MESSAGE FROM
STORAGE
AT+CMGC SEND SMS COMMAND
AT+CNMI NEW SMS MESSAGE INDICATIONS
AT+CPMS PREFERRED SMS MESSAGE
STORAGE
AT+CRES RESTORE SMS SETTINGS
AT+CSAS SAVE SMS SETTINGS
AT+CSCA SMS SERVICE CENTER ADDRESS
AT+CSCB SELECT CELL BROADCAST SMS
MESSAGES
AT+CSDH SHOW SMS TEXT MODE
PARAMETERS
AT+CSMP SET SMS TEXT MODE PARAMETERS
AT+CSMS SELECT MESSAGE SERVICE

PES’s Modern College of Engineering


Department of Electrical Engineering Page 35
11 SOFTWARE REQUIRMENT:
 ARDUINO IDE
 PROTEUS

11.1. ARDUINO IDE

INSTALLING ARDUINO UNO AND TEST:

 Plug in your board and wait for Windows to begin it’s driver installation process
 After a few moments, the process will fail, despite its best efforts
 Click on the Start Menu, and open up the Control Panel
 While in the Control Panel, navigate to System and Security. Next, click on System
 Once the System window is up, open the Device Manager
 Look under Ports (COM & LPT). You should see an open port named “Arduino UNO
(COMxx)”. If there is no COM & LPT section, look under ‘Other Devices’ for ‘Unknown
Device’
 Right click on the “Arduino UNO (COMxx)” or “Unknown Device” port and choose the
“Update Driver Software” option
 Next, choose the “Browse my computer for Driver software” option
 Finally, navigate to and select the Uno’s driver file, named “ArduinoUNO.inf”, located in the
“Drivers” folder of the Arduino Software download (not the “FTDI USB Drivers” sub-
directory). If you cannot see the .inf file, it is probably just hidden. You can select the ‘drivers’
folder with the ‘search sub-folders’ option selected instead.
 Windows will finish up the driver installation from there Launch and Blink!

After following the appropriate steps for your software install, we are now ready to test your first
program with your Arduino board!

 Launch the Arduino application


 If you disconnected your board, plug it back in
 Open the Blink example sketch by going to: File > Examples > 1.Basics > Blink

 Select the type of Arduino board you’re using: Tools > Board > your board type
 Select the serial/COM port that your Arduino is attached to: Tools > Port >COMxx

PES’s Modern College of Engineering


Department of Electrical Engineering Page 36
 If you’re not sure which serial device is your Arduino, take a look at the available ports, then
unplug your Arduino and look again. The one that disappeared is your Arduino.
 With your Arduino board connected, and the Blink sketch open, press the ‘Upload’ button
 After a second, you should see some LEDs flashing on your Arduino, followed by the message
‘Done Uploading’ in the status bar of the Blink sketch.
 If everything worked, the onboard LED on your Arduino should now be blinking! You just
programmed your first Arduino!

Select the type of Arduino board you’re using: Tools > Board > your board type

 Select the serial port that your Arduino is attached to: Tools > Port >xxxxxx (it’ll probably
look something like “/dev/tty.usbmodemfd131” or “/dev/tty.usbserial-131” but probably with a
different number)

 If you’re not sure which serial device is your Arduino, take a look at the available ports, then
unplug your Arduino and look again. The one that disappeared is your Arduino.
 With your Arduino board connected and the Blink sketch open, press the ‘Upload’ button

 After a second, you should see some LEDs flashing on your Arduino, followed by the message
‘Done Uploading’ in the status bar of the Blink sketch.
 If everything worked, the onboard LED on your Arduino should now be blinking! You just
programmed your first Arduino!

PES’s Modern College of Engineering


Department of Electrical Engineering Page 37
11.2. PROTEUS

STEPS TO CREATE PROJECT

Step 1: Download Library Zip Folder from Our Website

Download the library files zip folder from web site


https://www.theengineeringprojects.com/2015/12/arduino-library-proteus-simulation.html

open it and paste these two files ArduinoTEP.LIB and ArduinoTEP.IDX files in to Library folder
path( C:\Program Files (x86)\LabcenterElectronics\Proteus 8 Professional\LIBRARY).

2) Double click on Proteus 8 professional shortcut generated on Desktop following window will popup

3) click on new project

4) In the field of Name, write name of project and in the field of path browse path for project like this

5) Now click on next

 Click the "Pick from library (P)" button

 Now Search Arduino

 Select Arduino uno

 Click OK

 After selecting component, click anywhere in the design area to select it and then click again to
place it

1. CONNECTING COMPONENTS:

 Place all the required components

 Connect the desired nodes by clicking at starting and ending points

2. LOAD HEX FILE:

 To create hex file press simply verify in your Arduino ide software

 Double click the Arduino Uno to open its properties


PES’s Modern College of Engineering
Department of Electrical Engineering Page 38
 C:\Users\UserName\AppData\Local\Temp\arduino_build_

 Browse for the HEX file as shown and select it

And don't worry, in PROTEUS, there is no need to provide the RESET circuit or crystal oscillator to
the microcontroller. It will work just fine even without it. The frequency can be adjusted in the
properties window as well.

3. SIMULATING THE CIRCUIT:

 The controls at the left-bottom corner will help you simulate the circuit in real time

Fig.14. Simulation of circuit

The above picture is the complete circuitry for testing an LED on P2.0 like toggling (ON / OFF)
through programming but we will get to that part later on. At this point, you will just see the LED
glow if you have programmed it to be always ON.

Like this developer done design on Proteus before starts working on Hardware.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 39
12 COST ESTIMATION

Table no. 7. Cost estimation.

Sr.No Component Quantity Price


1 Arduino UNO 1 500
2 Connector 20 80
(jumper wires)
3 Electronic Lock() 1 600
4 LCD 1 150
Screen(16×2)
5 DC Motor () 1 300
6 Relay Module() 1 200
7 DC 12 V Supply 1 300
8 GSM module 980
Total 3100

PES’s Modern College of Engineering


Department of Electrical Engineering Page 40
13.Working Model

Fig .15. Working Model

PES’s Modern College of Engineering


Department of Electrical Engineering Page 41
14. FUTURE SCOPE

Fig .16. Future Scope


The above figure describes the procedure of how to use the system in the proper way. Mainly the
procedure is simple, although the customer may forget the pass key so the receipt is used.

 In future we can add finger print scanner for more security.


 We can charge users on hourly basis.
 Also users will receive E-receipt.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 42
15.ADVANTAGES

 Prevents unauthorized use or access

 Adds a higher level of security to an identification process

 Small amount of finger vein data required enables fast authentication and small, compact
devices.

16.APPLICATIONS

 It can use in bank locker room


 It can also use in research chemistry lab for security
 In restricted area where security is main concern.
 In Marine Applications.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 43
17. Conclusion

A step by step approach in designing the microcontroller based system for securing the
transactions of the user and providing the security for the locker system and even more for the security
verification using a GSM module. The result obtained in providing the security is quite reliable in all
the three modes. The system has successfully overcome some of the aspects existing with the present
technologies, by the use of keypad as the authentication Technology.
Thus our project provides new revolution in modern world. We can reduce theft in bank locker by
providing full security to it. Therefore the antisocial crimes in banks can be controlled by our project.
By implementing our project the bank larceny can be avoided and so it will provide efficient security
in banks.

PES’s Modern College of Engineering


Department of Electrical Engineering Page 44
18.REFERENCES

[1] GSM Based Digital Door Lock security System,Prof. Adnan Ibrahim, Prof. Afzal
Paravath, Prof. Aswin P. K., Prof. Shijin Mohammed Iqbal , prof. Shaeez Usman
Abdulla , 21 April 2016
[2] Available at http://Semantics scholar/smart locker system.
[3] Available at http:// Didea smart Palm (UAE Concept of smart beaches provides
solution for automation increase reliability and new infrastructure development )
[4] Available at http://LG Smart-Lock Technologies/Smart lockers
[5] Ushie James Ogri, Donatus Enang Bassey Okwong, Akaiso Etim,”Design and
construction of Door Locking Security System Using GSM”,International Journal Of
Engineering And Computer Science ISSN:2319-7242 Volume 2 Issue 7,Page
No.2235-2257,July 2013
[6] “Literature Survey on Door Lock Security Systems”, International Journal of Computer
Applications (0975 –8887)Volume 153 –No2, November 2016

PES’s Modern College of Engineering


Department of Electrical Engineering Page 45

You might also like