What is the HC-SR501 Datasheet?
The HC-SR501 datasheet is a technical document that provides detailed information about the HC-SR501 PIR motion sensor module. It includes the module’s features, specifications, pin configuration, operating instructions, and application examples.
Key Features of the HC-SR501
- Passive Infrared (PIR) motion detection
- Adjustable sensitivity and delay time
- Low power consumption
- Wide operating voltage range
- Small size and easy to integrate
HC-SR501 Specifications
Parameter | Value |
---|---|
Operating Voltage | 4.5V to 20V DC |
Quiescent Current | <50μA |
Level Output | 3.3V/0V |
Delay Time | 5s to 200s (adjustable) |
Lock Time | 2.5s (default) |
Sensing Range | 3m to 7m |
Sensing Angle | <110° |
Operating Temperature Range | -15°C to +70°C |
Dimensions | 32mm x 24mm x 24mm |
HC-SR501 Pin Configuration
The HC-SR501 module has three pins:
- VCC: Power supply input (4.5V to 20V DC)
- Output: Digital output (HIGH when motion is detected, LOW otherwise)
- GND: Ground

HC-SR501 Operating Principle
The HC-SR501 uses a PIR sensor to detect motion by measuring changes in infrared radiation emitted by objects in its field of view. When an object (such as a person or animal) moves within the sensor’s detection range, the change in infrared radiation triggers the module’s output to go HIGH. The output remains HIGH for a set delay time, which can be adjusted using the onboard potentiometer.
Adjusting HC-SR501 Sensitivity and Delay Time
The HC-SR501 module has two potentiometers for adjusting its sensitivity and delay time:
-
Sensitivity potentiometer: Adjusts the module’s sensitivity to motion. Turning it clockwise increases sensitivity, while turning it counterclockwise decreases sensitivity.
-
Delay time potentiometer: Adjusts the duration for which the output remains HIGH after motion is detected. Turning it clockwise increases the delay time, while turning it counterclockwise decreases the delay time.
Connecting the HC-SR501 to a Microcontroller
To use the HC-SR501 with a microcontroller, such as an Arduino, follow these steps:
- Connect the VCC pin to the microcontroller’s 5V pin or an external power supply (4.5V to 20V DC).
- Connect the Output pin to a digital input pin on the microcontroller.
- Connect the GND pin to the microcontroller’s ground.
Here’s an example Arduino sketch that demonstrates how to read the HC-SR501’s output:
const int pirPin = 2;
void setup() {
pinMode(pirPin, INPUT);
Serial.begin(9600);
}
void loop() {
int pirState = digitalRead(pirPin);
if (pirState == HIGH) {
Serial.println("Motion detected!");
} else {
Serial.println("No motion detected.");
}
delay(500);
}
HC-SR501 Application Examples
The HC-SR501 can be used in various applications, such as:
- Home security systems
- Automatic lighting control
- Energy-saving devices
- Robotics and automation
- Wildlife monitoring
Frequently Asked Questions (FAQ)
1. What is the detection range of the HC-SR501?
The HC-SR501 has a detection range of 3 to 7 meters, depending on the environment and the sensitivity setting.
2. Can the HC-SR501 detect motion through walls?
No, the HC-SR501 cannot detect motion through walls or other solid objects. It requires a direct line of sight to detect changes in infrared radiation.
3. How do I adjust the sensitivity of the HC-SR501?
To adjust the sensitivity of the HC-SR501, use a small screwdriver to turn the sensitivity potentiometer on the module. Turning it clockwise increases sensitivity, while turning it counterclockwise decreases sensitivity.
4. What is the maximum delay time I can set on the HC-SR501?
The maximum delay time that can be set on the HC-SR501 is approximately 200 seconds (3 minutes and 20 seconds).
5. Can I use the HC-SR501 with a Raspberry Pi?
Yes, you can use the HC-SR501 with a Raspberry Pi by connecting it to the appropriate GPIO pins and using Python or another programming language to read its output.
Conclusion
The HC-SR501 is a versatile and easy-to-use PIR motion sensor module that can be integrated into various electronic projects. By understanding its features, specifications, and operating principles outlined in the HC-SR501 datasheet, you can effectively utilize this sensor in your applications. Whether you’re building a home security system, an automatic lighting control, or a wildlife monitoring device, the HC-SR501 is a reliable choice for detecting motion.