Mall Managent and Security

Post on 22-Jan-2016

11 views 1 download

description

mall management

Transcript of Mall Managent and Security

PSG COLLEGE OF TECHNOLOGY(Autonomous Institution)

COIMBATORE – 641 004

REPORT ON

MALL SECURITY AND MANAGEMENT

Bona fide record of work done by

BATCH 4

DINESH KUMAR .P (13L215)

KARTHEKEIYAN.N (13L223)

KUMARAN.S.G (13L225)

Dissertation submitted in partial fulfillment of the requirements for the degree of

BACHELOR OF ENGINEERING

Branch: ELECTRONIC AND COMMUNICATION ENGINEERING Of Anna University

AUGUST – 2015

…………..………………. ...……………………… Mr.K.Rajasekar Dr. S. Subha Rani

Faculty guide Head of the Department

1

ACKNOWLEDGEMENT

We would like to express my sincere thanks to Dr. R. Rudramoorthy, the Principal, PSG College of Technology, for providing various infrastructure without which this report would not have been successful.

We are indebted to Dr. S. Subha Rani, Professor and Head of the Department of Electronics and Communication Engineering, PSG College of Technology, for her continued support and motivation.

We would like to express our sincere gratitude to our technical report guide Dr. D.Sivaraj and, Mr.K.Rajasekar Assistant Professor, ECE Department, for him constant motivation, direction and guidance throughout the entire course of this report.

We also extend heartfelt thanks to the class advisor Dr. P. Visalakshi, Professor, ECE Department for her continuous support.

We would like to thank the student friends who contributed in their own special way for the betterment of this report.

Last but not the least we thank our family members, the Almighty who have been a guiding light in all our endeavors.

2

MALL SECURITY AND MANAGEMENT

NEED FOR PROBLEM:

Safety is the most important measure which is always concerned first. This project deals with mall management and security which is always need for the

security of the mall. The basic need is that the visitor should have an enjoyable

shopping experience .security concern also has an impact on shopping behaviour. Preventive measures in case of emergency so that people could evacuate easily.

PROPOSED ACTIVITIES:

The systems can be intended around an AT89S52 IC, a low-priced 8-bit 8052 based micro-controller and completely software controlled.

• All control programs could be created by employing the assembly language.

• Lastly, the mall security and management can be verified under various

situations to estimate its performance.

OBJECTIVE OF THE PROJECT:

• The main objective of this project is to provide a complete security for the

customers so that they could have a safe shopping experience.

• Keeps in track of the number of persons in the mall.

3

• Provides safety against hazardous materials.

• It gives safety alarm in case of fire or emergency.

BLOCK DIAGRAM AND ITS EXPLANATION:

Block diagram shows the working of the mall security and management.

Upon entry into the mall, count in the seven segment gets incremented and when

someone goes out the count gets decremented accordingly.

And when someone enters the mall with hazardous substance one led blinks

to indicate danger. When there is emergency in the mall as in case of fire or

4

something all the led blinks to indicate danger. And the count gets decremented

according to the exit.

CIRCUIT DIAGRAM AND ITS EXPLANATION:

In the circuit four switches are assigned to P3.0, P3.1, P3.2, and P3.6. a single Led

for metal detection is provided in the port P0.0, when someone enters the mall the

count gets incremented when switch 1 is pressed and displayed in a multiplexed

seven segment display, Which the ones and tens are assigned in P3.4, P3.5 and

when a person leaves the count value decreases by one which is given in switch 2.

In case of emergency interrupt service routine is provided and gets executed when

switch 3 is pressed. The last switch 4 is provided for metal detection.

5

FLOW CHART:

6

CODING:

7

#include<reg51.h>

sbit sw1=P3^0; //switch 1 for count increment

sbit sw2=P3^1; // switch 2 for count decrement

sbit led1=P0^0; // metal detector LED

sbit sw3=P3^2; // switch 3 for emergency

sbit sw4=P3^6; // switch 4 for metal detector

Unsigned int i, count1, count2;

Unsigned int count;

char a[ ]= {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};

sbit o=P3^4; // enable and disable the seven segments

sbit t=P3^5; // enable and disable the seven segments

Void delay (unsigned int a)

{

While (a--);

}

Void externalinterupt1 () interrupt 0 // interrupt for emergency

{

P1=~P1; // all led blinks

Count=count-1; // count gets decremented according to the exit

for (i=0;i<7;i++) // delay

{

TL0=0x00;

8

TH0=0x00;

TR0=1;

{

while (!TF0);

TF0=0;

TR0=0;

}

if (count==0)

P1=0x00;

}

}

Void main()

{

IE=0x81;

TMOD=0x01;

while (1) //This is the display part, always runs

{

count1=count/10; // displays tens

count2=count%10; // displays ones

P2=a[count1]; // seven segment output

t=1; // multiplexing seven segment

delay(500);

t=0;

9

P2=a[count2];

o=1;

delay(500);

o=0;

if(sw1==0) // count increment

{

if(count==99) // when goes beyond 99 it stays as 99

count=99;

else

count=count+1;

delay(50000);

}

if(sw2==0) //count decrement

{

if(count>0) // decrements when count is >0 else displays 0

count=count-1;

delay(50000);

}

if (sw4==0) //metal detector

{

While (sw4==0);

led1=~led1; //P0.0 blinks

10

delay (100);

}

}

}

SIMULATION:

Before running the code:

After running: (count increments and displays in port 2):

11

After running (count decrements and displays in port 2):

EMERGENCY (INTERRUPT 0):

12

METAL DETECTOR (P0.0 BLINKS):

HARDWARE IMPLEMENTATION:

BEFORE RUNNING THE PROGRAM:

13

INCREMENTING COUNT:

14

15

DECREMENTING COUNT:

16

EMERGENCY (COUNT DECREMENTS AND LED BLINKS):

17

METAL DETECTOR(LAST LED BLINKS):

18

Conclusion and future scope:

• Thus the working of mall management and security is verified in software and

hardware implementation. This system has a lot of scope it can be implemented

in various fields as required. • Fire alarm can be further advanced by sending appropriate message to the

nearby fire station. Further advancements can be made with regard to the requirement of the mall.

Reference:

Muhammad ali mazidi,”THE 8051 MICROCOTROLLER AND EMBEDDED SYSTEMS”.

19