PIR Sensor: Overview, Applications and Projects

PIR Sensor is short for passive infrared sensor, which applies for projects that need to detect human or particle movement in a certain range. It is also known as PIR (motion) sensor or IR sensor.

Since PIR Sensors are equipped with powerful function with low-cost advantages, it has been adopted in tons of projects and widely accepted by the open-source hardware community for projects related to Arduino and Raspberry Pi. With all these resources readily available, it has greatly helped beginners learn about the PIR sensor.

In this article, I will introduce the PIR Sensor and compare the different PIR sensors that you can find at Seeed. I hope this can help you understand PIRs better!

What will be covered:

  • Overview of PIR Sensors
  • Difference between PIR Sensor and Motion Sensor
  • How does PIR work with Arduino and Raspberry Pi?
  • Arduino and Raspberry Pi Projects using PIR Sensor

Overview of PIR Sensors

What is a PIR Sensor?

A passive infrared sensor is an electronic sensor that measures infrared light radiating from objects in its field of view. They are most often used in PIR-based motion detectors. PIR sensors are commonly used in security alarms and automatic lighting applications.

Image: PIR Motion Sensor – Large Lens version

Technically, PIR is made of a pyroelectric sensor, which is able to detect different levels of infrared radiation. For example, Everything emits varied level radiation and the level of radiation will increase with the increase of the object’s temperature.

What does a PIR sensor detect?

PIR sensors are also known as PID or Passive Infrared Detectors. Thus, the PIR sensor can detect infrared radiation that is emitted by particles.

Generally, PIR can detect animal/human movement in a requirement range, which is determined by the spec of the specific sensor. The detector itself does not emit any energy but passively receives it, detects infrared radiation from the environment.

How does PIR Sensor work?

The PIR Sensor is pretty complicated when compared to the other sensors. Since they have 2 slots, and the slots are made of sensitive material.

The Fresnel lens is used to see that the two slots of the PIR can see out past some distance. When the sensor is inactive, then the two slots senses the same amount of IR. The ambient amount radiates from the outdoors, walls or room, etc.

When a human body or any animal passes by, it intercepts the first slot of the PIR sensor. This causes a positive differential change between the two bisects. But when the body leaves the sensing area, the sensor generates a negative differential change between the two bisects.

Ref: Elpocus

Range of Different PIR Sensors

  • Indoor passive infrared: Detection distances range from 25 cm to 20 m.
  • Indoor curtain-type: The detection distance ranges from 25 cm to 20 m.
  • Outdoor passive infrared: The detection distance ranges from 10 meters to 150 meters.
  • Outdoor passive infrared curtain detector: distance from 10 meters to 150 meters

Difference between PIR Sensor and Motion Sensor

The motion sensor: Able to detect the movement of people or objects. In most applications, these sensors are mainly used to detect human activities in a specific area.

  • Converts motion into electrical signals: the sensor either emits stimuli and monitors any changes reflected back, or acquires signals from the moving object itself.
  • Alarm: Sounds the alarm when people or other objects invade and break the normal state, while others will alarm when they return to normal state after the invasion.
  • Usage: Security systems all over the world rely on motion sensors to trigger alarms and/or automatic lighting switches, which are usually placed in relatively easy access to buildings, such as windows and gates.

PIR is only one of the technical methods to detect motion, so we will say PIR sensor is a subset of the motion sensor.

PIR sensor is small in size, cheap in price, low-power consumption and very easy to understand, which makes it quite popular. A lot of merchants will add “motion” between PIR sensor for the convenience of beginners.


How does PIRs work with Arduino and Raspberry Pi?

Since there are many projects using PIR with Arduino and also a lot of tutorials, I will introduce some of the easier yet interesting ones for you to get your hands on!

At Seeed, we offer six PIR motion sensors! However, I’ll take Grove – PIR Motion Sensor as an example and compare it with other PIR sensors to illustrate how PIRs work with Arduino.

For the detailed step by step tutorial, please refer to Seeed Studio’s PIR sensor wiki page.

Grove – PIR Motion Sensor

This Grove – PIR Motion Sensor (Passive Infrared Sensor) can detect infrared signal caused by motion. If the PIR sensor notices the infrared energy, the motion detector is triggered and the sensor outputs HIGH on its SIG pin. The detecting range and response speed can be adjusted by 2 potentiometers soldered on its circuit board, The response speed is from 0.3s – 25s, and max 6 meters of detecting range.

