Beruflich Dokumente
Kultur Dokumente
This the design and construction of anti-water drowning system which makes use
of drowning sensor switch controlled from beneath the water level to alert
monitors when the user is being drown. When the user wares the device at hand
the sensors is activated by body contact, which is the users pressed the toggle
button it will send a wireless signal alerting the managers that he is being drown by
This devices when powered, it will be activated so if the users press the danger
wirelessly through and infrared radio wave as a pulse to the monitor telling the
devices to activate alarm so that the managers can be alerted to come and rescuer
him/her.
i
CHAPTER ONE: INTRODUCTION
swimming pools to alert water system managers when an individual is being drown
ongoing health problems.[1] Using the term near drowning to refer to those who
Drowning itself is quick and silent, although it may be preceded by distress which
is more visible.[3] Generally in the early stages of drowning very little water enters
the lungs: a small amount of water entering the trachea causes a muscular spasm
that seals the airway and prevents the passage of both air and water until
ii
unconsciousness occurs. This means a person drowning is unable to shout or call
for help, or seek attention, as they cannot obtain enough air. The instinctive
drowning response is the final set of autonomic reactions in the 2060 seconds
before sinking underwater, and to the untrained eye can look similar to calm safe
In 2013 there were about 1.7 million cases of drowning.[5] Unintentional drowning
2013 it was estimated to have resulted in 368,000 deaths down from 545,000
deaths in 1990.[6] Of these deaths 82,000 occurred in children less than five years
old.[6] It accounts for 7% of all injury related deaths (excluding those due to natural
countries.[7] In many countries, drowning is one of the leading causes of death for
children under 12 years old. For example, in the United States, it is the second
leading cause of death (after motor vehicle crashes) in children 12 and younger.[2]
The rate of drowning in populations around the world varies widely according to
their access to water, the climate and the national swimming culture.
iii
Signs and symptoms
Drowning is most often quick and unspectacular. Its media depictions as a loud,
violent struggle have much more in common with distressed non-swimmers, who
may well drown but have not yet begun to do so. In particular, an asphyxiating
person is seldom able to call for help.[3] The instinctive drowning response covers
Hyperventilating or gasping
iv
1.2 Statement of problem
Life is one of the most cherished gift in the world and should not be joked with
while comparing it with other side of the world so saving it at all cost is every
human priority.
provide solutions and devices which will help protect life in cost of swimming
to avoid death.
In this project a student should be able to understand the need for an anti-
drowning system, how it works, the electronic design and implementation and
v
1.5 Project limitations
Many design makes use of heart rate monitor but works or alert managers
when the user is already choked and the pulse rate is reduced.
But in the cost of my design, it was made to work by the user pressing a toggle
switch which is attached to the body and sending message to the users.
Chapter one carries the introduction, aim and objective, scope of study, limitation
of the work, significance and the project report organization of the work. Chapter
two carries the literature review of the work along with other reviews of the
project. Chapter three carries the project design methodology and steps which lead
to the construction of the project. Chapter four testing the project design,
observation and Bill of engineering. Chapter five carries summary and conclusion.
vi
CHAPTER TWO: LITERATURE REVIWE
Pool Safety Cameras are video monitoring systems designed to reduce drowning
Classification
Passive
Active
Passive systems provide lifeguards with views of below water swimmer activity and
behaviour. The views are displayed at the lifeguard position/chair allowing them to
incorporate them into their 10:20 scan to help with early identification of an
addressing the physical limitations of viewing through glare and into blind spots in
the swimming pool tank. They are designed to make the lifeguards job easier.
Active systems are designed to further help lifeguards in an attempt to address the
vii
Monitoring systems are further broken into three broad classes:
Viewing aids
Remote monitoring
Viewing aids
Viewing aids are typically underwater video cameras for lifeguards to see various
views underwater simultaneously without having to move. They can be used for all
types of swimming pools. Cameras can view areas which would otherwise be
obstructed. These passive systems while providing additional vision for the
lifeguards can also distract them from scanning the pool because of the moving
images on the monitor next to them. All cameras are recorded in real-time and the
below water cameras are normally paired with above water cameras providing
identified but may not show their face below the water (for example paedophilia).
Remote monitoring
Remote monitoring is the next step in video surveillance of swimming pools. It uses
the same technology as the viewing aids class, and includes recording and storage
viii
capability. Remote monitoring is effective in documenting the chain of events
monitor the pool, these systems face limitations. Users must remain alert, viewing
the screen without distraction for hours at a time. Screen placement for active
monitoring means that response time may be increased due to the nature of a
single location from which to respond. Active monitoring with this system also
laws will not authorize using this system in lieu of lifeguards on the deck.
prove that there was no negligence on the part of the pool operator, or the staff
systems are primarily limited to documenting the course of events for later review
Drowning Early Warning System (DEWS) are the most technologically advanced
category in aquatics video monitoring. These feed the video from the cameras into
ix
swimmers and alerting staff if swimmers exhibit known behaviors associated with
drowning. These systems are mainly limited to static water pools, and are not yet
Active monitoring systems attempt to provide the benefits of the video monitoring
and remote monitoring classes of systems coupled with the additional benefit of
A. Anti-theft system
common and oldest criminal behaviors. From the invention of the first lock and key
have evolved to match the introduction of new inventions to society and the
x
Under normal circumstances, theft is prevented simply through the application and
marking (license plates, name tags). When clear owner identification is not possible
and when there is a lack of social observance, people may be inclined to take
possession of items to their own benefit at the expense of the original owner.
Motive and opportunity are two enabling factors for theft. Given that motives for
theft are varied and complex and are generally speaking not within the control of
the victim, most methods of theft prevention rely on reducing opportunities for
theft.
Many design makes use of heart rate monitor but works or alert managers
when the user is already choked and the pulse rate is reduced.
But in the cost of my design, it was made to work by the user pressing a toggle
switch which is attached to the body and sending message to the users.
xi
CHAPTER THREE: DESIGN METHODOLOGY
In this project we are to design and implement anti water drowning which makes
use of wireless transmission to transfer alert signal to the water managers when
xii
3.3.1 Functions of each block
This microcontroller triggers the transfer module to transfer data to the receiver
This includes the stages passed for the design and construction of this project.
The link which enhanced my knowledge to the design and construction of this
project was as a result my curiosity, some which was gotten from the internet
research I did, some from the school environment, from the already existing
product which was the main source of my knowledge on how to go about the
project then others was from my teacher and supervisor etc. all this information I
test of this design to checkout for its perfection when fully designed. From the
xiii
origin of the design, from the list of the circuit symbol, the way they operate help
run the test operation for each component for clarifications and better
understanding of them.
Before the design we first of all have our design designed using some simulation
software like the professional schematic designer, eagle, livewire and proteuslite
which they all gave use the same out analysis of the circuit. Then I made my circuit
which gave me a full highlight and hint of the physical operation of the design.
The procedures that lead to the complete designs of this project followed gradual
processes first:
xiv
The choice of component depends on the design circuit requirement, were the
requirement.
Component layout is the layout for each component according to the location of
the component symbol. This helps to allocate components to fit the operation of
the required fittings to enable lead soldering of the components to the circuit
printed or Vero boards before inter connecting the components depending on the
circuit connections.
to hard hold the component leads from falling off from the circuit which can cause
xv
Clearing always cause before comes after soldering, as it is the process of removing
tiny segmented leads which could cause bridges to the circuit network leading to
Running check after any circuit design is required as it gives no room for errors after
design. This also helps to correct the network errors and enhance operation as
Project testing is the art of placing the design in a running mode for test and
operation analysis, this helps to show the designer that how accurate his/her work
is and encourage upgrading the present design when dealing with that type of
design.
Packaging is the art of covering the inner structure of design using some natural
inspirational art and copies of an already existing design in other to convince the
viewer for recommended comment. Packaging involves the covering of the inner
nature of a design which only through its look sends a message to anybody who
gaze at it what it really is. The appearance of any design one made is a thing to be
xvi
consider important as it is the only way which a product sells itself without human
recommendations, in this project packaging is one of the vital part of this design
system.
xvii
CHAPTER FOUR: DESIGN IMPLEMENTATION AND TESTING
The knowledge of how to design of anti-water drown system did not just came from
ways (bio devices: Magxim Electronics journal on Electronics & psychological effects
3 Edition 2012 for things to be down there is a source of information via knowledge
which is not only on teachings but also with metal physical inspiration). Different
sources where visited in other to get the clear view of how to design an RF based
intruder system, this ways include internet sites where a lot of information of
different designs can be archived. Come to school premises where the knowledge
is being passed from teachers to students. Others include pea groups and book
reading etc.
This includes:
xviii
d. And digital electronics by J.K Mehta
The materials I used were from the information I got from the internet and I have
to develop the work through the source I found online that is treating the same
case.
The circuit diagram used is the diagram which was design as a prototype but also
works to revive some information about the circuit analysis of the devices which I
later entered more design like the alarm unit and the infrared radio wave for the
Here, we are to show the various steps took while trying to archive a working
a. Microcontroller (Atmel89s52)
c. Resistors(1k,10k,4k7,5k6)
f. Buzzer (12v)
g. Infrared receiver
Here, the whole components is discussed. The choice of component was obtained
from the circuit diagram analysis which visually illustrates the various component
connection between each other, from there the components used was named and
given values form the parameters and so from there we obtained our choice of
xx
A diode is an electrical device allowing current to move through it in one direction
with far greater ease than in the other. The most common kind of diode in modern
circuit design is the semiconductor diode, although other diode technologies exist.
The term diode is customarily reserved for small signal devices, I 1 A. The term
Fig 4.1 Semiconductor diode schematic symbol: Arrows indicate the direction of
When placed in a simple battery-lamp circuit, the diode will either allow or prevent
current through the lamp, depending on the polarity of the applied voltage. (Figure
below)
Fig 4.2 Diode operation: (a) Current flow is permitted; the diode is forward biased.
xxi
When the polarity of the battery is such that electrons are allowed to flow through
the diode, the diode is said to be forward-biased. Conversely, when the battery is
backward and the diode blocks current, the diode is said to be reverse-biased. A
diode may be thought of as like a switch: closed when forward-biased and open
when reverse-biased.
Oddly enough, the direction of the diode symbol's arrowhead points against the
direction of electron flow. This is because the diode symbol was invented by
showing current as a flow of charge from the positive (+) side of the voltage source
to the negative (-). This convention holds true for all semiconductor symbols
valve. A check valve allows fluid flow through it in only one direction as in Figure
below.
xxii
Fig 4.3 Hydraulic check valve analogy: (a) Electron current flow permitted. (b)
Check valves are essentially pressure-operated devices: they open and allow flow
if the pressure across them is of the correct polarity to open the gate (in the
analogy shown, greater fluid pressure on the right than on the left). If the pressure
is of the opposite polarity, the pressure difference across the check valve will
polarity of the voltage dropped across the diode. Let's take a closer look at the
xxiii
Fig 4.4 Diode circuit voltage measurements: (a) Forward biased. (b) Reverse biased.
A forward-biased diode conducts current and drops a small voltage across it,
leaving most of the battery voltage dropped across the lamp. If the battery's
polarity is reversed, the diode becomes reverse-biased, and drops all of the
battery's voltage leaving none for the lamp. If we consider the diode to be a self-
actuating switch (closed in the forward-bias mode and open in the reverse-bias
mode), this behavior makes sense. The most substantial difference is that the diode
drops a lot more voltage when conducting than the average mechanical switch (0.7
This forward-bias voltage drop exhibited by the diode is due to the action of the
depletion region formed by the P-N junction under the influence of an applied
region exists around the region of the P-N junction, preventing current flow. (Figure
xxiv
below (a)) The depletion region is almost devoid of available charge carriers, and
acts as an insulator:
Fig 4.5 Diode representations: PN-junction model, schematic symbol, physical part.
The schematic symbol of the diode is shown in Figure above (b) such that the anode
(pointing end) corresponds to the P-type semiconductor at (a). The cathode bar,
non-pointing end, at (b) corresponds to the N-type material at (a). Also note that
the cathode stripe on the physical part (c) corresponds to the cathode on the
symbol.
If a reverse-biasing voltage is applied across the P-N junction, this depletion region
xxv
Fig 4.6 Depletion region expands with reverse bias.
depletion region collapses becoming thinner. The diode becomes less resistive to
current through it. In order for a sustained current to go through the diode; though,
the depletion region must be fully collapsed by the applied voltage. This takes a
Figure below.
Fig 4.7Inceasing forward bias from (a) to (b) decreases depletion region thickness.
xxvi
For silicon diodes, the typical forward voltage is 0.7 volts, nominal. For germanium
diodes, the forward voltage is only 0.3 volts. The chemical constituency of the P-N
junction comprising the diode accounts for its nominal forward voltage figure,
which is why silicon and germanium diodes have such different forward voltages.
Forward voltage drop remains approximately constant for a wide range of diode
currents, meaning that diode voltage drop is not like that of a resistor or even a
normal (closed) switch. For most simplified circuit analysis, the voltage drop across
a conducting diode may be considered constant at the nominal figure and not
<="" a="">
Actually, forward voltage drop is more complex. An equation describes the exact
current through a diode, given the voltage dropped across the junction, the
xxvii
The term kT/q describes the voltage produced within the P-N junction due to the
as such:
xxviii
You need not be familiar with the diode equation to analyze simple diode circuits.
Just understand that the voltage dropped across a current-conducting diode does
change with the amount of current going through it, but that this change is fairly
small over a wide range of currents. This is why many textbooks simply say the
volts for silicon and 0.3 volts for germanium. However, some circuits intentionally
and thus can only be understood in the context of this equation. Also, since
A reverse-biased diode prevents current from going through it, due to the
expanded depletion region. In actuality, a very small amount of current can and
does go through a reverse-biased diode, called the leakage current, but it can be
ignored for most purposes. The ability of a diode to withstand reverse-bias voltages
is limited, as it is for any insulator. If the applied reverse-bias voltage becomes too
great, the diode will experience a condition known as breakdown (Figure below),
known as the Peak Inverse Voltage, or PIV, and may be obtained from the
xxix
manufacturer. Like forward voltage, the PIV rating of a diode varies with
temperature, except that PIV increases with increased temperature and decreases
Fig 4.7 Diode curve: showing knee at 0.7 V forward biases for Si, and reverse
breakdown.
Typically, the PIV rating of a generic rectifier diode is at least 50 volts at room
temperature. Diodes with PIV ratings in the many thousands of volts are available
Types of diode
There are many different types of diodes that are available for use in electronics
xxx
Semiconductor diodes can be used for many applications. The basic application is
Backward diode: This type of diode is sometimes also called the back diode.
Although not widely used, it is a form of PN junction diode that is very similar to
the tunnel diode in its operation. It finds a few specialist applications where its
BARITT diode: This form of diode gains its name from the words Barrier Injection
Transit Time diode. It is used in microwave applications and bears many similarities
Gunn Diode: Although not a diode in the form of a PN junction, this type of diode
is a semiconductor device that has two terminals. It is generally used for generating
microwave signals.
Laser diode: This type of diode is not the same as the ordinary light emitting diode
because it produces coherent light. Laser diodes are widely used in many
applications from DVD and CD drives to laser light pointers for presentations.
Although laser diodes are much cheaper than other forms of laser generator, they
are considerably more expensive than LEDs. They also have a limited life.
Light emitting diodes: The light emitting diode or LED is one of the most popular
types of diode. When forward biased with current flowing through the junction,
xxxi
light is produced. The diodes use component semiconductors, and can produce a
variety of colours, although the original colour was red. There are also very many
new LED developments that are changing the way displays can be used and
Photodiode: The photo-diode is used for detecting light. It is found that when light
strikes a PN junction it can create electrons and holes. Typically photo-diodes are
operated under reverse bias conditions where even small amounts of current flow
resulting from the light can be easily detected. Photo-diodes can also be used to
generate electricity. For some applications, PIN diodes work very well as photo
detectors.
PIN diode: This type of diode is typified by its construction. It has the standard P
type and N-type areas, but between them there is an area of intrinsic
semiconductor which has no doping. The area of the intrinsic semiconductor has
the effect of increasing the area of the depletion region which can be useful for
standard type of diode in use today. These diodes can come as small signal types
for use in radio frequency, or other low current applications which may be termed
xxxii
as signal diodes. Other types may be intended for high current and high voltage
Schottky diodes: This type of diode has a lower forward voltage drop than ordinary
silicon PN junction diodes. At low currents the drop may be somewhere between
0.15 and 0.4 volts as opposed to 0.6 volts for a silicon diode. To achieve this
Step recovery diode: A form of microwave diode used for generating and shaping
pulses at very high frequencies. These diodes rely on a very fast turn off
Tunnel diode: Although not widely used today, the tunnel diode was used for
the day.
Varactor diode or varicap diode: This type of diode is used in many radio
frequency (RF) applications. The diode has a reverse bias placed upon it and this
varies the width of the depletion layer according to the voltage placed across the
diode. In this configuration the varactor or varicap diode acts like a capacitor with
the depletion region being the insulating dielectric and the capacitor plates formed
xxxiii
by the extent of the conduction regions. The capacitance can be varied by changing
the bias on the diode as this will vary the width of the depletion region which will
Zener diode: The Zener diode is a very useful type of diode as it provides a stable
bias conditions and it is found that when a certain voltage is reached it breaks
produced. This type of diode is therefore widely used to provide a reference voltage
in power supplies. Two types of reverse breakdown are apparent in these diodes:
Zener breakdown and Impact Ionisation. However the name Zener diode is used
for the reference diodes regardless of the form of breakdown that is employed.
Semiconductor diodes are widely used throughout all areas of the electronics
semiconductor diode is very versatile, and there are very many variants and
different types of diode that enable all the variety of different applications to be
met.
xxxiv
Diode as a rectifier
common number of phases). Most low power rectifiers for domestic equipment
Half-wave rectification
half of the AC wave is passed, while the other half is blocked. Because only one half
of the input waveform reaches the output, mean voltage is lower. Half-wave
phase supply. Rectifiers yield a unidirectional but pulsating direct current; half-
wave rectifiers produce far more ripple than full-wave rectifiers, and much more
xxxv
The no-load output DC voltage of an ideal half wave rectifier for a sinusoidal input
voltage is:
Full-wave rectification
A full-wave rectifier converts the whole of the input waveform to one of constant
polarities of the input waveform to pulsating DC (direct current), and yields a higher
average output voltage. Two diodes and a center tapped transformer, or four
center tap), are needed.[3] Single semiconductor diodes, double diodes with
single components.
xxxvi
4.9 Graetz bridge rectifier: a full-wave rectifier using 4 diodes.
For single-phase AC, if the transformer is center-tapped, then two diodes back-to-
required) can form a full-wave rectifier. Twice as many turns are required on the
transformer secondary to obtain the same output voltage than for a bridge
Fig 4.10: Full-wave rectifier using a center tap transformer and 2 diodes.
xxxvii
Fig 4.11: Full-wave rectifier, with vacuum tube having two anodes.
cathode and two anodes inside a single envelope, achieving full-wave rectification
with positive output. The 5U4 and 5Y3 were popular examples of this configuration.
Diode Bridge
xxxviii
Fig 4.12 Detail of a diode bridge, rated at 1000 Volts x 4 Amperes, a handmade
diode bridge. The wide silver band on the diodes indicates the cathode side of the
diode.
configuration that provides the same polarity of output for either polarity of input.
current (AC) input into a direct current (DC) output, it is known as a bridge rectifier.
resulting in lower cost and weight as compared to a rectifier with a 3-wire input
4.4.2 Transistors
xxxix
Fig 4.13transistor images
pair of the transistor's terminals changes the current through another pair of
terminals. Because the controlled (output) power can be higher than the
controlling (input) power, a transistor can amplify a signal. Today, some transistors
are packaged individually, but many more are found embedded in integrated
circuits.
The transistor is the fundamental building block of modern electronic devices, and
American physicists John Bardeen, Walter Brattain, and William Shockley, the
transistor revolutionized the field of electronics, and paved the way for smaller and
xl
cheaper radios, calculators, and computers, among other things. The transistor is
on the list of IEEE milestones in electronics, and the inventors were jointly awarded
Simplified operation
Fig 4.14 a simple circuit diagrams to show the labels of a npn bipolar transistor.
(C1815)
The essential usefulness of a transistor comes from its ability to use a small signal
applied between one pair of its terminals to control a much larger signal at another
pair of terminals. This property is called gain. It can produce a stronger output
signal, a voltage or current, that is proportional to a weaker input signal; that is, it
can act as an amplifier. Alternatively, the transistor can be used to turn current on
xli
or off in a circuit as an electrically controlled switch, where the amount of current
There are two types of transistors, which have slight differences in how they are
used in a circuit. A bipolar transistor has terminals labeled base, collector, and
emitter. A small current at the base terminal (that is, flowing between the base and
the emitter) can control or switch a much larger current between the collector and
emitter terminals. For a field-effect transistor, the terminals are labeled gate,
source, and drain, and a voltage at the gate can control a current between source
and drain.
The image to the right represents a typical bipolar transistor in a circuit. Charge will
flow between emitter and collector terminals depending on the current in the base.
Because internally the base and emitter connections behave like a semiconductor
diode, a voltage drop develops between base and emitter while the base current
exists. The amount of this voltage depends on the material the transistor is made
xlii
Types
PNP P-channel
NPN N-channel
BJT JFET
P-channel
N-channel
xliii
Fig 4.15 Transistors are categorized by
types"
channel (FETs)
Application: switch, general purpose, audio, high voltage, super-beta, matched pair
xlv
Here in the figure the object can be any thing which has certain shape and size,
the IR LED transmits the IR signal on to the object and the signal is reflected back
from the surface of the object. The reflected signals is received by an IR receiver.
following
xlvi
IR Transmitter
information signal with carrier signal, because the receiver modules which are
available off-the-shelf are made for a particular carrier frequency. So it is clear that
when you chose a particular IR receiver module, you also need to transmit the the
modulated wave with the same carrier frequency of that of a IR receiver module.
ON state = 10ms
The figure above explains the modulation process, this is similar to OOK(ON-OFF
Keying) modulation, where the carrier signal is ON for certain period of time.
xlvii
When transmitting a signal for obstacle detection, it is necessary that the carrier
signal is transmitted for a short while and remains OFF for longer period of time.
figure) of carrier signal, if we have it for a long period of time then the receiver
module will treat it as a noise and ignores receiving the transmitted signal.
Fig 4.16 a sample circuit of a power supply using 7805 voltage regulator
A regulated power supply is very much essential for several electronic devices due
well as voltage. The device may get damaged if there is any deviation from the fixed
xlviii
rate. The AC power supply gets converted into constant DC by this circuit. By the
voltage. The circuit is made up of linear voltage regulator 7805 along with
capacitors and resistors with bridge rectifier made up from diodes. From giving an
to the appliance, the diodes along with capacitors handle elevated efficient signal
conveyal.
Description:
As we have previously talked about that regulated power supply is a device that
mechanized on DC voltages and also it can uphold its output accurately at a fixed
voltage all the time although if there is a significant alteration in the DC input
voltage.
ICs regulator is mainly used in the circuit to maintain the exact voltage which is
followed by the power supply. A regulator is mainly employed with the capacitor
connected in parallel to the input terminal and the output terminal of the IC
regulator. For the checking of gigantic alterations in the input as well as in the
output filter, capacitors are used. While the bypass capacitors are used to check
the small period spikes on the input and output level. Bypass capacitors are mainly
xlix
of small values that are used to bypass the small period pulses straightly into the
Earth.
A circuit diagram having regulator IC and all the above discussed components
read only memory (EEPROM). The device is manufactured using Atmel`s high
standard MCS-51 instruction set and pin out. The on-chip flash allows the program
l
the Atmel AT89s52 is a powerful microcomputer, which provides a highly flexible
The AT89s52 is designed with static logic for operation down to zero frequency and
support two software selectable power saving modes. The idle mode stops the CPU
while allowing the RAM, timer/counters, serial port and interrupt system to
continue functioning. The power down mode saves the RAM contents but freezes
the oscillator disabling all other chip functions until the next hardware reset
Features of AT89S52
write/Erase cycles
li
Fully static operation:0Hz to 12MHz
lii
Pin description
Vcc
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin can
sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as
high impedance inputs. Port 0 may also be configured to be the multiplexed low
order
Address/data bus during accesses to external program and data memory. In this
mode P0 has internal pull-ups. Port 0 also receives the code bytes during Flash
programming, and outputs the code bytes during program verification. External
Port 1
Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 1 output
buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins they are
liii
pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 1 pins
that are externally being pulled low will source current (IIL) because of the internal
pull-ups. Port 1 also receives the low-order address bytes during Flash
Port 2
Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 2 output
buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins they are
pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 2 pins
that are externally being pulled low will source current (IIL) because of the internal
pull-ups. Port 2 emits the high-order address byte during fetches from external
program memory and during accesses to external data memory that uses 16-bit
addresses (MOVX @ DPTR). In this application, it uses strong internal pull-ups when
emitting 1s. During accesses to external data memory that uses 8-bit addresses
(MOVX @ RI), Port 2 emits the contents of the P2 Special Function Register.
Port 2 also receives the high-order address bits and some control signals during
Port 3
liv
Port 3 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 3 output
buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins they are
pulled high by the internal pull-ups and can be used as inputs. As inputs,
Port 3 pins that are externally being pulled low will source current (IIL) because of
the pull-ups. Port 3 also serves the functions of various special features of the
Port 3 also receives some control signals for Flash programming and verification.
RST
Reset input. A high on this pin for two machine cycles while the oscillator is running
lv
ALE/PROG
Address Latch Enable output pulse for latching the low byte of the address during
accesses to external memory. This pin is also the program pulse input (PROG)
1/6 the oscillator frequency, and may be used for external timing or clocking
purposes. Note, however, that one ALE pulse is skipped during each access to
external Data Memory. If desired, ALE operation can be disabled by setting bit 0 of
SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC
instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has
PSEN
Program Store Enable is the read strobe to external program memory. When the
AT89C51 is executing code from external program memory, PSEN is activated twice
each machine cycle, except that two PSEN activations are skipped during each
EA/VPP
lvi
External Access Enable. EA must be strapped to GND in order to enable the device
FFFFH.
reset. EA should be strapped to VCC for internal program executions. This pin also
receives the 12-volt programming enable voltage (VPP) during Flash programming,
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating
circuit.
4.4.7Resistors
current. Energy is used up as the voltage across the component drives the current
1 k = 1000 1 M = 1000000 .
lvii
Resistors used in electronics can have resistances as low as 0.1 or as high as 10
M .
Note that the combined resistance in series will always be greater than any of the
individual resistances.
When resistors are connected in series their combined resistance is equal to the
lviii
R1 + R2
parallel their combined resistance is less than any of the individual resistances.
There is a special equation for the combined resistance of two resistors R1 and R2:
For more than two resistors connected in parallel a more difficult equation must
be used. This adds up the reciprocal ("one over") of each resistance to give the
lix
The simpler equation for two resistors in parallel is much easier to use!
Note that the combined resistance in parallel will always be less than any of the
individual resistances.
Black Brown Red Orange Yellow Green Blue Violet Gray White
0 1 2 3 4 5 6 7 8 9
The mnemonic
Bad Boys Ravish Only Young Girls But Violet Gives Willingly
both.
lx
Fig4.21 Resistor color code representation
First find the tolerance band, it will typically be gold ( 5%) and sometimes silver
(10%). Starting from the other end, identify the first band - write down the number
associated with that color; in this case Blue is 6. Now 'read' the next color, here it
is red so write down a '2' next to the six (you should have '62' so far.) Now read the
In this example it is two so we get '6200' or '6,200'. If the 'multiplier' band is Black
(for zero) don't write any zeros down. If the 'multiplier' band is Gold move the
decimal point one to the left. If the 'multiplier' band is Silver move the decimal
point two places to the left. If the resistor has one more band past the tolerance
Read the number as the '% Failure rate per 1000 hour' this is rated assuming full
wattage being applied to the resistors. (To get better failure rates, resistors are
lxi
typically specified to have twice the needed wattage dissipation that the circuit
produces) 1% resistors have three bands to read digits to the left of the multiplier.
The list of the component used was given so I have to go to the market to porches
some of them alongside with the sensor which is to be used for the design
Before the design and implementation phase, the system built has to be tested for
Durability, Efficiency, and Effectiveness and also ascertain if there is need to modify
this design. The system was first assembled using a breadboard. All components
were properly inserted into the breadboard from whence some tests were carried
lxii
Similar components like resistors were packed together. Other components
Reference was made to resistor color code data sheet to ascertain the expected
values of resistors used. Each resistor was tested and the value read and recorded.
Also for transistor test the DMM was switched to the diode range with the symbol
The collector, base and emitter junctions were tested in the following order. The
collector, emitter and base pins were gotten from the data analysis on power
transistor.
tested using a digital multimeter (DMM). Resistors were tested to ensure that they
were within the tolerance value. Faulty resistors were discarded .The 78LS05
voltage regulator was also tested, the resulting output was 5.02v which is just a
deviation of 0.20v from the expected result of 5.00v.The LEDs were tested to
lxiii
Expectedly, the transformer was rated 240v/15v, 2000mA. From the mains power
supply, the primary coil received 220v input; the output was measured to be 17.75v
using a DMM.
Test data on transformer has it that the resistance of the primary windings for step
down transformer is higher than that of the secondary side. This was ascertained.
A. 4.5.6 Led
case
lxiv
First production October 1962
Electronic symbol
Parts of an LED. Although unlabeled, the flat bottom surfaces of the anvil and post
embedded inside the epoxy act as anchors, to prevent the conductors from being
lxv
A bulb-shaped modern retrofit LED lamp with aluminium heat sink, a light diffusing
dome and E27 screw base, using a built-in power supply working on mains voltage
When a suitable voltage is applied to the leads, electrons are able to recombine
with electron holes within the device, releasing energy in the form of photons. This
the energy of the photon) is determined by the energy band gap of the
semiconductor.
An LED is often small in area (less than 1 mm2) and integrated optical components
low-intensity infrared light. Infrared LEDs are still frequently used as transmitting
variety of consumer electronics. The first visible-light LEDs were also of low
intensity, and limited to red. Modern LEDs are available across the visible,
lxvi
Early LEDs were often used as indicator lamps for electronic devices, replacing small
incandescent bulbs. They were soon packaged into numeric readouts in the form
lighting. LEDs have many advantages over incandescent light sources including
size, and faster switching. Light-emitting diodes are now used in applications as
traffic signals, camera flashes and lighted wallpaper. As of 2015, LEDs powerful
enough for room lighting remain somewhat more expensive, and require more
precise current and heat management than compact fluorescent lamp sources of
comparable output.
LEDs have allowed new text, video displays, and sensors to be developed, while
their high switching rates are also used in advanced communications technology.
lxvii
4.5 Design Steps
This are the various steps we took on the design of this project
Here, the whole components were place into the vero board according to its
position in the circuit diagram, the legs were bend to avoid living its space and to
The components were solder using a soft thick lead oxide and the component
connections was done with a tiny flexible wire we got from a networking cable to
After the design of the circuit the microcontroller was programmed to control the
In writing the software for this project a modular approach was employed.
This made it easier to check for errors and debug the program. Three major tools
were used in the development process; the keil C51 compiler was used to translate
lxviii
from the source code into the object code. The SDCC was employed to link the
program while the PACKIHX did the conversion from binary to hex.
language, reason being the fact that it combines the elements of high level
of bits, bytes and addresses. Also C codes are portable which means that it is
of bits, bytes, words and pointers. This suits it to system-level programming, where
lxix
After the design of the software, a text editor is employed to enter the source code
into the disk file. As noted earlier, the text editor also functions to correct error in
the program. The text editor used is KEIL C51 compiler and text editor.
#include "AT89x52.h"
#include "string.h"
#define lcd P2
sbit en = P3^6;
sbitrs = P3^7;
unsignedinta,b;
lxx
charnextline[]= {0xc0};
unsignedm,n ;
for(m=0;m<time;m++)
for(n=0;n<time;n++);
machine code)
After writing the program in the editors environment, the software was use to
compiler the entire program to generate a hex file which will be burn into the
microcontroller.
programmer known as ISP programmer which will now read and verifier the
lxxi
microcontroller design nomenclature and then will copy the hex codes into the
microcontroller.
Then after that the microcontroller will now be inserted into the circuit for testing.
After the implementation of the circuit diagram it has to be powered and checked
The design makes use of 9v battery which was converter to dc using a diode rectifier
and a capacitor filter to get an accurate dc from the voltage supply unit.
4.8 Packaging
The final test was undergone for proper function and design usage.
lxxii
CHAPTER FIVE
a. In hospitals
b. In clinic centers
d. In sports
e. In security places
f. Etc.
After the design and implementation phase, the system built has to be tested for
Durability, Efficiency, and Effectiveness and also ascertain if there is need to modify
this design. The system was first assembled using a breadboard. All components
were properly inserted into the breadboard from whence some tests were carried
tested using a digital millimeter (DMM). Resistors were tested to ensure that they
lxxiii
were within the tolerance value. Faulty resistors were discarded .The 78LS05
voltage regulator was also tested, the resulting output was 5.02v which is just a
deviation of 0.20v from the expected result of 5.00v.The LEDs were tested to
This chapter entails an overall system testing of the integrated design of the voltage
measurement device. The testing and integration is done to ensure that the design
for which the project was targeted for, appreciate its implementation and equally
approaches used in the design and integration of the various modules of the
project.
However, this involves checks made to ensure that all the various units and
When the totality of the modules was integrated together, the system was created
and all modules and sections responded to as specified in the design through the
lxxiv
5.2.2 Components Test
Reference was made to resistor color code data sheet to ascertain the expected
values of resistors used. Each resistor was tested and the value read and recorded.
Also for transistor test the DMM was switched to the diode range with the symbol
The collector, base and emitter junctions were tested in the following order. The
collector, emitter and base pins were gotten from the data analysis on power
transistor.
The system was powered and operated upon using several possibilities but we used
battery. They include depressing more than one button at the same time and
lxxv
noting the output responses of the system hardware. The system allows only one
input at a time.
Light emitting diode (LED) emits rays when forward biased .For capacitors the DMM
was switched to the 22uf range and the capacitors were inserted into the slot
VALUE VALUE
2000 2000
220 218 5%
10000 9980
lxxvi
Capacitor 10 10.20 f
10 10.15 f
30 29.82 f
From the table above, shows the range between the expected value and the actual
value can be tolerated. As a result of this the drift in expected value has no critical
effect on the system design since the result current range was not also exceeded,
lxxvii
CHAPTER SIX
SUMMARY
This section of this project report forms the concluding part of the write up and
takes a look at some of the problems encountered during the progressive job on
the system and also brings in suggestions for further improvement and/or
The design and development of this project has really been challenging, as I have
been faced with choices far beyond what I expected. But in the long run the result
paid off.
After the complete design of the system, the deviation between the expected result
and the actual result was very close. The performance and efficiency was beyond
expectation and from every ramification, the design of the project was a success.
lxxviii
During the course of the design of this system, there were series of problems which
came in the way of achieving the design goals of this project, most of them where
over come via share troubleshooting, in some cases some parts require redesigning
One major setback of this project is the availability of components required to build
the hardware of the system. In most cases I had to look through electrical catalogs
to obtain replacements of some of the components which are not available in the
market.
After developing the software for the microcontroller, it was very difficult to find a
the chip). This posed serious problem as it brought about delay in the design time
and it was also costly, this also affected the overall cost of the system.
The final packaging of the design was also another trouble, as this actually caused
problems on the circuit board. Such problems include partial contact within the
circuit board, between components and also with the wiring. This was actually one
of the most challenging aspects of the circuit implementation phase. Due to this
fact, there was a lot of soldering and de-soldering to ensure that the circuit was
well implemented.
lxxix
6.4 Suggestions for further improvement
It will be more appreciated if the system is designed to have integrated voice output
6.5: Conclusion
Going through the planning, flow process, design and software implementation the
system had really been a tough one; but on the whole it has been a chance to show
lxxx
Reference
theHomeSecurityAdviser.com.
lxxxi
lxxxii