SIX MONTH INDUSTRIAL TRAINING

PROJECT: SECURITY SURVEILLANCE SYSTEM SUBMITTED BY: SANDEEP KUMAR

( 6220406563 )

ADDRESS : E-162 ,PHASE-VII INDUSTRIAL AREA ,MOHALI WEBSITE : WWW.MEZONINDIA.COM

Company Profile
‡ MEZON Technologies established in 2006 with a vision to provide reliable, efficient solutions of highest possible quality using latest technologies. ‡ ³Company focuses on achieving global Engineering services leadership in providing value-added high quality Embedded solutions by combining technology skills, domain expertise, process focus and a commitment to long-term client relationships."

Company Specializations
‡ Real Time Data Acquisition Modules ‡ Microcontroller/DSP Processor based Embedded system ‡ Communication protocols such as RS-232/485 and CAN Bus in a distributed, safety-critical, real time Environment.. ‡ The implementation and Optimization of Digital Signal Processing Algorithms.

RS232 ONLINE QUIZ SYSTEM .Products Developed By MEZON DATA LOGGERS CARDS DATA ACQUISITION WIRED COMMUNICATION PRINTER DRIVER SCROLLING DISPLAYS USING GSM .

Training Module ‡ Hardware Section ‡ Software Section 8051 Microcontroller AVR Microcontroller ‡ Project SECURITY SURVEILLANCE SYSTEM .

. Analog to Digital converter using ADC0804. 555 as a Monostable & Astable Multivibrator. IC741 as Integrator. IC741 as an Square & Triangular wave generator. Positive and negative regulated power supplies. Buffer.Hardware section: ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ Basic introduction to various electronic components. 7IC41 as an Instrumentation Amplifier. 555 timer as a VCO. Transistor as a Switch. Soldering and Desoldering practices. Subtractor & Adder.

Interfacing of 8051 with LCD. Interfacing of 8051 with ADC.Software section: ‡ ‡ ‡ ‡ ‡ ‡ ‡ Introduction to 8051 Microcontroller. Timer/Counter Programming. Serial Communication using 8051. Basic Programming of 8051 Microcontroller. Introduction to AVR Microcontroller. .

Project manager for creating and maintaining your projects. Full-featured source code editor. Integrated make facility for assembling. Dialogs for all development tool settings.IMPLEMENTATION ENVIRONMENT ‡ ‡ ‡ ‡ ‡ ‡ KEIL-µVISION3 The µVision3 IDE is a Windows-based software development platform . compiling. . and linking your embedded applications. Device database for configuring the development tool setting.

‡Full Duplex UART. ‡5 vector interrupts structure with priority levels. ‡8 bit and 16 bit registers. ‡4 K on chip program memory address space (ROM). ‡32 bi-directional and individually addressable I/O lines. programmable in 4 modes. ‡On chip clock oscillator.8051MICROCONTROLLER ‡Optimized 8 bit CPU for control applications. ‡128 bytes of on chip data memory (RAM). ‡Two 16-bit timers/counters. . ‡ Extensive Boolean processing capabilities.

‡ AVR Studio 4 has a modular architecture which allows even more interaction with 3rd party software vendors. emulation and on-chip debugging. GUI plug-ins and other modules can be written and hooked to the system. programming. ‡ AVR Studio supports the complete range of ATMEL AVR tools and each release will always contain the latest updates for both the tools and support of new AVR devices.AVR STUDIO 4. source file editor.assembler and front-end for C/C++. simulator. AVR Studio provides a project management tool. .0 ‡ AVR Studio is an Integrated Development Environment (IDE) for writing and debugging AVR applications in Windows 9x/ME/NT/2000/XP/VISTA environments.

AVR MICROCONTROLLER At mega 32 DEFINITION 8-Bit AVR Microcontroller With 32 Kbyte Of In system Programmable Flash. low power ‡ Advanced RISC Architecture ‡ Non-volatile Program and Data Memories ‡ JTAG interface ‡ Peripheral Features ‡ Special Microcontroller Features ‡ Speed Grades : 0 ± 16 MHz . FEATURE High performance .

