HC-SR501 PIR Motion Sensor - Adjustable Infrared Motion Detection Module for Arduino and IoT Projects
The HC-SR501 PIR motion sensor module detects human and animal movement by sensing changes in infrared radiation. It is a practical trigger module for security alarms, automatic lighting, occupancy detection, camera wake-up circuits, and low-cost smart-home prototypes.
The module is widely used with Arduino-compatible boards such as the ELAB Nano V3, quick wiring setups based on the MB 102 Breadboard Kit, and status indicators such as the RGB Full Color LED Module. Onboard sensitivity and delay adjustments make it easier to tune behavior after mounting.
Use the digital output for event detection rather than distance measurement. For best reliability, keep the PIR lens clear, avoid pointing it at heaters or direct sunlight, and allow a short warm-up period after power-up.
Technical Specifications
| Parameter | Value |
|---|---|
| SKU | TB-HC-SR501 |
| Sensor Type | PIR passive infrared motion detector |
| Output | Digital HIGH/LOW motion signal |
| Typical Operating Voltage | 5V module supply, commonly used from 5V microcontroller systems |
| Detection Method | Infrared change detection through Fresnel lens |
| Adjustments | Sensitivity and delay potentiometers |
| Trigger Modes | Common HC-SR501 modules support retrigger / non-retrigger jumper modes |
| Typical Applications | Lighting control, alarms, occupancy sensing, robots |
| Host Interface | GPIO input |
| Warm-Up | Allow stabilization after power-up |
Board Layout & Label Guide
- VCC - Power input for the PIR module.
- OUT - Digital signal output to a controller GPIO.
- GND - Common ground with the host controller.
- Fresnel Lens - Covers the PIR element and defines the detection field.
- Sensitivity Potentiometer - Adjusts detection range behavior.
- Delay Potentiometer - Adjusts how long output stays active after detection.
- Trigger Jumper - Selects retrigger behavior on common HC-SR501 boards.
- Mounting Note - Keep the lens aimed at the target zone and away from heat drafts.
Application Scenarios
1. Arduino Motion Alarm
Turn on an LED when motion is detected.
2. ESP32 Occupancy Event
Print motion events to the serial monitor.
3. MicroPython Motion Trigger
Read PIR output from a Pico-style board.
Packing List
- 1 x HC-SR501 PIR Motion Sensor Module
FAQ
Q: What does this module detect?
A: It detects motion from warm bodies by sensing changes in infrared radiation.
Q: Does it measure distance?
A: No. It provides a motion/no-motion digital output.
Q: Why does it trigger at power-up?
A: PIR modules need a short stabilization period after power is applied.
Q: Can I adjust sensitivity?
A: Yes, common HC-SR501 modules include a sensitivity potentiometer.
Q: Can I adjust output time?
A: Yes, the delay potentiometer adjusts active output duration.
Q: Can it work behind glass?
A: PIR detection is usually poor behind glass or acrylic barriers.
Q: What causes false triggers?
A: Sunlight, heaters, airflow, vibration, and unstable power can cause false events.
Q: Can I use it with Arduino?
A: Yes, connect OUT to a digital input and share ground.