Integrated Burglar Alarm System
Integrated Burglar Alarm System
Integrated Burglar Alarm System
FACULTY OF ENGINEERING
BY
F17/2362/2005
of
Submitted on:
To my 6 Closest:
ii
ACKNOWLEDGEMENTS
My first and greatest thanks go to the Almighty for his unconditional and immeasurable
guidance and counsel during the preparation of this project. His unfailing love and providence
is what has made all efforts geared towards this project materialize.
I feel greatly indebted to the Department of Electrical and Information Engineering staff for
their continued support. Their useful insights in helping me organize my ideas into a tangible
research project.
I want to thank my family- the Waithaka family for their sacrifice, commitment, material and
financial support that has seen me through university. Special thanks go to Joseph Mose for
his love and sacrifice, mentorship and encouragement.
Finally, my heartfelt gratitude goes to my closest friends James Wanyiri, John Munyoki,
Dominic Barngetuny and not forgetting Lucy Ragae. Your wisdom, sacrifice and positive
view of life has been my greatest inspiration. You have been a source of strength and
motivation for me during this challenging period.
THANK YOU.
iii
DECLARATION AND CERTIFICATION
This BSc. work is my original work and has not been presented for a degree award in this or
………………………………………..
F17/2362/2005
This report has been submitted to the Dept. of Elect and Info Engineering, University of
………………………………
DR. KAMUCHA
Date…………………………….
iv
ABSTRACT
The problem definition required an in-depth study regarding integrated burglar alarm systems.
The alarm was designed to go on due to any of the following conditions which are monitored
on PC: entry of burglar, door is opened and door handle is locked.
v
TABLE OF CONTENTS
DEDICATION .............................................................................................................i
ACKNOWLEDGEMENT ................................................................................................... ii
DECLARATION AND CERTIFICATION.......................................................................... iii
ABSTRACT .......................................................................................................................... iv
TABLE OF CONTENTS ...................................................................................................... v
CHAPTER TWO
2.1 Basic sensor technology .................................................................................................. 3
...............................................................................................................................................
2.2 Motion sensors ................................................................................................................ 3
2.2.1 Passive infrared sensors ............................................................................................... 4
2.2.2 Ultrasonic detectors...................................................................................................... 4
2.2.3 Microwave sensors ...................................................................................................... 5
2.2.4 Photoelectric sensors .................................................................................................... 5
2.2.5 Dual technology detectors ........................................................................................... 6
2.2.5 Active infrared sensors................................................................................................. 6
...............................................................................................................................................
2.3 Magnetic contacts............................................................................................................ 6
2.4 Mechanical switches ....................................................................................................... 7
2.5 Signal conditioning ......................................................................................................... 7
2.6 Bipolar Junction transistor. ............................................................................................. 7
2.6.1 NPN Bipolar Transistor................................................................................................ 8
vi
2.6.2 PNP Bipolar Transistor. ............................................................................................... 8
2.6.3 Mode of operation of BJT ............................................................................................ 9
2.7 Parallel port .................................................................................................................... 10
APPENDIX A
VERSION 5.00.......................................................................................................... 32
REFERENCES...................................................................................................................... 40
vii
viii
CHAPTER ONE
INTRODUCTION.
Crime rates in Kenya have been on the increase lately. Hardly does a day pass without
hearing cases of home burglary. Not only do people lose their property to the robbers but
also lose lives when they try to put up a spirited fight against the robbers who are armed.
As a result, people have been living in constant fear of being attacked by robbers.
Installing of a burglar alarm system can protect homes from burglars and criminals.
Office premises, warehouses, banks etc have premises which are out of bounds to many
individual with the exception of a few select employees. Managers and employers are in
constant fear that people will gain entry into unauthorized premises and make away with
alarm system to monitor for any intrusion into the unauthorized premises.
Burglar alarm efficiency depends on the type of zone being triggered within your
property. The desired output of your burglar alarm system causes a specified alarm output
and quickly responds whenever the sensors identify valid conditions which have activated
the alarm. The unit’s ability in communicating back to its monitoring system is truly a
To design an integrated alarm system which will go on due to any of the following
conditions which are monitored on a PC: entry of burglar, door is opened and door handle
is locked.
1
1.3 Project scope
iv. To develop software for the PC which will indicate with the entry of burglar, door is
This report has been arranged into six chapters. In chapter two, a discussion of the major
motion sensors, mechanical switches, magnetic contacts and transistors has been considered.
In chapter 3, the design decision for the components in the circuit design has been discussed.
In chapter four, the design process of integrated alarm system has been discussed. This
chapter also includes designing of the software used to monitor the integrated alarm system.
Chapter six gives the conclusion and the recommendation for improvements and further
2
CHAPTER TWO
A sensor is a device that converts a physical phenomenon into an electrical signal. As such
sensors represent part of the physical world and the world of electrical devices such as,
computers. The other part of this interface is represented by actuators, which converts
A sensor does not function by itself; it is always part of a larger system does not function by
itself; it is always a part of a larger system that may incorporate many other detectors, signal
conditioners, signal processors, memory devices , data recorders and actuators [2]. The
sensor may be positioned at the input of a device to perceive the outside effects and to signal
the system about variations in the outside stimuli. A sensor may also be an internal part of
device that monitors the devices own state to cause the appropriate performance.
Sensors are used to measure basic physical phenomena including: acceleration, angular/ linear
position, chemical / gas concentration, humidity, flow rate, force, magnetic fields, pressure,
proximity, sound, temperature, velocity e.t.c. sensors are categorized according to the kind of
energy they detect and convert. These categories are: acoustic, chemical, electromagnetic,
These are two basic kinds of motion detector sensors. They are based on how they detect
motion. The first type is called an active sensor. An active motion sensor requires some form
of external power to operate called an excitation signal which is used by the sensor to produce
an output signal. The other type of sensor is the passive one which does not need any
additional energy source and directly generates an electrical signal in response to an external
3
stimulus [3]. Interior motion sensors include passive infrared, active infrared, photoelectric,
dual technology, ultrasonic and microwave sensors which detect charges in a room caused by
a human presence.
Passive infrared sensors (PIR) work by detecting heat emitted by people or objects. When the
detected heat moves across two or more of the sensor’s switching zones that a sensor has, the
more sensitive the sensor is and the smaller the movement that it can detect [4]. A PIR sensor
is able to reliably distinguish moving bodies from other objects as well as stationary bodies.
The advantages of PIR sensors lies particularly in its very easy installation which can be
installed by in-house technician, reduced cost as compared to other sensors, small size and its
availability in the local market. However, a PIR sensor may take ‘some time’ to detect motion
depending on the ‘apparent background’. In addition, during hot days, a brick wall which is
struck by the sun becomes very hot and even a human moving in front of it is not ‘noticeable’
The active ultrasonic sensor is a motion detecting device that emits ultrasonic sound energy
into a monitored area and reacts to a change in the reflected energy pattern. Ultrasonic sensors
use a technique based on a frequency shift in reflected energy to detect intruders. Ultrasonic
sound is transmitted from the device in the form of energy. the sound uses air as its reflected
back from the surroundings in the room / hallway and the device ‘hears’ a pitch characteristic
of the protected environment. When an intruder enters the room, the wave pattern is disturbed
and reflected back more quickly thus increasing the pitch and signaling an alarm [6]. When
4
used for sensing functions, the ultrasonic method has unique advantages over conventional
sensors:
Less affected by target materials and surfaces and not affected by colour.
Ultrasonic sensors offer the following disadvantages when used a motion detector:
Don’t detect very fast or slowly moving objects and hence an intruder could hide
behind an object and move across the sensor’s viewable area and not set off [8].
and receiver, creating an invisible volumetric detection zone. When an intruder enters the
detection zone, changes to the field are registered and an alarm occurs [9].
The advantage of microwave sensors lies particularly in its ability to detect motion through
metal and other solid objects. However, they are most prone to false positives as they are not
Photoelectric beam sensors transmit a beam of infrared light to a remote receiver creating an
‘electronic fence’. These sensors are often used to ‘cover’ openings such as doorways or
5
hallways, acting essentially as a trip wire. Often once the beam is interrupted, an alarm signal
is generated [6].
Dual technology uses a combination of both microwave and passive infrared technology in
combination with AND logic to provide a lower false alarm rate (FAR) sensor than either of
Most infrared cells use cadmium sulphide or cds cells to detect infrared radiation. In an active
infrared system, an infrared laser shouts pulses of infrared light at the cds cell, which is
attached to a detector circuit. As the pulses of light comes the resistance of the cds cell drops,
producing a spike of current. If someone steps between the infrared laser and cell, the beam is
broken. The current in the detector circuit then drops, triggering the alarm.
Magnetic contacts are used to sense when a door or window has been opened. Contacts can be
surface mounted on a door or window or flush mounted so that they can be concealed when
the door or window is closed. They depend on the direct physical operation / disturbance of
Magnetic contacts are composed of two parts – a position magnetic switch mounted on the
interior of a door, window or container frame and a two position, magnetically operated
switch. When the door or window is closed, the magnet pulls the switch to its normal non
alarmed position. When the door or window is opened, the magnet releases the switch,
6
2.4 Mechanical switches
Mechanical switches detect the opening of a protected door or window using mechanical
contact switches, which are spring-loaded to trigger an alarm when a door or window is
opened [10]. Mechanical switches depend on direct physical operation or disturbance of the
To be usable, the signal from the sensor has to be amplified and then converted into digital
value for further analysis in software [10] key signed conditioning technologies provide
distinct enhancements to both the performance and accuracy of data acquisition systems [12].
Signal conditioners are measuring system elements that start with an electric sensor output
signal and then yield a signal suitable for transmission, display or recording or that better
electronic circuits performing any of the following functions: amplification, level of shifting,
filtering, impedance matching, modulation and demodulation. Some standards call the sensor
A bipolar junction transistor (BJT) is a three terminal device. The term bipolar means that the
BJT’s operation depend on the movement of two different carriers: electrons and holes. A
BJT is basically two PN junctions connected back to back within the same piece of
7
2.6.1 NPN Bipolar Transistor.
Figure 2.1 is a simplified illustration of the composition of the NPN type of transistor. An
For normal operation, the emitter base (EB) junction is forward biased and the collector base
(CB) junction reverse biased. The forward bias of the EB reduces the barrier voltage and
causes electrons to flow from the emitter to the base. Holes also flow from the base to the
emitter, but since the base is lightly doped than the emitter, almost all the current flow across
the junction consist of electrons to the base from the emitter. Thus electrons are the majority
FIGURE 2.1
between two layers of P-doped material.The PNP transistor works essentially the same as the
NPN transistor. However, since the emitter, base, and collector in the PNP transistor are made
of materials that are different from those used in the NPN transistor, different current carriers
8
flow in the PNP unit. The majority current carriers in the PNP transistor are holes. This is in
contrast to the NPN transistor where the majority current carriers are electrons.
A BJT can be biased into one of four possible modes. These are saturation, active, inverted
and cutoff. In the saturation mode, both the emitter-base and collector-base junctions are
forward biased. The active mode consists of a forward biased emitter-base junction and a
reverse biased collector-base junction. The inverted mode has the emitter-base junction
reverse biased while the collector-base junction is forward biased. Finally, in the cutoff mode
The behavior of the device under each of the four biasing modes can be understood as
follows:
i. The active mode is the most common mode for transistor amplification.
ii. In the saturation mode, both junctions are forward biased which corresponds to a high
current flow with a low voltage drop. The saturation mode corresponds to the “on”
state of the transistor in digital applications. Since the voltage of the device operated in
the saturation mode is low, the saturation mode corresponds to “zero” in digital binary
logic.
9
iii. In the cutoff mode, both junctions are reverse biased. As a result very little current
flows and there is a high voltage drop. The cutoff mode corresponds to the off state of
the device. Since the voltage drop is high in the cutoff mode (current is low) cutoff
represents a “1” in digital binary logic. We can conclude that when a device switches
from “1” to “0” it switches from cutoff to saturation. Likewise, when the device
switches from “0” to “1” it switches from “0” to “1” it switches from saturation to
cutoff.
The Parallel Port is the most commonly used port for interfacing homemade projects. This
port will allow the input of up to 9 bits or the output of 12 bits at any one given time, thus
requiring minimal external circuitry to implement many simpler tasks. The port is
composed of 4 control lines, 5 status lines and 8 data lines. It's found commonly on the
back of the PC as a D-Type 25 Pin female connector and is illustrated in Fig 2.3 and 2.4
below alongside its assignments.
10
Table 2.1 below shows standard pin Assignments of the D-Type 25 pin Parallel Port Connector.
11
CHAPTER THREE
PIR sensor detectors are very popular for security and energy management system. They are
small in size, inexpensive, consume low power, easy to install and have a long life time. PIRs
are basically made of pyroelectric materials which detect levels of infrared radiation.
Infrared radiation is that portion of the electromagnetic spectrum that extends from the long
wavelength, or red, end of the visible-light range to the microwave range. The IR band in the
electromagnetic spectrum ranges from 0.75 microns to 4000 microns in wavelength and
7.5*10^10 Hz to 4.0*10^4 Hz in frequency. Figure 3.1 represents the infrared region of the
electromagnetic spectrum.
Within the Infrared band, there are three basic categories: near-infrared, mid-infrared and far-
infrared. Far-infrared differs from the other two because it is thermal and is emitted from
12
objects instead of being reflected off to them. Any object that is above absolute zero emits
Human bodies generate heat whose radiation is strongest at a wavelength of 9.4 microns. The
radiation emitted is invisible to the human eye, but it is easier detected by electronic means.
Infrared radiation in the range of 9.4 microns will not pass though many types of materials
that pass visible light such as a transparent glass or plastic. However it will pass through, with
some attenuation, material that is opaque to visible light such as germanium and silicon. An
unprocessed silicon wafer makes a good IR window in a weatherproof enclosure for outdoor
use. In addition, it provides additional filtering for light in the visible range [15].
Pyroelectric elements are used almost exclusively for motion detection thanks to their
simplicity, low cost, high responsivity and broad dynamic range. A pyroelectric material
generates an electric charge in response to external energy flow through its body. Since all
pyroelectric are also piezoelectrics, the absorbed heat results in the expansion of the front side
of sensing element. The resulting heat induced stress lead to the development of piezoelectric
13
Depositing metal electrodes on both sides of a pyroelectric substrate forms specialized
structure of the pyroelectric substance causes a change in its temperature, which causes its
substance to expand and effectively increases the distance between the capacitor plates. This
causes an electric charge to be displaced in the material. The result of this displacement of
charge is a current which is amplified by a MOS transistor based amplifier built into as shown
in the figure 3.2 [1].Shown in figure 3.2 is a typical configuration where a pull-down resistor
is connected between the output of the pyroelectric sensor and the ground and feeds an
The purpose of the pull-down resistor is to convert FET current to a voltage. Hence the output
voltage is a function of the amount of infrared radiation sensed at the input [17].
The Fresnel lens was invented by a French physicist named Augustin Fresnel. A Fresnel lens
is a Plano convex lens that has been collapsed to itself to form a flat lens that retains its
optical characteristics but is much smaller in thickness and therefore has less absorption losses
[15].
14
A Fresnel lens is made of an infrared transmitting material that has an IR transmission range
of 8 to 14 microns which is most sensitive to human body radiation. A Fresnel lens array
monitors different spatial zones and concentrates the IR radiation from a body that moves
within the monitoring area. The Fresnel lens is designed only to make sure that the incident
IR radiation is concentrated on the pyroelectric detector surface [18]. Any movement between
the spatial zones leads to a change in the IR energy received by the sensors [19].
The signal from pyroelectric sensor is too small and needs to be amplified. Furthermore, the
signal contains high frequency noise which ought to be removed. A two stage amplifier
having signal conditioning circuits is employed to get the level of the signal right. The
The amplifier is followed by a window comparator that responds to both the positive and
negative transitions of the sensor output signal. A window comparator is a electronic circuit
used to indicate whether or not a voltage is within a range of values that is determined by two
15
FIGURE 3.2
From the figure 3.2, divider networks R1-R2 and R3-R4 are used to establish the upper and
16
3.2 Transistor Switches.
A transistor can be used as a solid state switch. When a transistor is to be used as a switch, it
has to be operated either in the cutoff mode (when it is not to conduct) or saturation region
(when it is to conduct) , but not in the active region. The transistor switching losses take place
when it is passing through the active region moving from cutoff to saturation and vice versa.
The power dissipated in the transistor is the product of the V CE and I C . For this reason, it is
necessary for the value of VCE to be as low as possible when the transistor is conducting, and
for the value of IC to be as low as possible when the transistor is off. Both of these conditions
are achieved if the transistor is operated in the saturation and cutoff regions respectively.
In order to check that the transistor is fully saturated, the following inequality has to be
satisfied.
If the transistor is operating in the saturation region, then VCE takes on its minimum value of
0.2 V for small signal transistors [21]. The following are the steps involved in designing the
transistors as a switch:
i. Using the value of the load and the voltage between the collector-emitter
ii. Divide the collector current by the transistor current gain. This represents the
minimum base current that is sufficient to just place the transistor on the edge
iii. Divide the minimum base current by 0.85 (in order to push the transistor
slightly in the saturation region) this gives the design base current.
17
iv. Select the size of the base resistor required to achieve the design base current,
Push button switches are mechanical switches defined by the method used to activate the
switch. The activation method is typically in the form of a plunger that is pushed down to
open or close the switch. Pole and throw configurations for pushbutton switches can be single
pole single throw (SPST) , single pole double throw (SPDT) double pole single throw
Pushbutton switches come in two forms: normally open (NO) switch that has contacts that are
open or disconnected in the unactuated (normal position) and normally closed (NC) switch
that has contacts which are closed or connected in their unactuated (normal) position. The
actuator in pushbutton switches can recessed, flush or raised. Important switch specifications
to consider when searching for pushbutton switches include maximum current, maximum ac
from Microsoft. It can be used to develop console and graphical user interface applications
along with Windows Forms applications, web sites, web applications, and web services in
both native code together with managed code for all platforms supported by Microsoft
Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework
which allow the code editor and debugger to support (to varying degrees) nearly any
18
programming language, provided a language-specific service exists. Built-in languages
include C/C++ (via Visual C++), VB.NET (via Visual Basic .NET), C# (via Visual C#).
Visual Studio does not support any programming language, solution or tool intrinsically but
as a VSPackage. When installed, the functionality is available as a Service. The IDE provides
three services: SVsSolution, which provides the ability to enumerate projects and solutions;
SVsUIShell, which provides windowing and UI functionality (including tabs, toolbars and
tool windows); and SVsShell, which deals with registration of VSPackages. In addition, the
IDE is also responsible for coordinating and enabling communication between services.
Language Service. A language service defines various interfaces which the VSPackage
implementation can implement to add support for various functionalities. Functionalities that
can be added this way include syntax coloring, statement completion, brace matching,
parameter information tooltips, member lists and error markers for background compilation. If
the interface is implemented, the functionality will be available for the language. Language
services are to be implemented on a per-language basis. The implementations can reuse code
Visual Studio does not include any source control support built in but it defines the MSSCCI
(Microsoft Source Code Control Interface) by implementing which source control systems
can integrate with the IDE. MSSCCI defines a set of functions that are used to implement
19
CHAPTER FOUR.
CIRCUIT DESIGN.
FIGURE 4.1
20
4.2 PIR Motion Detection Unit.
The PIR detection unit consists of a pyroelectric sensor made of a crystalline material that
generates a surface electric charge when exposed to the heat in the form of infrared radiation.
The human body emits infrared radiation with wavelength centered at about 9.4 microns. An
Charges in the amount of radiation striking the crystal results in to changes in the amount of
charge which is then measured with a FET device built into the sensor. Fig 4.2 shows how
typically, the FET source terminal pin 2 connects through a pull down resistor of about 100k
21
The voltage signal is then fed into a two stage amplifier having signal conditioning circuits.
AV1= -R4/ R3
= -1M/10K = -100
AV2 = - R8/ R5
AV =AV1 * AV2
= (-100) *(-100)
=10000
The amplifier is typically bandwidth limited to below 10Hz to reject high frequency noise and
is followed by a window comparator that responds to both the positive and negative
transistors of the sensor output signal. ICIC and ICID form a window comparator that
responds to signals about 200 millivolts above and 200 millivolts below V CC / 2. This window
is set by low current voltage drops across D1 and D2. Therefore the upper and lower limits of
= 12/2 + 0.2
22
=6.2 V
VL=VCC/ 2- 0.2
=12/2-0.2
=5.8V
The comparator output feeds through D3 and D4 that pass only the positive transitions.
The PIR motion detector is normally closed (NC). The output is HIGH when idle (no motion
detected) during which the LED is OFF. The output remains low when sensor is triggered
(motion is detected) during which the LED is ON. The output of the PIR motion detector is
fed to a NAND gate with the other input coming from +5V supply.
For proper operation, a +5V supply should be present. The output of a NAND gate is HIGH
when one or both the inputs are low. Whenever motion is detected, the output of the PIR
motion detector is LOW resulting to a HIGH output of the NAND gate. In the absence of
motion, the output of the PIR motion detector is HIGH yielding a low output of the NAND
gate. Table 4.1 summarizes the inputs and outputs of the NAND gate.
INPUTS OUTPUT
0 X X
1 0 1
1 1 0
Table 4.1
23
The output from the NAND gate is fed to a parallel port for further signal conditioning. Due
to the high impedance from the parallel port, the port is pulled to ground so that a zero can be
read.
FIGURE 4.3
The door opening detection unit consists of a pushbutton switch connected to a +5V supply.
i. No limit on the amount of current the device can carry when in the conduction state.
ii. No limit on the amount of the device-voltage when the device is in the non-conduction
state.
v. No limit on the operating speed of the device when changes state, i.e. zero rise and fall
time.
24
The practical switch has the following switching and conduction characteristics:
i. Limited power handling capabilities i.e. limited conduction current. When the switch
is in the off-state, and limited blocking voltage when the switch is in the off-state.
ii. Limited switching speed that is caused by the finite turn on and turn-off times.
iv. Practical switches experience power losses in the on and the off states and during
The push-button switch used in figure is normally open (NO). A normally open switch is one
in which its contacts will close when actuated and will open while in the unactuated position.
Electricity only flows when you give it a path between two points of opposite charge. To turn
the electricity on or off, one has to open or close part of the circuit. When the door is shut, the
electric circuit is closed and electricity can flow from one end of the circuit to the other.
However, when the door is open, the circuit is open and no current can flow in the circuit.
With an open door, the voltage at the end of the switch is OV. Since one of the inputs of the
NAND gate is low, the output of the gate will be HIGH. With the door open and a voltage of
5V applied to it, the voltage at the end of the switch will be 5V. If both of the inputs of the
NAND gate are HIGH, the output of the gate will be low. The output from the NAND gate is
25
FIGURE 4.4
The door detection unit of two transistors Q1 and Q2. The base of Q2 is connected to a wire
which is carefully wound round the door knob. A resistor R5 is connected to the base of Q2 to
The human body offers different resistances when either dry or wet. The resistance of the
human body decreases with increase in degree of wetness. For a PNP transistor to conduct,
the emitter should always be more positive with respect to both the base and collector. When
one comes into contact with the wire wound round the door knob, his body will act as a
ground resulting to the base terminal being biased negative with respect to the emitter.
When Q2 is conducting, the voltage drop across VEC is 0.2V. Therefore the voltage at the
VC=VEE-VEC
=5- 0.2
=4.8V
When Q2 is not conducting, the voltage drop across VEC is normally 5V. Consequently, the
=5- 5
=0V
The purpose of R1 is to limit the base current of Q1. An NPN transistor is usually biased with
the application of a voltage on its base which is greater than VBE so that base current can flow.
With base voltage greater than VBE, Q1 is set into conduction with the VCE = 0.2V .VCE is 5V
when the base voltage is less than VBE. The output from the NPN transistor is fed to the
Figure 4.5 represents the flow diagram for the software to monitor an integrated alarm system
27
CHAPTER FIVE
28
The circuit of figure 4.1 was set up and connected to a power supply. The output of
the device was conected to the computer to monitor for any kind of intrusion. When
the device is connected and running, the monitor displays figure 5.1.
Figure 5.1
When someone touches the door handle with the device connected and running , the
29
Figure 5.2
CHAPTER SIX.
30
CONCLUSION AND FURTHER RECOMMENDATIONS
6.1 Conclusions
This project was set out to realize an integrated burglar alarm system that could monitored on
PC. The project was implemented and determined to be functional correctly for the
Further studies can be undertaken in the research and implementation of an integrated burglar
alarm system. There are two main categories of alarm-wired and wireless. Wireless burglar
alarms work from using radio waves instead of wires to communicate between the control
panel and detection devices. Wireless burglar alarm systems offer the following advantages
v. It is easy to add an extra detector and sensor unlike wired burglar alarm system.
An alarming sounding system can also be introduced in the system. Sirens will undoubtedly
inform the burglar that they have been detected and may encourage them to leave before they
The integrated burglar alarm systems can also be monitored with the burglar alarm activation
posed either to a pre-selected list of telephone auto-dialer is connected to the alarm system or
to a central monitoring station if a digicom is connected to the alarm system. The telephone
31
auto dialer is suitable for domestic and small commercial installation and maintenance is
minimal. The central monitoring station is the highest security and the most expensive both
32
APPENDIX A
VERSION 5.00
33
Top = 4440
Width = 1575
End
Begin VB.Label Label10
BorderStyle = 1 'Fixed Single
Caption = "DOOR HANDLE"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 11
Top = 4440
Width = 1455
End
Begin VB.Label Label9
BorderStyle = 1 'Fixed Single
Height = 375
Left = 4320
TabIndex = 8
Top = 3360
Width = 735
End
Begin VB.Label Label8
BorderStyle = 1 'Fixed Single
Height = 375
Left = 4320
TabIndex = 7
Top = 2400
Width = 735
End
Begin VB.Label Label7
BorderStyle = 1 'Fixed Single
Height = 615
Left = 2280
TabIndex = 6
Top = 3240
Width = 1575
End
Begin VB.Label Label6
BorderStyle = 1 'Fixed Single
Height = 615
Left = 2280
TabIndex = 5
Top = 2280
Width = 1575
End
Begin VB.Label Label5
BorderStyle = 1 'Fixed Single
Caption = "DOOR SWITCH"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
34
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 360
TabIndex = 4
Top = 3240
Width = 1455
End
Begin VB.Label Label4
BorderStyle = 1 'Fixed Single
Caption = "MOTION SENSOR"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 3
Top = 2280
Width = 1455
End
Begin VB.Label Label3
BorderStyle = 1 'Fixed Single
Height = 495
Left = 2280
TabIndex = 2
Top = 1320
Width = 3495
End
Begin VB.Label Label2
BorderStyle = 1 'Fixed Single
Caption = "ALARM STATUS"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 360
TabIndex = 1
Top = 1200
Width = 1455
End
Begin VB.Label Label1
BackColor = &H80000011&
Caption = " WAITHAKA SECURITY SYSTEMS"
35
BeginProperty Font
Name = "MS Sans Serif"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 840
TabIndex = 0
Top = 360
Width = 6615
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
End
End Sub
If detect_door = 1 Then
Label9.BackColor = vbRed
Label7 = "INTRUSION DETECTED"
Beep
Else
If detect_pir = 1 Then
Label8.BackColor = vbYellow
Label6 = " INTRUSION DETECTED"
Else
If detect_handle = 1 Then
Label12.BackColor = vbBlue
Label11 = " INTRUSION DETECTED"
Else
If detect_handledoor = 1 Then
Label12.BackColor = vbBlue
Label11 = " INTRUSION DETECTED"
Label9.BackColor = Green
Label7 = "INTRUSION DETECTED"
Else
If detect_doorpir = 1 Then
36
Label8.BackColor = vbRed
Label9.BackColor = vbGreen
Label9 = " INTRUSION DETECTED"
Label6 = " INTRUSION DETECTED"
Else
If detect_pirhandle = 1 Then
Label12.BackColor = vbBlue
Label11 = " INTRUSION DETECTED"
Label8.BackColor = vbYellow
Label6 = " INTRUSION DETECTED"
Else
If detect_all = 1 Then
Label9.BackColor = vbGreen
Label7 = "INTRUSION DETECTED"
Label8.BackColor = vbYellow
Label6 = " INTRUSION DETECTED"
Label12.BackColor = vbBlue
Label11 = " INTRUSION DETECTED"
If detectsignal = 1 Then Timer1.Enabled = False
End If
End If
End If
End If
End If
End If
End If
End Sub
Label9.BackColor = vbgrey
Label7 = ""
Label8.BackColor = vbgrey
Label6 = ""
Label12.BackColor = vbgrey
Label11 = ""
Timer1.Enabled = True
If detectsignal = 1 Then Beep
'Label3 = " ALARM SET NOT RUNNING CLICK RESET "
End Sub
Else
Label3 = " DEVICE NOT CONNECTED "
Command2.Enabled = False
End If
37
portaddress = 890
value = 32
Out portaddress, value
portaddress = 888
End Sub
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 3030
ClientLeft = 120
ClientTop = 450
ClientWidth = 4560
Icon = "Form2.frx":0000
LinkTopic = "Form2"
ScaleHeight = 3030
ScaleWidth = 4560
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Continue"
Height = 375
Left = 1200
TabIndex = 2
Top = 2400
Width = 1335
End
Begin VB.Timer Timer1
Interval = 100
Left = 4080
Top = 2640
End
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 255
Left = 480
TabIndex = 1
Top = 1680
Width = 3735
_ExtentX = 6588
_ExtentY = 450
_Version = 393216
Appearance = 1
End
Begin VB.Label Label1
Caption = "LOGIN SUCCEDED CLICK CONTINUE"
Height = 375
Left = 840
TabIndex = 0
Top = 480
Width = 2895
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
38
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Timer1.Enabled = True
ProgressBar1.value = 0
portaddress = 888
value = 0
status = 0
value = 32
value = 0
portaddress = 888
count2 = Inp(portaddress)
End If
Form1.Show
Form2.Hide
End Sub
ProgressBar1.value = 0
Timer1.Enabled = True
End Sub
39
Private Sub Timer1_Timer()
ProgressBar1.value = ProgressBar1.value + 10
If ProgressBar1.value >= 100 Then Timer1.Enabled = False
End Sub
40
REFERENCES.
2. Jacob Frieden, handbook of modern sensor physics, design and applications, 3rd
3. www.electronics-tutorial.com
4. K-G Gram, occupancy sensor-The promise, the delivery, the cost. Electro sense (pty)
6. http/ziplak.com
7. http:/www.migatron.com/whois-2-html
8. http:/www.homesecurityalarms.com/ultrasonicsensor.aspx
9. http:/southwestmicrowave.com
10. http:/emergency24.com/residential/burglar-alarms.htm
12. http://zone.ni.com/devzone/cda/tut/p/id/10630
13. ramon Pallas Areny and John.G. Webster, sensor and signall conditioners, 2ND
15. http://wwww.glolab.com/pirparts/infrared.html
41
16. John G Webster, The measurement, instrumentation and sensors handbook, CRC,
1999.
17. www.cypress.com
18. Giuesseppe A.Cirino et al,Engineered Point Spread function of Fresnel Lenses for
19. http://www.st.com/stoonline/books/pdf/docs/1030s.pdf
20. Denton J.Dailey,Electronic devices and circuits, discrete and integrated,1st edition,
Prentice Hall,2000.
21. http://engineering.ju.edu.jo/mechatronic/document/msoexpl.pdf
pushbuttons.
23. M.H.Rashid, Power electronics Handbook: devices, circuits and appliances, 2nd
42