Flow chart of project A Person s Entry Enter password µc device NO A If passwor d matches Tsop receives signal Main door opens Remotly operated functions .

Introduction to security surveillance systems ‡ Security is the degree of protection against danger. loss. and criminals. ‡ Types ‡ IT realm ‡ Application security ‡ Computing security ‡ Data security ‡ Information security ‡ Network security ‡ Physical realm ‡ Airport security ‡ Port security/Supply chain security .

The word surveillance may be applied to observation from a distance by means of electronic equipment (such as CCTV cameras). It may also refer to simple.Definition of surveillance The word surveillance comes from the French word for "watching over". or interception of electronically transmitted information (such as Internet traffic or phone calls). .or low-technology methods such as human intelligence agents and postal interception. relatively no.

Methodology/Planing of work Brief specifications about various components used are as follows: ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ timer IC potentiometer resistor nand gate IC not gate IC capacitor IR LED Receiver Optocoupler Dc motor Microcontroler LCD Transistors IR Sensors NE555N SN74HC00N SN74HC04N TSOP1738 817 at89c51 bc547 .

Transmitter section ‡ We generate a data signal from astable multivibrator by using 555 timer IC. In this circuit potentiometers are used to vary the frequency range. Here we used receiver TSOP1738 for receiveing the trasmitted signal here 38 means that it can receive 38 kilohertz signal . many TSOP ICs are available in the market which can work on different frequencies like TSOP1740 can receive 40 kilohertz signal and so on. . ‡ For generating the carrier signal separate astable multivibrator is used. We can also use resistors instead of potentiometers.

‡ . ‡ Vout is connected to p3. gnd and Vout.Receiver section TSOP 17xx IC is used for receiving infrared signals from transmitter section. ‡ This IC has three pins named as Vs.4 pin of the microcontroller. ‡ Here xx shows the range of TSOP which varies from 30khz to 56khz.

‡ Then final decision will be taken by controller to close or open the main door.tv. ‡ Other controls of the room like fan. . are in the hands of the owner of the house/firm by remote control. ‡ Each person of the family/firm has assigned the password. ‡ After entering the password controller first checks the password whether it right or wrong.Design of project ‡ First of all the entry of the person is comes into notice as shown in first block of the flow chart.light etc.

4 TSOP1738 LCD DISPLAY AT89C51 fan tv light Etc.Working of the project Preview of the project P3. .

‡ According to the the function of ir sensors when person crosses the ir sensors then dc motor will open the gate. ‡ Within a moment lcd which is connected to the main door will on. ‡ For entering into the room the person has to enter the password.Some points regarding working of the main project as follows: ‡ IR sensors are connected at the main gate of the firm. . ‡ After that microcontroller will check whether the pasword right or wrong. ‡ Main door will be open afer the decision of the controller section. ‡ After some delay dc motor will automatically close the door.

‡ Between controller and motor.‡ Second dc motor is also connected with the controlling section. ‡ Optocoupler is used as a isolator between controller and motor. whose work is to open or close the main door. ‡ Opening and closing of the door will depend upon the rotation and direction of motor. we use optocoupler. ‡ Person can control various home appliances by just pressing the button of remote. ‡ IR waves can be received by special receiver known as TSOP and its connection to controller are shown in figure given below. .

CONNECTION OF TSOP TO CONTROLLER .

