Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Industrial Technology

PIR Sensors Explained: A Comprehensive Guide with Practical Examples

What is a PIR sensor? Passive infrared sensors are common in many types of security systems. Our article will elucidate infrared radiation in motion detection, among other critical insights of PIR sensors. 

What is a PIR sensor?

PIR Sensors Explained: A Comprehensive Guide with Practical Examples

Fig 1:Motion detector keypad infrared alarm

They are infrared motion sensors that detect movement in the device’s detection range. Hence, these types of motion sensors are common in security alarms. Also, they are helpful in the common types of automatic lighting applications. 

Among the primary advantages of the sensor, types include the following:

How PIRs Work?

PIR Sensors Explained: A Comprehensive Guide with Practical Examples

Fig 2: Motion sensor on an open protected area.

PIRs are pyroelectric sensors capable of detecting a particular amount of infrared radiation. Note that almost all objects emit some radiation. Thus, PIRs use this property to identify the presence of an object. 

A PIR sensor in motion sensors has two opposite slots. When in inactive mode, the two slots detect the same heat energy. Usually, this is the ambient temperature of the walls/surrounding room. However, the two slots experience a  positive differential change when an animal passes, thus detecting the object’s presence. 

What is a PIR sensor: Range of Different PIR Sensors

PIR Sensors Explained: A Comprehensive Guide with Practical Examples

Fig 3: Motion infrared detector connected to the main alarm board.

  1. Indoor passive infrared and indoor curtain-type

These detect an object from 25cm to 20m.

  1. Outdoor passive infrared and outdoor passive infrared curtain detectors

Are motion detectors for objects from 10m to 150m. 

How do PIRs work with Arduino and Raspberry Pi?

PIR Sensors Explained: A Comprehensive Guide with Practical Examples

Fig 4: Adjustable infrared pyroelectric, PIR module Motion Sensor. 

PIR-based motion detectors are compatible with Arduino and Rasberry Pi. The following is the procedure for setting up a simple passive motion sensor project with Arduino. 

Components

A Breadboard

Arduino Uno

PIR Sensor

Procedure

  1. You’ll need to connect terminal 2 of the Arduino UNO to the V(output pin) terminal of the PIR Sensor. Also, make sure you connect a 5V  voltage source to the PIR sensor and ground the GND port.
  2. Next, open the Arduino IDE software and create a new sketch file by choosing ‘New.’ 
  3. Thirdly, enter the following code:
PIR Sensors Explained: A Comprehensive Guide with Practical Examples

Figure 5: Arduino Code.

  1. Also, if necessary, adjust the sensor sensitivity and delay time using the two resistors on the sensor board. 
  2. Next, make some motion near the sensor. If it detects some movement, the Arduino will respond by sending a signal via the serial port indicating the presence of motion.
  3. In this instance, the PIR sensor will delay for a short period. Essentially, this is to identify if there’s a new motion. If there isn’t, the Arduino indicates that the motion has ended. 

Comparison of PIR Motion Sensor Series

PIR Sensors Explained: A Comprehensive Guide with Practical Examples

Conclusion

As you have seen, the PIR sensor works similarly to microwave in motion detection applications. Also, in a nutshell, above are the insights of an active motion sensor. However, if you still have questions about the working of this electronic sensor, talk to us anytime. 


Industrial Technology

  1. Build a Gesture & Motion Detector with PIR Sensor & Arduino Nano
  2. Mastering the HC‑SR04 Ultrasonic Sensor with Arduino: A Complete Tutorial
  3. Abrasive Jet Machining (AJM): How It Works & Key Benefits
  4. Welding Electrodes Explained: Types, Uses & How They Work
  5. Sheet Metal Brakes Explained: How They Bend and Shape Metal
  6. Mastering Ultrasonic Sensor Circuits: The Ultimate Guide
  7. The IRF740 MOSFET: Comprehensive Overview & Practical Applications
  8. ACS712 Current Sensor: A Comprehensive Guide for Accurate Current Measurement
  9. CD4027 Dual JK Flip‑Flop: Comprehensive User Guide
  10. LM358 Op-Amp User Guide: Features, Pinouts & Applications