Professional Documents
Culture Documents
BACHELOR OF TECHNOLOGY
In
[1]
TABLE OF CONTENT
Certificate
Abstract
Declaration
Acknowledgement
Objective
Introduction
Component used- Part A
Component used-Part B
555 integrated circuit
IC-555 Astable operation
Schematic for constant HV power supply
Condenser Microphone
Capacitor
Piezo buzzer
Relay
Telemetry circuit explanation
Working of telephone cradle switch
Dual tone multiple frequency encoder
Working of system
C program embedded code
Applications
Bibliography
3
4
5
6
7
8
10
11
12
15
16
19
21
22
23
25
26
30
32
37
40
41
CERTIFICATE
[2]
Date:
Project guide:
(Prof. R.N.CHAUBAY)
ABSTRACT
[3]
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.
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
[4]
institute of the higher leaning except where due acknowledgement has been made
in the text.
Signature:
Name:MOHIT AWASTHI
Roll No.:
Date:
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.
[5]
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:
Roll no.
Date:
MOHIT AWASTHI
[6]
CHAPTER :- 1
Project Overview
[7]
1. Introduction Of Project
1.1 Project Definition:
Project title is AUTOMATIC ROOM LIGHT CONTROLLER
WITH BIDIRECTIONAL VISITOR COUNTER .
The objective of this project is to make a controller based model
to count number of persons visiting particular room and accordingly
light up the room. Here we can use sensor and can know present
number of persons.
In todays world, there is a continuous need for automatic
appliances with the increase in standard of living, there is a sense of
urgency for developing circuits that would ease the complexity of life.
Also if at all one wants to know the number of people present in
room so as not to have congestion. This circuit proves to be helpful.
[9]
CHAPTER :- 2
BLOCK DIAGRAM AND
ITS DESCRIPTION
[10]
Enter
Enter Sensor
Exit Sensor
Signal
Conditioning
Signal
Conditioning
Power Supply
Exit
A
T
8
9
S
5
2
Relay Driver
Light
LCD
INTERFACING
[11]
[12]
using
Atmels
high-density
nonvolatile
nonvolatile
memory
programmer.
By
effective
solution
so
many
embedded
control
applications.
4.
Relay Driver Circuit:This block has the potential to drive the various
controlled devices. In this block mainly we are using the
transistor and the relays. One relay driver circuit we are using
to control the light. Output signal from AT89S52 is given to
the base of the transistor, which we are further energizing the
[13]
[14]
CHAPTER :- 3
SCHEMATIC DIAGRAM
[15]
Transmission Circuit:-
[16]
Receiver Circuit:-
[17]
CIRCUIT DESCRIPTION:
There are two main parts of the circuits.
1. Transmission Circuits (Infrared LEDs)
2. Receiver Circuit (Sensors)
1. Transmission Circuit:
[18]
[20]
2.Receiver Circuit:
[22]
CHAPTER :- 4
HARDWARE DESIGN & DESCRIPTIONS
Hardware Design:-
Infrared Sensor
TSOP1738
Microcontroller
AT89S52
[23]
Timer IC
555
7-Segment
Display
Relay
[24]
[25]
4.3
Description of Components
4.3.1 Microcontroller AT89S52:
The AT89S52 is a low-power, high-performance CMOS 8-bit
microcontroller with 8K bytes of in-system programmable Flash
memory. The device is manufactured using Atmels high-density
nonvolatile memory technology and is compatible with the
Industry-standard 80C51 instruction set and pin out. The on-chip
Flash allows the program memory to be reprogrammed in-system
or by a conventional nonvolatile memory pro- grammar. By
combining a versatile 8-bit CPU with in-system programmable
[27]
FEATURES:[28]
8 KB Reprogrammable flash.
32 Programmable I/O lines.
16 bit Timer/Counter3.
8 Interrupt sources.
Power range: 4V 5.5V
Endurance : 1000 Writes / Erase cycles
Fully static operation: 0 Hz to 33 MHz
Three level program memory lock
Power off flag
Full duplex UART serial channel
Low power idle and power down modes
Interrupt recovery from power down modes
256 KB internal RAM
Dual data pointer
[29]
Description:
[31]
Application Circuit:
[32]
Applications:
Precision timing
Pulse generation
Sequential timing
Time delay generation
Pulse width modulation
Pulse position modulation
Linear ramp generator
[34]
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]
Features:
[36]
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
[38]
CHAPTER :- 5
SOFTWARE DESIGN
[39]
FLOW CHART:
[40]
[41]
Program
;
;DATED:12/12/2010
;
;REGISRETS
INFO
;
________________________________________________
________________________________________________
__
;R0=
;R1=USED
;R2=
;R3=USED
;R4=USED
;R5=USED
;R6=USED
;R7=USED
;PIN
CONFIG.
;
________________________________________________
[42]
________________________________________________
__
;p0=lcd data
;p2.0lcdcontrol
;p2.1lcdcontrol
;p2.5lcdcontrol
;p3.2ISR
;p3.3led
;p3.4led
;p3.6led
;p3.7led
;OBJECTIVE:TOPREPAREAAUTO_CONTROLLEDROOM
WITHVISITOR
COUNTER__________________________________
;
________________________________________________
________________________________________________
___
;
$mod51
org0h
ajmpmain
org003h
acallisr
reti
org0030h
main:
movie,#81h
[43]
movr5,#00
movr7,#00
acalldelay
;LCD
INITIALIZATION
;
________________________________________________
________________________________________________
___
cjner7,#00,main2
movdptr,#mycom
c1:clra
movca,@a+dptr
acallcomnwrt
jzsend_dat
incdptr
sjmpc1
main2:sjmpmain2
send_dat:movdptr,#mydata
d1:
clra
movca,@a+dptr
jzagain
acalldatawrt
acalldelay2
incdptr
again:sjmpd1
[44]
;INTERRUPTSERVICE
ROUTIEN
;
________________________________________________
________________________________________________
___
isr:clra
incr7
movdptr,#mycom1
cmnd:acallcomnwrt2
jzchk
incdptr
sjmpcmnd
acalldelay
chk:cjner5,#00,loop1
movr6,#30h
ajmpnext1
loop1:cjner5,#01,loop2
movr6,#31h
acalllights3
ajmpnext1
loop2:cjner5,#02,loop3
movr6,#32h
acalllights2
ajmpnext1
loop3:cjner5,#03,loop4
movr6,#33h
acalllights1
ajmpnext1
[45]
loop4:cjner5,#04,loop5
movr6,#34h
acalllights
ajmpnext1
loop5:cjner5,#05,loop6
movr6,#35h
ajmpnext1
loop6:cjner5,#06,loop
movr6,#36h
ajmpnext1
next1:clra
mova,r6
acallincrmnt
acalldatawrt2
acalldelay3
loop:reti
;
Subroutiens
;
________________________________________________
__________________________________________
comnwrt:movp0,a
clrp2.0
clrp2.1
setbp2.5
acalldelay
clrp2.5
[46]
ret
incrmnt:incr5
ret
comnwrt2:clra
movca,@a+dptr
movp0,a
clrp2.0
clrp2.1
setbp2.5
acalldelay
clrp2.5
ret
lights:clrp2.3
acalldelay
lights1:clrp3.4
acalldelay
lights2:clrp3.6
acalldelay
lights3:clrp3.7
acalldelay
ret
datawrt:
movp0,a
setbp2.0
clrp2.1
setbp2.5
acalldelay2
clrp2.5
ret
[47]
datawrt2:
movp0,a
setbp2.0
clrp2.1
setbp2.5
acalldelay3
clrp2.5
ret
;
DELAYS
;
________________________________________________
______________________________________________
delay:
movr3,#250
here2:
movr4,#255
here:djnzr4,here
djnzr3,here2
ret
delay2:movr1,#05h
back:
movtmod,#01h
movth0,#04ch
movtl0,#00h
setbtr0
jnbtf0,$
clrtf0
djnzr1,back
[48]
ret
delay3:movr1,#50h
back1:
movtmod,#01h
movth0,#04ch
movtl0,#00h
setbtr0
jnbtf0,$
clrtf0
djnzr1,back1
ret
org300h
mycom:db38h,0eh,01h,06h,80h,0
mycom1:db38h,0eh,01h,0ch,87h,0
mydata:db'wlcm2amrapali',0
end
[49]
CHAPTER :- 6
TESTING AND RESULTS
I had issues with better or correct result, which I desired. And also
the software problem.
I also had some soldering issues which were resolved using
continuity checks performed on the hardware.
We had issues with better or correct result, which we desired. And
also the software problem.
We also had some soldering issues which were resolved using
continuity checks performed on the hardware.
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.
As the solder was shorted IC 7805 got burnt. So we replaced the
IC7805.also the circuit part around the IC7805 were completely
damaged..with the help of the solder we made the necessary paths.
[51]
CHAPTER :- 7
FUTURE EXPANSION
[52]
FUTURE EXPANSION
By using this circuit and proper power supply we can implement
various applications
Such as fans, tube lights, etc.
By modifying this circuit and using two relays we can achieve a
task of opening and closing the door.
[53]
CHAPTER :- 8
APPLICATION, ADVANTAGES & DISADVANTAGES
[54]
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.
[55]
CHAPTER :- 8
BIBILOGRAPHY
Bibliography
Reference Books
Programming in ANSI C: E BALAGURUSAMY
The
8051microcontroller
MUHAMMAD ALI MAZIDI
and
embedded
systems:
JANICE GILLISPIE
MAZIDI
[56]
[57]