3 D1 IR LED 1 38KHz1 R2 1K 1 2 330E Q2 BC557 3 U4D 8 74HC00 7 SW1 1 +5V 2 3 4 7 6 5 13 74HC04 7 7 2 R3 10k 5 74HC04 14 GND TR Q R U2 NE555 2 C3 C R4 10k VCC DIS THR CV U4C 6 9 14 3 1 8 +5V 4 2 3 SW PUSHBUTTON-SPST-2 1KHz C 1 Title Transmitter Size A Date: Document Number <Doc> Wednesday . December 16.D2 J2 1 2 3 CON3 +5V GND TR Q R U1 NE555 2 C1 C2 +5V 14 U4A 2 74HC04 7 3 74HC04 7 1 3 2 14 U3A R1 14 U4B 4 +5V 10k POT VCC DIS THR CV 1 1 2 3 4 8 7 2 6 5 33 10k POT DIODE DIODE D3 CAPACITOR 1 U5 L7805/TO220 VIN +5V GND VOUT Supply ckt. 2009 Sheet 1 of 1 Rev <Rev Code> .

Block diagram of complete project .

Software Section main_gate bit p3....... inputs to 8051 via gate_sensor ..0 VAR1 equ r7 ..7 setb p2..... org 0000h setb p3...............Flip bit IR equ P3......Temporary Variable COUNTequ 11H ..Count ADDR equ 12H .Device address FLIP bit 00H ...4 cmd equ 13h temp equ 14h ...0 ..program starts here..7 entry_gate bit p2.

.42 sec for this subroutine only djnz r3..rep clr p2...4 ... clr p2..#4 acall delay_long djnz r3..person detection & opening of door1.. motor1 starts.acall delay_long . mov r3.. lcd initialisation acall time_pass rep: rep1: rep2: .....4 jnb main_gate.3 ... jb main_gate ..rep1 setb p2..3 mov r3. delay of 1...rep2 clr p2.......3 acall lcd_set_up .......lcd initialisation..$ acall delay setb p2....entry gate.......... motor rotates in reverse direction.$ mov r3...#4 acall delay_long djnz r3..#4 acall delay_long .

#00001111b...#00001111b cjne a...k1 k2: acall delay mov a...........6.#04h ...acall door_lock ljmp main . ram locations (64.......here it is "8051" mov r0..p1 anl a...p1..over sjmp k2 acall delay mov a.#00001111b cjne a...4 are rows & others are columns mov a.over1 sjmp k2 K1: over: ....7.p1...67) for storing the 4 digits entered by user mov p1. door_lock: m1: mov b..#0fh ..#00001111b cjne a...#00001111b.#00h mov r1...66..p1 anl a.#64h ... jump to tsop 1738 sub routine..65...p1 anl a.5... p1. ..p1.......#00001111b... count for 4 digit lock code.

#00001111b.#11101111b mov a.#00001111b.#00001111b cjne a.#11011111b mov a.#10111111b mov a.row_0 mov p1.#kcode1 sjmp find mov dptr.#00001111b cjne a.#kcode2 sjmp find rrc a jnc match inc dptr sjmp find .row_2 ljmp k2 mov dptr.over1: row_0: row_1: row_2: find: mov p1.p1 anl a.row_1 mov p1.#00001111b.#00001111b cjne a.p1 anl a.#kcode0 sjmp find mov dptr.p1 anl a.

match: NEXT1: GO: COMP: ag: compare: clr a movc a.#01H acall command LJMP m1 mov @r0.@a+dptr CJNE A.#'A'.@r0 cjne a.GO SJMP COMP LJMP K1 acall compare mov a.NEXT1 mov a.#80H acall command ljmp m1 mov r0.error inc r0 .ag ret mov a.#64h mov a.a acall data_display inc r0 djnz r1.'R'.#'8'.b cjne a.

#'A' acall data_display .#01 acall command mov a.#'5'.#'N' acall data_display mov a.@r0 cjne a.#'I' acall data_display mov a.mov a.@r0 cjne a.error inc r0 mov a. #80h acall command mov a.error inc r0 mov a.#'1'.error acall ok ret error: mov a.@r0 cjne a.#'V' acall data_display mov a.#'0'.

