Professional Documents
Culture Documents
[1]
TABLE OF CONTENT
Certificate 3
Abstract 4
Declaration 5
Acknowledgement 6
Objective 7
Introduction 8
Component used- Part A 10
Component used-Part B 11
555 integrated circuit 12
IC-555 Astable operation 15
Schematic for constant HV power supply 16
Condenser Microphone 19
Capacitor 21
Piezo buzzer 22
Relay 23
Telemetry circuit explanation 25
Working of telephone cradle switch 26
Dual tone multiple frequency encoder 30
Working of system 32
C program embedded code 37
Applications 40
Bibliography 41
[2]
CERTIFICATE
Project guide:
(ast. Prof TARUN BHATT)
[3]
ABSTRACT
The fear of theft and burglary always annoys many people. When lock and keys
become less safe, one can seek the help of electronic security systems.
Such a portable security system is described here.
This electronic setup auto activated whenever the intruder enters to the
unauthorized no entry area. It auto activate the landline number and redial the last
dialed number from the conventional telephone. All we need is to do minor
changes to activate this telephone as it works as to become auto dialer circuit.
Thus whenever the intruder enters to the area, it activates the sensor circuit
of either sound activation or infrared light beam obstruction circuit, the redial
circuit become active and give a ring tone to the receiving end. It may be a mobile
phone or any landline phone or even police control room.
[4]
DECLARATION
I hereby declare that this submission is own work and that, to the best of my
knowledge and belief, it contains no material previously published or written by
another person nor material which to a substantial extend has been accepted for the
award of the award of any other degree or diploma of the university or other
institute of the higher leaning except where due acknowledgement has been made
in the text.
Signature:
Name: AKSHAY
Date:
[5]
ACKNOWLEDGEMENT
First and foremost, I am deeply indebted to my mentor Ast. Prof. SATYJEET DAS
who inspiration has been unfailingly available to me at all stages of my training.
This has fueled my enthusiasm even further and encouraged me to boldly step into
what was a totally dark and unexplored expanse before me.
I would like to thank Prof. Y.K SAH for his efforts, who was always ready with a
positive comment, whether it was an off-hand comment to encourage me or
constructive piece of criticism.
In course of present work it has been my privilege to receive help and assistance of
my friends. I take great pleasure in acknowledge my debt to them.
I wish to thank my parents for their undivided support and interest who inspired
me and encouraged me to go my own way, without whom I would be unable to
complete my project. At last but not the least I want to thank my friends who
appreciated me for my work and motivated me and finally to God who made all the
things possible.
Signature:
Name: Anubha Upreti
Roll no. 07020102007
Date:
[6]
CHAPTER :- 1
Project Overview
[7]
1. Introduction Of Project
1.2Project Overview
[8]
This Project “Automatic Room Light Controller with Visitor
Counter using Microcontroller is a reliable circuit that takes over the
task of controlling the room lights as well us counting number of
persons/ visitors in the room very accurately. When somebody enters
into the room then the counter is incremented by one and the light in the
room will be switched ON and when any one leaves the room then the
counter is decremented by one. The light will be only switched OFF
until all the persons in the room go out. The total number of persons
inside the room is also displayed on the seven segment displays.
[9]
CHAPTER :- 2
BLOCK DIAGRAM AND ITS
DESCRIPTION
[10]
2.1 Basic Block Diagram
Enter Exit
Enter Sensor Signal Relay Driver
Conditioning A
T
Exit Sensor 8
Signal Light
Conditioning 9
S
5
Power Supply 2
LCD
INTERFACING
[11]
2.2 Block Diagram Description
1. Power Supply:-
Here we used +12V and +5V dc power supply. The
main function of this block is to provide the required amount
of voltage to essential circuits. +12 voltage is given. +12V is
given to relay driver. To get the +5V dc power supply we
have used here IC 7805, which provides the +5V dc regulated
power supply.
[12]
(LDR). By using this sensor and its related circuit diagram
we can count the persons.
3. 89S52 Microcontroller:-
It is a low-power, high performance CMOS 8-bit
microcontroller with 8KB of Flash Programmable and
Erasable Read Only Memory (PEROM). The device is
manufactured using Atmel’s high-density nonvolatile
memory technology and is compatible with the MCS-51TM
instruction set and pin out. The on-chip Flash allows the
program memory to be reprogrammed in-system or by a
conventional nonvolatile memory programmer. By
combining a versatile 8-bit CPU with Flash on a monolithic
hip, the Atmel AT89S52 is a powerful
Microcontroller, which provides a highly flexible and
cost effective solution so many embedded control
applications.
[13]
to control the light. Output signal from AT89S52 is given to
the base of the transistor, which we are further energizing the
particular relay. Because of this appropriate device is selected
and it do its allotted function.
[14]
CHAPTER :- 3
SCHEMATIC DIAGRAM
[15]
Transmission Circuit:-
[16]
Receiver Circuit:-
[17]
CIRCUIT DESCRIPTION:
1. Transmission Circuit:
[19]
[20]
2.Receiver Circuit:
[22]
CHAPTER :- 4
HARDWARE DESIGN & DESCRIPTIONS
Hardware Design:-
[24]
In the beginning I designed the circuit in DIPTRACE software.
Dip trace is a circuit designing software. After completion of the
designing circuit I prepared the layout.
[25]
4.2 List of Components:
Microcontroller – AT89S52
IC – 7805
Preset – 4.7K
7-Segment Display
[26]
4.3 Description of Components
[27]
microcontroller which provides a highly-flexible and cost-effective
solution to many embedded control applications.
FEATURES:-
[28]
8 KB Reprogrammable flash.
16 bit Timer/Counter—3.
8 Interrupt sources.
[29]
4.3.2 TSOP1738 (INFRARED SENSOR)
Description:
Features:
[30]
Photo detector and preamplifier in one package
Internal filter for PCM frequency
Improved shielding against electrical field disturbance
TTL and CMOS compatibility
Output active low
Low power consumption
High immunity against ambient light
Continuous data transmission possible (up to 2400 bps)
Suitable burst length .10 cycles/burst
Block Diagram:
Application Circuit:
[31]
Fig. 4.4 Application circuit
[32]
4.3.3 555 ( TIMER IC):
Description:
Features:
Direct replacement for SE555/NE555
Timing from microseconds through hours
Operates in both astable and monostable modes
[33]
Adjustable duty cycle
Output can source or sink 200 mA
Output and supply TTL compatible
Temperature stability better than 0.005% per °C
Normally on and normally off output
Available in 8-pin MSOP package
Applications:
Precision timing
Pulse generation
Sequential timing
Time delay generation
Pulse width modulation
Pulse position modulation
Linear ramp generator
Description:
[34]
chips, which are made from GaAsP on GaP substrate, and
has a red face and red segment.
Features:
Common Anode
0.52 Inch Digit Height
Continuous Uniform Segments
Low power Requirement
Excellent Characters Appearance
High Brightness & High Contrast
Wide Viewing Angle
[35]
[36]
4.3.5 LM7805 (Voltage Regulator)
Description:
The KA78XX/KA78XXA series of three-terminal
positive regulator are available in the TO-220/D-PAK
package and with several fixed output voltages, making them
useful in a wide range of applications. Each type employs
internal current limiting, thermal shut down and safe
operating area protection, making it essentially indestructible.
If adequate heat sinking is provided, they can deliver over 1A
output current. Although designed primarily as fixed voltage
regulators, these devices can be used with external
components to obtain adjustable voltages and currents.
[37]
Features:
Output Current up to 1A
Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V
Thermal Overload Protection
Short Circuit Protection
Output Transistor Safe Operating Area Protection
[39]
CHAPTER :- 5
SOFTWARE DESIGN
[40]
FLOW CHART:
[41]
Fig. 4.7 Flow Chart
[42]
Program
;---------------------
;DATED:12/12/2010
;---------------------
;-------------------------------REGISRETS
INFO-----------------------------------------------------
;
__________________________________________________________
________________________________________
;R0=
;R1= USED
;R2=
;R3= USED
;R4= USED
;R5= USED
;R6= USED
;R7= USED
;---------------------------------PIN-
CONFIG.------------------------------------------------------
;
__________________________________________________________
________________________________________
;p0=lcd data
;p2.0 lcd control
;p2.1 lcd control
[43]
;p2.5 lcd control
;p3.2 ISR
;p3.3 led
;p3.4 led
;p3.6 led
;p3.7 led
$mod51
org 0h
ajmp main
org 003h
acall isr
reti
org 0030h
main:
mov ie,#81h
mov r5,#00
mov r7,#00
acall delay
;----------------------LCD
INITIALIZATION-----------------------------------------------------------
[44]
;
__________________________________________________________
_________________________________________
cjne r7,#00,main2
mov dptr,#mycom
c1: clr a
movc a,@a+dptr
acall comnwrt
jz send_dat
inc dptr
sjmp c1
main2: sjmp main2
inc dptr
again: sjmp d1
;----------------------------INTERRUPT SERVICE
ROUTIEN----------------------------------------------
;
__________________________________________________________
_________________________________________
isr: clr a
inc r7
mov dptr,#mycom1
cmnd: acall comnwrt2
[45]
jz chk
inc dptr
sjmp cmnd
acall delay
[46]
ajmp next1
next1: clr a
mov a,r6
acall incrmnt
acall datawrt2
acall delay3
loop: reti
;---------------------
Subroutiens----------------------------------------------------------
;
__________________________________________________________
________________________________
datawrt:
mov p0,a
setb p2.0
clr p2.1
setb p2.5
acall delay2
clr p2.5
ret
datawrt2:
mov p0,a
setb p2.0
clr p2.1
setb p2.5
acall delay3
clr p2.5
ret
;--------------------------------------------
DELAYS--------------------------------------------
;
__________________________________________________________
____________________________________
[48]
delay:
mov r3,#250
here2:
mov r4,#255
here: djnz r4,here
djnz r3,here2
ret
org 300h
mycom: db 38h,0eh,01h,06h,80h,0
mycom1: db 38h,0eh,01h,0ch,87h,0
mydata: db 'wlcm 2 amrapali',0
[49]
end
CHAPTER :- 6
TESTING AND RESULTS
[50]
Testing And Results
I had issues with better or correct result, which I desired. And also
the software problem.
[51]
We started testing the circuit from the power supply. There we got
over first trouble. After getting 9V from the transformer it was not
converted to 5V and the circuit received 9V.
[52]
CHAPTER :- 7
FUTURE EXPANSION
[53]
FUTURE EXPANSION
[54]
CHAPTER :- 8
APPLICATION, ADVANTAGES & DISADVANTAGES
[55]
Application
o For counting purposes
o For automatic room light control
Advantages
o Low cost
o Easy to use
o Implement in single door
Disadvantages
o It is used only when one single person cuts the rays of the
sensor hence it cannot be used when two person cross
simultaneously.
[56]
CHAPTER :- 8
BIBILOGRAPHY
Bibliography
[57]
Reference Books
Programming in ANSI C: E BALAGURUSAMY
JANICE GILLISPIE
MAZIDI
Website
www.datasheets4u.com
www.8051.com
[58]