Introduction
You might think about purchasing an HC-SR501 Passive Infrared (PIR) sensor if you want to create a trail camera, a house burglar alarm, or perhaps you want to activate animated Halloween decorations when trick-or-treaters knock on your door.
You may use the PIR sensor to determine when an animal or human enters or exits the sensor's field of view. The majority of contemporary security systems, automated light switches, garage door openers, and similar devices that need to respond to motion use this sensor.
Let's first examine the PIR sensor's operation before delving into the details.
How does that PIR Sensor work?
At temperatures higher than absolute zero (0 Kelvin / -273.15 °C), everything, including the human body, emits heat energy in the form of infrared radiation. A thing emits more radiation the hotter it is. Since this radiation emits at infrared wavelengths, it cannot be seen by the human eye. The PIR sensor is made particularly to pick up on infrared radiation at certain intensities.
There are two major components of a PIR sensor:
- The image above shows a pyroelectric sensor, which is a circular piece of metal with a rectangular crystal in the middle.
- Fresnel lenses are specialized lenses that focus infrared signals on pyroelectric sensors.
pyroelectric Sensor
A pyroelectric sensor is a window with two rectangular slots constructed of a substance that enables infrared radiation to flow through (usually coated silicon). Two independent infrared sensor electrodes, one providing the positive output and the other the negative output, are located behind the window.
The wiring of the two electrodes makes them cancel each other out. This is so that we can detect changes in IR levels rather than just ambient IR levels. Because of this, we obtain the output when one side detects more or less IR radiation than the other.
Fresnel Lens
Parts in the PIR sensor
BISS0001 IC
power
Sensitivity adjustment
Time-delay adjustment
A jumper is the trigger choice
Optional Components
PIR Sensor Pinouts
VCC - The sensor's power source is VCC. Although 5V is frequently used, you can connect an input voltage of any value between 5 and 12V to this pin.
OUT - The 3.3V TTL logic output is on the pin. When motion is detected, it goes HIGH, and when it is not, it goes LOW (no motion detected).
GND - is the ground pin
Specifications of PIR Sensor
- Voltage 4.8 V – 20 V
- Current (idle) <50 µA
- Logic output 3.3 V / 0 V
- Delay time 0.3 s – 200 s, custom up to 10 min
- Lock time 2.5 s (default)
- Trigger repeat : L = disable, H = enable
- Sensing range <120 °, within 7 m
- Temperature – 15 ~ +70 °C
- Dimension 32 x 24 mm
- screw-screw 28 mm, M2
- Lens diameter: 23 mm
PIR Sensor Layout
Application of PIR sensor
- Intruder alarms.
- Automatic ticket gates.
- Entryway lighting.
- Security lighting.
- Automated sink/toilet flusher.
- Hand dryers.
- Automatic doors.