.#'D' acall data_display RET ok: mov a. entry to house if code matches .0 clr p3.#01 acall command mov a.$ acall delay setb p3...#'O' acall data_display mov a.mov a.#80H acall command mov a.#'K' acall data_display mov b.#'L' acall data_display mov a..'R' .door2 will open & remote device will get ON jb entry_gate .1 ...#'I' acall data_display mov a.

..1 mov r3.rep4 setb p3............................‡ rep3: mov r3.....$ mov r3......................... ............................... delay of 1.............#4 rep4: acall delay_long djnz r3............ main: setb ir mov VAR1...............rep3 clr p3.0 jnb entry_gate....................3..#255 ..........................rep5 clr p3....024mS delay djnz VAR1.tsop remote functioning starts here.42 sec for this subroutine only djnz r3..... .........#255 .1 RET .............#4 acall delay_long .$ mov VAR1..#4 rep5: acall delay_long djnz r3....

IR .Count for address .#255 djnz VAR1.#255 djnz VAR1.IR mov FLIP.#5 fadd: mov VAR1.$ mov c.djnz VAR1.#4 djnz VAR1.Read Flip bit .$ mov VAR1.1.$ mov VAR1.$ mov VAR1.$ mov VAR1.#100 djnz VAR1.$ mov VAR1.$ mov VAR1.#255 djnz VAR1.$ mov c.728mS delay for each bit .#255 djnz VAR1.#255 djnz VAR1.c clr A mov COUNT.#255 djnz VAR1.$ mov VAR1.

#01h acall command mov a.#255 djnz VAR1.ADDR .#80h .#6 ..A .1.CMD .#4 djnz VAR1.$ mov VAR1.#255 ...Count for Command fcmd: mov VAR1.IR rlc a djnz COUNT.$ mov VAR1.nvalid .#255 djnz VAR1.Save the old command mov CMD.fcmd .728mS Delay for each bit djnz VAR1.#00.$ mov VAR1.Save the address clr a mov COUNT.Save the new command mov a.$ mov c.a .rlc a djnz COUNT.Cheack for valid address cjne a.fadd mov ADDR. address is always zero for our remote device mov a. mov TEMP.

r3 acall dat acall ready mov p0.acall command acall conv acall data_display2 clr a acall delay_long nvalid: ljmp main data_display2: acall ready mov p0.5 clr p2.a clr p2.6 setb p2. .r4 acall dat acall ready mov p0.r2 acall dat ret command: acall ready mov p0.

h20 djnz r0.#10 h22: mov r1.#255 h21: djnz r2.a setb p2.6 setb p2.7 nop clr p2.5 clr p2.h21 djnz r1.#255 h20: mov r2.7 ret delay: mov r0.h1 djnz r0.#255 h2: mov r1.h2 ret delaylong: mov r0.7 ret .#255 h1: djnz r1.nop clr p2.h22 ret data_display: acall ready mov p0.

#38h acall command mov a.7 nop clr p2.7 jb p0.dat1 ret dat: setb p2.7 nop setb p2.6 dat1: clr p2.5 setb p2.#01h acall command mov a.#0eh acall command mov a.6 setb p2.7.ready: setb p07 clr p2.7 ret lcd_set_up: mov a.#06h acall command ret .5 clr p2.

a mov a.#10 div ab mov r2.#30h mov r4.a mov a.time_pass: again: next: conv: mov a.@a+dptr jz next inc dptr acall data_display sjmp again ret mov a.r2 orl a.b orl a.#10 div ab orl a.#80h acall command mov dptr.#msg1 clr a movc a.cmd mov b.#30h .b mov b.#30h mov r3.

'A'.'6'.'B' end ‡ .0 .'2'.ASCII Lck Up Table For Each Row.'1'. kcode0: db '0'.'7' kcode2: db '8'.'3' kcode1: db '4'.ret msg1: db"ENTER THE PASSWORD".'9'.'5'.

THANKS .

Sign up to vote on this title
UsefulNot useful