Professional Documents
Culture Documents
Pushpendra
Pushpendra
The purpose of this project is to provide a home & office power & security
system . This system facilitates the house owners to monitor their home
remotely from any where in the world. This system comprises of a Micro-
system along with PIR (Passive Infrared) based presence of human beings
monitored. For example the house owner can mount this sensor at one of the
corners of the room so that it can cover the entire room area. Whenever a
human being enters inside the room, this system senses the Infrared rays
emitted from the human body. This sensor output is given to the Micro-
This system works good both at day and night (dark light) timing. The
measures infrared (IR) light radiating from objects in its field of view. PIR
sensors are often used in the construction of PIR-based motion detectors (see
another temperature, such as a wall. [1] All objects emit what is known as
human eye but can be detected by electronic devices designed for such a
purpose.
PASSIVE INFRARED SENSOR
The term passive in this instance means that the PIR device does not emit
remote thermometer [edit] Design Infrared radiation enters through the front
of the sensor, known as the sensor face. At the core of a PIR sensor is a solid
state sensor or set of sensors, made from an approximately 1/4 inch square
manufactured as part of an integrated circuit and may consist of one (1), two
(2) or four (4) 'pixels' of equal areas of the pyroelectric material. Pairs of the
such a configuration, the PIR measurements cancel each other so that the
and will not trigger the device. This allows the device to resist false
field- wide illumination. (Continuous bright light could still saturate the
detector Cylindrical facet lens in front of PIR sensor. Each facet (rectangle)
contained within a housing mounted in a location where the sensor can view
sensor through the window because the plastic used is transparent to infrared
radiation (but only translucent to visible light). This plastic sheet also
prevents the intrusion of dust and/or insects from obscuring the sensor's field
of view, and in the case of insects, from generating false alarms. A few
mechanisms have been used to focus the distant infrared energy onto the
sensor surface. The window may have multiple Fresnel lenses molded into
it. Multi-Fresnel lens type of PID Typical residential and/or commercial PID
with multi-Fresnel lens cover. PID front cover only with point light source
behind to show individual lenses. PID with front cover removed showing
Fresnel lenses molded into it. This filtering window may be used to limit the
this configuration is specialized for motion detectors, see below. [edit] PIR-
based motion detector Cylindrical facet lens in front of PIR sensor. Each
called a PID, for Passive Infrared Detector), the PIR sensor is typically
required to interpret the signals from the pyroelectric sensor chip. The
where the sensor can view the area to be monitored. Infrared energy is able
to reach the pyroelectric sensor through the window because the plastic used
plastic sheet also prevents the intrusion of dust and/or insects from
obscuring the sensor's field of view, and in the case of insects, from
generating false alarms. A few mechanisms have been used to focus the
distant infrared energy onto the sensor surface. The window may have
multiple Fresnel lenses molded into it. Multi-Fresnel lens type of PID
PID front cover only with point light source behind to show individual
lenses. PID with front cover removed showing location of pyroelectric
parabolic mirrors to focus the infrared energy. Where mirrors are used, the
plastic window cover has no Fresnel lenses molded into it. This filtering
detectors, see below. [edit] PIR-based motion detector Cylindrical facet lens
motion detector (usually called a PID, for Passive Infrared Detector), the
in a location where the sensor can view the area to be monitored. Infrared
energy is able to reach the pyroelectric sensor through the window because
visible light). This plastic sheet also prevents the intrusion of dust and/or
insects from obscuring the sensor's field of view, and in the case of insects,
from generating false alarms. A few mechanisms have been used to focus
the distant infrared energy onto the sensor surface. The window may have
multiple Fresnel lenses molded into it. Multi-Fresnel lens type of PID
Typical residential and/or commercial PID with multi-Fresnel lens cover.
PID front cover only with point light source behind to show individual
Where mirrors are used, the plastic window cover has no Fresnel lenses
molded into it. This filtering window may be used to limit the wavelengths
PIDenergy), the air blowing on the plastic window cover could change the
plastic's temperature enough to, once again, fool the electronics. PIDs come
segments and has an effective range of about thirty feet. Some larger PIDs
are made with single segment mirrors and can sense changes in infrared
energy over one hundred feet away from the PID. There are also PIDs
coverage (110° wide) or very narrow 'curtain' coverage. PIDs can have more
than one internal sensing element so that, with the appropriate electronics
and Fresnel lens, it can detect direction. Left to right, right to left, up or
POWER SUPPLY
The circuit diagram below represents a typical use of a voltage regulator.
The transformer drops the 240 volt 'mains' voltage to 8.5 volts.
The diode 'bridge' rectifies the 8.5 volts AC from the output side of the
power transformer into DC. The 2500uF capacitor helps to maintain a
constant input into the regulator.
gives the 3.3V output. The output of the PIR sensor is compared by the
them are fed with two different reference voltages through potentiometers
VR1 and VR2. The IR signal transmitted by the human is sensed by a PIR-
sensing module, and compared with two different threshold voltages through
the two comparators. The output through wires 6 and 7 is made available at
the header. The header also supplies voltages for comparators and IR
modules.
white-line detection. You may use both of them to work at different lighting
“bottom contact”. When the armature contact arm touches the “bottom
contact”, the circuit being driven by the relay becomes complete, and
the current start to flow from the pole to the “bottom contact” and into
the circuit. This will glow the lamp in our example circuit.
Relays in Circuit
Let us now see how a relay is represented in a circuit.
figure shown a double pole relay with its internal constructions and pin
configuration. The contact on which the movable armature of relay
normally reset is commonly known as N/C [normally closed or
normally connected] contact.
Block Diagram
Control
Power supply section
Logic
12v DC&05v DC Relay
Drive Relay-1
CIRC- Power
PIR (Tx) UIT Supply
Sensor
Rx
Precautions
Kitchen,
Store rooms,
hall ways,
Staircase ,
Corridor,
driveways,
car parks.
DEVICE OVERVIEW
• PIC16F876A
• PIC16F877A
PIC16F873A/876A devices are available only in 28-pin packages, while
PIC16F874A/877A devices are available in 40-pin and 44-pin packages. All devices in
the PIC16F87XA family share common architecture with the following differences:
• The PIC16F873A and PIC16F874A have one-half of the total on-chip memory of the
PIC16F876A and PIC16F877A
• The 28-pin devices have three I/O ports, while the 40/44-pin devices have five • The
28-pin devices have fourteen interrupts, while the 40/44-pin devices have fifteen
• The 28-pin devices have five A/D input channels, while the 40/44-pin devices have
eight
• The Parallel Slave Port is implemented only on the 40/44-pin devices The available
features are summarized in Table 1-1. Block diagrams of the PIC16F873A/876A and
PIC16F874A/877A devices are provided in Figure 1-1 and Figure 1-2, respectively. The
pinouts for these device families are listed in Table 1-2 and Table 1-3. Additional
information may be found in the PICmicro® Mid-Range Reference Manual (DS33023),
which may be obtained from your local Microchip Sales Representative This document
contains device specific information about the following devices:
• PIC16F873A
• PIC16F874A
or downloaded from the Microchip web site. The Reference Manual should be
considered a complementary document to this data sheet and is highly recommended
reading for a better understanding of the device architecture and operation of the
peripheral modules.
The register file can be accessed either directly, or indirectly, through the File
Select Register (FSR).
bit 7 IRP: Register Bank Select bit (used for indirect addressing)
1 = Bank 2, 3 (100h-1FFh)
0 = Bank 0, 1 (00h-FFh)
bit 6-5 RP1:RP0: Register Bank Select bits (used for direct addressing)
11 = Bank 3 (180h-1FFh)
10 = Bank 2 (100h-17Fh)
01 = Bank 1 (80h-FFh)
00 = Bank 0 (00h-7Fh)
Each bank is 128 bytes.
bit 4 TO: Time-out bit
1 = After power-up, CLRWDT instruction or SLEEP instruction
0 = A WDT time-out occurred
bit 3 PD: Power-down bit
1 = After power-up or by the CLRWDT instruction
0 = By execution of the SLEEP instruction
bit 2 Z: Zero bit
1 = The result of an arithmetic or logic operation is zero
0 = The result of an arithmetic or logic operation is not zero
bit 1 DC: Digit carry/borrow bit (ADDWF, ADDLW,SUBLW,SUBWF instructions)
(for borrow, the polarity is reversed)
1 = A carry-out from the 4th low order bit of the result occurred
0 = No carry-out from the 4th low order bit of the result
bit 0 C: Carry/borrow bit (ADDWF, ADDLW,SUBLW,SUBWF instructions)
1 = A carry-out from the Most Significant bit of the result occurred
0 = No carry-out from the Most Significant bit of the result occurred
Note: For borrow, the polarity is reversed. A subtraction is executed by adding the two’s
complement of the second operand. For rotate (RRF, RLF) instructions, this bit is
loaded with either the high, or low order bit of the source register.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
- n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
CONTENTS
INTRIDUCTION
PIR SNNSER FOR HUMAN DETECTION
PASSIVE INFRARED SENSOR
POWER SUPPLY
WORKING
RELAY
CONSTRUCTION OF RELAY
RELAY IN CIRCUIT
BLOK DIAGRAM
PRECAUTIONS
DEVICE OVERVIEW
MEMORY ORGANIGATIONS
STATUS REGISTER