Pir Sensor Based Security System
Pir Sensor Based Security System
BASED June
SECURITY 2012
SYSTEM
This PIR Sensor based Security System can switch on a
lamp or alarm when it detects the heat from an object
like a moving person in the secured area.
S6EB , NSSCE
N.S.S COLLEGE OF ENGINEERING
PALAKKAD, KERALA-678008
UNIVERSITY OF CALICUT
DEPARTMENT OF
ELECTRICAL & ELECTRONICS ENGINEERING
MINI PROJECT REPORT
JUNE-2012
SUBMITTED BY
SREERAJ CR –NSAJEEE087
USMAN P -NSAJEEE093
VISHNU P –NSAJEEE098
YELSIN A Y –NSAJEEE099
GUIDED BY
Mr SAJU N
ASST. PROFESSOR
CERTIFICATE
Place: Akathethara
Date:
Staff in Charge Internal Examiner Head of Department
Contents.......
Abstract................................................................... 5
Acknowledgements................................................. 6
List of Figures......................................................... 7
Introduction............................................................ 8
Block Diagram........................................................ 10
PIR Sensor............................................................... 11
Timer IC NE555...................................................... 15
Power supply.......................................................... 19
Transistor............................................................... 20
Relay........................................................................ 21
LED........................................................................... 22
Buzzer....................................................................... 23
7805 Regulator........................................................ 23
Components............................................................. 25
Circuit Diagram..................................................... 26
Apparatus................................................................ 27
Pros.......................................................................... 30
Cons......................................................................... 31
Conclusion............................................................... 32
Appendix................................................................. 33
Bibliography........................................................... 34
Abstract
2. PIR Sensor 11
3. IC NE555 15
4. Power Supply 19
5. Relay 21
6. LED 22
7. 7805 Regulator 23
8. Circuit Diagram 26
9. Apparatus 27
Introduction
A PIR Sensor is a pyroelectric device that can sense infrared
(IR) radiation changes within its viewing range. These
sensors are sensitive to moving objects radiating IR. A PIR
sensor creates temporary electric potential whenever a
change of IR radiation occurs on the viewing range of the
sensor, but the electric potential generated is very small in
amplitude and must be amplified significantly. That is
because PIR sensors cannot be used alone, instead they
become one of the key components of a passive infrared
device (PID) with some other circuitry. The basic structure of
a PID consists of a Fresnel lens, a PIR sensor, an amplifier
circuitry and a comparator plus time delayer circuitry.
Fresnel lens focuses IR radiation on PIR sensor and PIR
sensor measures the change in the IR rate and creates an
electric potential difference corresponding to the variation in
the IR radiation. However, this potential difference is very
small and must be amplified without introducing noise. The
amplifier circuitry aims to have a large gain for the sensor
signal and suppress the ambient noise at the same time. So,
generally a two stage bandpass amplifier is used. The
amplified sensor signal is then compared with a threshold. If
the signal stays in the range determined by the threshold then
it is assumed that no motion is observed, otherwise it is
assumed that there is a moving target. Therefore ordinary
PIR sensors are simple and give an output of logical one
when they detect a motion and a logical zero when there is no
moving object within their viewing ranges.
The PIDs are low-cost, easy to use and widely available
commercially. These practical features made them used in
many indoor and outdoor applications including the security
systems.
IR Radiation
Infrared (IR) radiation is a type of electromagnetic radiation.
Infrared light has a longer wavelength than visible light. The
infrared has a wavelength of 750 nm to 100 µm. The infrared
radiation is invisible to humans but we can feel it as heat.
Infrared region can further be divided into sub-regions as
follows:
Working:
When a movement is detected within the range of
the PIR sensor (normally 2-3 metres), it sends a
trigger to the NE555 timer which activates the
relay.
The relay gives power supply to the siren device
& it goes off along with the indicating LED.
PIR Sensor
PIR sensors allow you to sense motion, almost always used
to detect whether a human has moved in or out of the
sensors range. They are small, inexpensive, low-power,
easy to use and don't wear out. For that reason they are
commonly found in appliances and gadgets used in homes
or businesses. They are often referred to as PIR, "Passive"
or “Pyroelectric" IR motion sensors.
PIRs are basically made of a pyroelectric sensor (which can
be seen as the round metal can with a rectangular crystal in
the center ) , which can detect levels of infrared radiation.
Everything emits some low level radiation, and the hotter
something is, the more radiation is emitted. The sensor in a
motion detector is actually split in two halves. The reason
for that is that we are looking to detect motion (change) not
average IR levels. The two halves are wired up so that they
cancel each other out. If one half sees more or less IR
radiation than the other, the output will swing high or low.
PIR D203S
PIR Sensor: D203S
It is an excellent performance passive infrared sensor for
use in alarm burglar systems, visitor presence
monitoring & light switches. Narrow detection beam
employed for use in hallway and defined area detection
systems.
Features:
Dual Compensating Elements
Excellent Operating Stability
Supply Voltage: 3-15V
Narrow Sense Window for Directional Sensing
Body Dimensions: 9.1mm Diameter, 4.5mm High excluding
pins, Pins - 13.5mm High
Fresnels lens
The PIR sensor itself has two slots in it, each slot is made
of a special material that is sensitive to IR. When the
sensor is idle, both slots detect the same amount of IR, the
ambient amount radiated from the room or walls or
outdoors .When a warm body like a human or animal
passes by, it first intercepts one half of the PIR sensor,
which causes a positive differential change between the
two halves. When the warm body leaves the sensing area,
the reverse happens, whereby the sensor generates a
negative differential change. These change pulses are
what is detected.
Along with the pyroelectic sensor is a bunch of
supporting circuitry, resistors and capacitors which
forms a very inexpensive chip. This chip takes the
output of the sensor and does some minor processing
on it to emit a digital output pulse from the analog
sensor.
Pin Description:
1. Ground: input pin of the source of the negative DC voltage
2. Trigger: negative input from the lower comparators
(comparator B) that maintain oscillation capacitor voltage
in the lowest 1 / 3 Vcc and set RS flip-flop
3. Output: the output pin of the IC 555.
4. Reset: the pin that serves to reset the latch inside the IC to
be influential to reset the IC work. This pin is connected to a
PNP-type transistor gate, so the transistor will be active if
given a logic low. Normally this pin is connected directly to
Vcc to prevent reset
5. Control voltage: this pin serves to regulate the stability of
the reference voltage negative input (comparator A). This
pin can be left hanging.
6. Threshold: this pin is connected to the positive input
(comparator A) which will reset the RS flip-flop when the
voltage on the capacitor from exceeding 2 / 3 Vcc
7. Discharge: this pin is connected to an open collector
transistor Q1 is connected to ground emitter. Switching
transistor serves to clamp the corresponding node to
ground on the timing of certain
8. Vcc: pin to receive a DC voltage supply. (5-15V, 10-15mA).
Features:
High Current Drive Capability (200mA)
Adjustable Duty Cycle
Temperature Stability of 0.005%/°C
Timing From μSec to Hours
Turn off Time Less Than 2μSec
Astable mode
An Astable Circuit has no stable state - hence the name
"astable". The output continually switches state between high
and low without any intervention from the user, called a '
square ' wave. This type of circuit could be used to give a
mechanism intermittent motion by switching a motor on and
off at regular intervals. It can also be used to flash lamps and
LEDs, and is useful as a 'clock' pulse for other digital ICs and
circuits.
Monostable mode
A Monostable Circuit produces one pulse of a set length in
response to a trigger input such as a push button. The output
of the circuit stays in the low state until there is a trigger
input, hence the name "monostable" meaning "one stable
state". His type of circuit is ideal for use in a "push to
operate" system for a model displayed at exhibitions. A
visitor can push a button to start a model's mechanism
moving, and the mechanism will automatically switch off
after a set time.
Applications
• Precision Timing
• Pulse Generation
• Sequential Timing
Power Supply
Block Diagram
Linear Supply: Circuit
Transistor BC 548
BC548 is general purpose silicon, NPN, bipolar junction
transistor. It is used for amplification and switching purposes.
The current gain may vary between 110 and 800. The
maximum DC current gain is 800
Relay
Relays are special switches designed to allow a small
circuit to control a larger circuit. These devices use a
solenoid to control a heavy-duty switch. The wiring for the
solenoid may require only 0.5 amps to activate, while the
switch it controls carries 10 to 30 amps.
Connect the control device to the two solenoid pin soft here
lay. Supplying a small 12- volt voltage to these two pins
will turn the relay switch on or off.
Locate the other three pins. These pins form a SPDT
switch
Here a 12 V relay is used.
LED
A light-emitting diode (LED) is a semiconductor light
source. LEDs are used as indicator lamps in many devices,
and are increasingly used for lighting. Introduced in
1962, modern LEDs are available across
the visible, ultraviolet and infrared wavelengths, with very
high brightness. When a light-emitting diode is forward
biased (switched on), electrons are able
to recombine with holes within the device, releasing energy
in the form of photons. This effect is
called electroluminescence and the colour of the light
(corresponding to the energy of the photon) is determined by
the energy gap of the semiconductor. An LED is often small
in area (less than 1 mm2), and integrated optical components
may be used to shape its radiation pattern. LEDs present
many advantages over incandescent light sources
including lower energy consumption, longer lifetime,
improved robustness, smaller size, faster switching, and
greater durability and reliability. LEDs powerful enough for
room lighting are relatively expensive and require more
precise current and heat management than
compact fluorescent lamp sources of comparable output.
Buzzer
7805 Regulator
The 7805 voltage regulators employ built-in current
limiting, thermal shutdown, and safe-operating area
protection which makes them virtually immune to damage
from output overloads. 7805 is a three-terminal positive
voltage regulator.
Components....
RESISTOR
1. R1 ________100K
2. R2 ________10K
3. R3 ________4.7K
4. R4 ________4.7K
5. R5________1K
6. R6________1K
CAPACITOR
7. C1 ________220µF
8.C2 ________100µF
Bistable Operation:
Relevance:
The Pyro-electric Infra-Red (PIR) sensor is an extremely
useful device for detecting the presence of a moving body. This
is due to its ability to sense the infrared radiation that every
living body emits.
While a number of technologies for motion detection exist,
including ultrasonic and microwave radiation sensors, the
PIR sensor is popular for its ease-of-setup and high
performance. In addition, PIR sensors are inexpensive and has
little power consumption.
In the future world of electronics expects the rate of adoption
of PIR sensors to grow fast, with applications such as
surveillance and alarm systems, as well as power saving
devices, driving increased usage of PIR sensors.
Applications:
Cons........
Can be fooled by someone moving especially
slowly.
Conclusions:
The primary objective of this project was the development
of an effective & inexpensive security system that could
have applications in households as well as commercial
premises, workable in both day and night conditions.
Wireless sensor networks for surveillance systems in home,
office, or factory environment require correct tracking of
intruders. For such systems, passive infrared motion
sensors (PIR sensors) are ideal because they do not require
any signal or devices on the object to be tracked and they
can work in dark environment also.
Through well directed efforts a PIR Sensor based Security
System has been developed, which is capable of detecting
motion of humans or live beings in the range of the sensor
used & to trigger a buzzer circuit thus acting as an effective
burglar alarm. In the model developed as part of the
project provisions are also provided to act as an automatic
lighting circuit that switches on a bulb when intruder is
detected. In the event of risk of theft or vandalism from
domestic property, such effective PIR sensor security
systems can be implemented.
Further study in the direction could help develop more
sophisticated security solutions as 24-hr monitoring
system that would alert a few phone nos or a call centre if
the alarm is triggered. Overall the developed system
provides a basic solution for the primary one among
growing security concerns................................
Appendix:
D203S - Datasheet
General-Purpose Dual Element Pyroelectric Infrared
Radial Sensor- The pyroelectric infrared sensor detects
infrared radiation on the basis of the characteristics that the
polarization of pyroelectric material changes with
temperature. Dual compensated sensing elements are applied
to suppress the interference resulting from temperature
variation. As a result, the operating stability of the sensor is
greatly improved. Our products can be used in many
applications. Such as in security systems, burglar alarms,
visitor acknowledgement, light switch control and
intellectualized toy,etc.
4) www.future-mag.com
5) www.circuitstoday.com
6) www.engineersgarage.com
7) www.ladyada.net
8) www.fadooengineers.com
9) www.avaricetechnologies.com