This is easy to use a motion sensor with Grove compatible interface. Simply connect it to Base Shield and programming it, it can be used as a suitable motion detector for Arduino projects.

The PIR Motion Sensor Series includes several products that will meet your different needs:

ProductMeasuring range
(theoretical value)
Features
Grove – PIR Motion Sensor Max Distance:3-6m(3m by default)
Angle:< 120°
Measuring distance and holding time adjustable
response speed:0.3s – 25s
Grove-Adjustable PIR Motion Sensor Max Distance:3-6m
Angle:X=110° Y=90°
Measuring distance and holding time adjustable
Grove – mini PIR motion sensor Max Distance:2-5m(2m by default)
Angle:X=110° Y=90°
Sensitivity adjustable
Mini-size
PIR Motion Sensor – Large Lens version Max Distance:9m
Angle:< 120°
Large lens which can support long range and wide angle
2.54mm standard connector
PIR Motion sensor module Max Distance:3-7m
Angle:< 120°
Measuring distance adjustable
Mini PIR Motion Sensor Module Max Distance:7m
Angle:< 100°
Mini-size

Using PIR motion sensor with Arduino and Raspberry Pi

Connect PIR Sensor with Seeeduino
Connect PIR Sensor with Raspberry Pi

We prepared detailed tutorial and libraries in our wiki page to help you use PIR sensor with Arduino and Raspberry Pi. With Grove, you can just plug and play to get started PIRs projects.


Arduino and Raspberry Pi Projects using PIR Sensor

Arduino Projects Using PIR sensor

Burglar Alarm with PIR Motion Sensor

Ref: Hackster.io
Burglar Alarm with PIR Motion Sensor

Want to DIY your very own Burglar Alarm System? This project explains how to make one using a PIR Sensor, a Buzzer and an LED!

What you will need:

Interested? View more information here!

Halloween Candy Machine

Want to impress your guests during Halloween? Look no further, this automated Halloween Candy Machine will definitely win you the crowd!

What you will need:

Wiring of Candy Machine

Interested? Go ahead and try it out for yourself!

Christmas Music Cheer Light

Ho Ho Ho! Want to DIY your Christmas tree lighting? Check out this project!

For this project, we will be using the Grove – Adjustable PIR Motion Sensor. It is an easy-to-use Passive Infrared motion sensor, which can detect infrared object motion up to 3 meters.

What you will need:

Sounds fun? Go ahead and click here for details on how to DIY it!

Raspberry Pi Tutorial using PIR Sensor

Image: Maker Pro

Need help on interfacing your PIR motion sensor with the Raspberry Pi? This tutorial will show you how to do so! The GPIO pins on the Raspberry Pi are critical when it comes to making a hardware project, whether it’s a robot or home automation system. In any case, you will have to use the GPIO (general purpose input/output) pins on the Raspberry Pi.


Related Sensors

The PIR sensor couldn’t satisfy your project needs? Here’s an alternative motion sensor you can consider:

Microwave Sensor

Microwave sensors are also known as Radar, RF, or doppler sensors. They are electronic devices capable of detecting motion from walking, running to crawling in an outdoor environment by using electromagnetic radiation.

Moreover, It is able to detect motion by applying the Doppler effect and project microwaves which will bounce off surfaces and return to the sensor. It is able to measure and detect the amount of time for the signal to be reflected the sensor which is known as echo time.

What is Echo time?

The echo time helps calculate the distance from any stationary object within the detection zone and establishes a baseline for the motion detector to work from.

With echo time, the sensor is able to detect if there is any movement in the detection zone as if a person is moving within the zone as the waves will be altered which changes the echo time. With the microwave sensor, it is able to do all this within less than a microsecond.

It is also more suitable in certain scenarios compared to the PIR sensor. For example, it is not affected by ambient temperature compared to the PIR sensor.

Fun fact: A microwave sensor is able to offer stable performance at temperatures as low as -20°C and as high as 45°C!

Interested to learn more about it? Check out our other blog on Which Arduino Motion Sensor to Use – Microwave or PIR Sensor!


Summary

That’s all on PIRs and motion sensors! I hope I was able to help you better understand how PIRs and motion sensors work and aid you in choosing the most suitable PIR for your next project!

Please follow and like us:

1 thought on “PIR Sensor: Overview, Applications and Projects

Comments are closed.

Calendar

August 2019
M T W T F S S
« Jul   Sep »
 1234
567891011
12131415161718
19202122232425
262728293031  
Wordpress Social Share Plugin powered by Ultimatelysocial