Arduino Projects    |   Raspberry Pi  |     Electronic Circuits   |    AVR    |    PIC    |    8051    |    Electronic Projects

PIR Sensor based Alarm



This Passive InfraRed Alarm system (PIR alarm) can switch on a Lamp or Alarm when it detects the heat from an object like moving person. The name PIR (Passive Infrared) is given to the sensor because it receives the infrared rays passively and do not emit any infrared ray. The lamp or alarm remains on few minutes depending on the mono time setting of the PIR Sensor used. Ready to fix PIR Sensors are available with Fresnel lens to increase sensitivity and to filter ambient light. Its range is around 5 meters at 45 degree cone angle.

Passive Infrared
Human beings cannot detect infrared rays but emits infrared from the body as heat like all other warm blooded animals (animals in which body temperature remains constant- Mammals and Birds)).This is exploited in Motion detectors to detect the presence of human beings. PIR sensors (Passive InfraRed sensor) are used to activate an alarm system using the Infrared in the form of body heat from the human body. PIR sensor is an electronic device that measures the infrared in its field of view. Movement is detected by the sensor when an infrared source like human passes in front of the sensor with one temperature and comparing another temperature like that of the wall in which the sensor is mounted.

About PIR Sensor
The PIR sensor is mounted on a PCB with other semiconductors. The complete assembly is mounted in a case with a Fresnel lens molded in front of it. Behind the lens, there is a small window through which infrared enters into the sensor. The window is covered with a transparent plastic which allows only IR rays to enter into the sensor and preventsvisible light. The filtering window limits the IR rays to 8-14 micrometers similar to the IR rays from human body.

PIR Sensor


The PIR sensor is a solid state device made of ¼ inch pyroelectric material as a thin film. The pyroelectric material may be Gallium nitride (GaN), Cesium nitrate(CsNO3), Cobalt phthalocyanine, Lithium tantalite (LiTaO3) etc. They show both piezoelectric and pyroelectric properties. The sensor is made as part of the integrated circuit having 1 – 4 pixels of pyroelectric material. The paired pixels are connected to the inputs of a differential amplifier. The differential amplifier cancel each other the PIR measurements and the average temperature in the field of view is removed from the electrical signal. So that the IR energy on the sensor will not trigger the alarm. This prevents false triggering when exposed to flashes of light. The differential amplifier also minimizes the common mode interference from electric fields.The circuit in the PIR sensor can be connected to a relay switch and the sensor resets at power on and remains standby.
Circuits operation
The PIR Sensor module is a pre assembled board with circuits to compare the infrared rays from the object and that of the nearby area like the mounting wall. When a person enters within the range of the Sensor, The Fresnel lens focus the IR energy into the sensor which had previously sensed the cooler area. This change in energy level makes the sensor warmer and makes a hot spot in it. The Module then gives around 3 volts( Check the output. In some makes, output is active low) .The high output saturates T1 and it conducts. When T1 conducts, T2 also conducts to drive the relay. The AC lamp or Alarm can be connected through the Common and NO contacts of the relay switch. When the person moves, the hot spot also moves which causes the electronic circuit to deactivate the relay. If the person tries to mask the sensor with some shield, the sensor develops a cold spot which also activate the alarm. Thus the PIR sensor is fail proof. 

PIR Sensor Module


The circuit can be powered using 12 volt regulated power supply or battery.
Mounting of PIR Sensor
Fixing and focusing the PIR sensor is important to give maximum sensitivity and to prevent false alarms. Mounting the device on the wall at an angle of 45 degree and 2-3 meters height will give good results. The sensor may saturate if strong sunlight andhead light from vehicles fall on the sensor. Such positions should be avoided.


Circuit Diagram

Circuit Diagram 2

Comments (2)

SIR,I am final year student


I am final year student of and instrumentation) I am interested in making this project please provide me some guidance and some notes on this project.....I am using PIC based circuit.I really appreicate your help.


please mail me related document*****as sson as possible....******

thank u for the support

thank u for the support

You are here