What Is PIR Motion Sensor
What Is PIR Motion Sensor
A PIR (passive infrared) motion sensor is an electronic device that measures infrared
light radiating from objects in its field of view to detect motion. PIR sensors are used
extensively in security systems, automation, and a variety of consumer applications to
sense occupancy and trigger lights, cameras, alarms and other responses. This
comprehensive guide covers the working principle of PIR sensors, characteristics,
interfacing circuits, and usage in various applications.
PIR sensors can detect motion up to 20 feet away. They are often used in security
systems and automatic lighting systems. Here is an overview of how they work:
All objects emit some low level of infrared radiation that is invisible to the human eye
but can be detected by electronic devices designed for such a purpose. The term
passive in PIR sensor signifies that they do not generate or radiate any energy for
detection purposes. They solely work based on detecting infrared radiation emitted by
occupants in the surroundings.
The human body emits infrared radiation with a wavelength between 9 and 10
micrometers known as black body radiation. Even in complete darkness, this
irradiation persists.
Sensing Method
PIR sensors contain a pyroelectric sensor which can detect levels of infrared radiation.
It contains a crystalline material that generates an electric charge when exposed to
infrared radiation. The changes in the amount of infrared striking the element change
the voltages generated, which are measured by an internal circuit.
The PIR sensor has three terminals – VCC, OUT and GND. When motion is detected,
a HIGH output voltage signal is generated at OUT.
Detection Pattern
The PIR sensor has a 3-terminal IR sensing element connected to a simple signal
conditioning circuit. This circuit generates a binary HIGH or LOW output when
motion is detected.
PIR sensors have a wide angle range for motion detection. However, they also
respond to rapid temperature changes in the field of view unrelated to motion, which
can false trigger the output. To avoid this, PIR sensors use special detection methods:
These techniques allow the PIR sensor to react only to heat and motion
inconsistencies caused by human bodies while ignoring ambient temperature
variations.
Key characteristics that define the performance and usage of PIR sensors:
PIR motion sensors are easy to use. Here is a typical circuit diagram for connecting a
PIR sensor:
The sensor simply connects between positive voltage and ground. A resistor limits
current through the output pin which switches HIGH when motion is detected. The
OUT pin can directly drive a microcontroller input or a transistor stage for toggling an
external load.
Many PIR sensors feature adjustable time delays from 5 to 300+ seconds to prevent
repeated triggering of the output due to the same motion event. This helps reduce
false alarms.
PIR sensors can directly interface with microcontroller I/O pins for motion activated
control. Here is an example Arduino sketch for a basic motion detector:
The code continually checks the PIR sensor output. If motion is detected, it prints
“Motion detected!” on the serial monitor. Else, it prints “No motion”. A short delay is
added to avoid repeated prints.
More advanced algorithms can be implemented to detect motion only during certain
times, keep a motion log, activate alarms or cameras, and conserve power using sleep
modes.
With a wide range of PIR motion sensors available, here are some tips for selection:
For long range detection up to 20 feet, choose sensors with extended detection
lenses. Consider the field of view shape.
Sensors with lower current draw are better for battery powered systems. Duty
cycle operation helps conserve power.
Select adjustable time delay and sensitivity options for avoiding false
triggering if needed.
Rugged industrial grade sensors will have higher ingress protection (IP),
vibration tolerance and wide temperature operation.
Optical filters, dual element sensors reduce interference from ambient light
and temperature changes.
Analog or PWM output versions allow measuring signal strength instead of
just on/off control.
Versions with daylight blocking and pet immunity features are suitable for
home use.
Easy mounting provisions, wiring terminals, adjustment controls should be
considered for easy installation.
Units approved for the region, rated for safety, with manufacturer warranty
give peace of mind.
With good positioning and wiring practices, stable PIR sensor operation can be
obtained.
While PIR sensors can directly interface to logic circuits, some additional circuitry
can improve functionality:
Amplification – Adding an amplifier boosts the sensor output signal enabling longer
range or smaller motion detection.
Latching – A flip flop circuit latches the output HIGH on motion detect, holding
devices on until reset manually.
Timing control – Timers set triggered device on-time duration, or enforce mandatory
OFF intervals.
Shut-off timer – Automatically turns the system OFF after being triggered for a set
duration. Saves energy.
Creep zone detection – Detects motion very close to the sensor using a secondary IR
sensing element. Improves security.
Multiple sensors – Connecting multiple PIR units provides expanded coverage with
configurable trigger logic.
For easier prototyping, self-contained PIR sensor modules are available with built-in
circuitry and standard interfaces:
These modules simplify prototyping and final product integration using PIR
technology.
Conclusion
PIR motion sensors provide an inexpensive yet effective way to detect motion for
security, automation and other useful applications. Their ability to detect occupancy
without physical contact allows flexibility in system design and installation.
Incorporating additional circuit elements can further enhance PIR sensor capabilities.
With a good understanding of working principles and characteristics, reliable motion
sensing can be added to projects with PIR technology.
A: Most PIR sensors have a detection range of 10-15 feet. Larger range units and
special optics can extend this to 20-25 feet.
A: Basic sensors have 100-120° FOV. Lens options like curtains and long range
optics provide narrower, longer FOVs.
A: No, obstacles fully or partially block the infrared waves from reaching the sensor,
preventing motion detection.
Related Posts:
https://www.raypcb.com/pir-motion-sensors/