PIR Motion Sensor SR501 (Infrared Motion Detector)
ποΈ PIR Motion Sensor β HC-SR501 (Infrared Motion Detector)
The HC-SR501 PIR Motion Sensor is a popular, low-cost infrared sensor used to detect human motion. It senses changes in infrared radiation, making it ideal for automatic lighting systems, security alarms, robotics, and home automation projects. The sensor includes adjustable sensitivity and delay time via onboard potentiometers.
βοΈ Technical Specifications
Parameter | Specification |
---|---|
Model | HC-SR501 |
Detection Type | Passive Infrared (PIR) |
Operating Voltage | 4.5V to 20V DC |
Current Draw | β€ 65mA |
Output Type | Digital HIGH/LOW (3.3V logic) |
Delay Time | Adjustable (0.3 β 300 seconds) |
Sensitivity Range | Up to 6 meters (adjustable) |
Detection Angle | ~120Β° cone |
Dimensions | ~32mm x 24mm |
Trigger Modes | Repeatable & non-repeatable (selectable) |
β Features
π Detects motion from people, animals, or objects
π§ Two adjustable knobs for delay and sensitivity
π Can be set to trigger once or repeatedly while motion persists
π οΈ Easy to use with Arduino, Raspberry Pi, ESP32
β‘ Works with relays, buzzers, or smart lights
π οΈ Arduino Connection Guide
PIR Pin | Arduino Pin |
---|---|
VCC | 5V |
GND | GND |
OUT | Digital Pin (e.g., D2) |
π§ͺ Arduino Example Code
int pirPin = 2; int ledPin = 13; void setup() { pinMode(pirPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { if (digitalRead(pirPin) == HIGH) { digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); delay(500); } else { digitalWrite(ledPin, LOW); } }