HC-SR501 PIR Motion Sensor Detector Module

$3.15

PIR motion sensor is an electronic sensor that measures infrared light radiated from objects in its field of view. They are most often used in PIR based motion detectors.PIR motion is commonly used in security alarms, automatic lighting applications and PIR sensor detect general movement.

$3.15

HC-SR501 PIR Motion Sensor Module

The HC-SR501 PIR (Passive Infrared) motion sensor actively detects movement by monitoring changes in infrared radiation. It fits perfectly in security systems, home automation, lighting control, and other motion-detection applications because of its affordability, energy efficiency, and ease of integration.

Key Features

  • Adjustable Detection Distance: Up to 7 meters

  • Detection Angle: Around 120 degrees

  • Power Supply Range: 5V to 20V DC

  • Digital Output: Outputs HIGH (3.3V) when it detects motion

  • Trigger Modes: Repeatable and non-repeatable

  • Delay Time: Adjustable from 5 seconds to 300 seconds

  • Consumes Low Power

  • Compact and Lightweight Design

Pin Configuration

Pin Description
VCC Connect to 5V–20V power
OUT Provides digital signal output
GND Connect to ground

 How It Works

The HC-SR501 uses pyroelectric sensors to detect changes in infrared radiation. When a warm object—like a human or animal—enters its detection range, the sensor sends a HIGH signal through the OUT pin. After the delay time elapses, it sends a LOW signal again, unless it still detects motion.

 Connecting to Arduino

HC-SR501 Pin Connects To Arduino
VCC 5V
GND GND
OUT Digital Pin (e.g., D2)

 Sample Code for Arduino UNO

cpp
int pirPin = 2;
int ledPin = 13;
int motionState = LOW;
void setup() {
pinMode(pirPin, INPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}void loop() {
int motion = digitalRead(pirPin);if (motion == HIGH) {
digitalWrite(ledPin, HIGH);
if (motionState == LOW) {
Serial.println(“Motion Detected!”);
motionState = HIGH;
}
} else {
digitalWrite(ledPin, LOW);
if (motionState == HIGH) {
Serial.println(“Motion Ended.”);
motionState = LOW;
}
}
}

 Applications

  • Home automation (e.g., auto lights)

  • Motion-activated alarms

  • Security camera triggers

  • Robotic sensing projects

  • Smart lighting systems for energy saving

 Real-World Use Cases

  • Outdoor lighting

  • Shopping malls

  • Common staircases

  • Multi-apartment buildings

  • Garden and pathway lighting

 Package Includes

  • 1× PIR Motion Sensor Module (HC-SR501)

Specifications

  • Recommended model: D204B
  • Encapsulation Type: TO-5
  • IR Receiving electrode: 2*1mm, 2 elements
  • Window size: 5*3.8mm
  • Spectral Response: 5-um
  • Storage Temperature:-40-800C
  • Operating Temperature: -30-700C
  • Supply Voltage: 0, 3-15V
  • Offset Voltage: 0.3-1.2V
  • 3 to 7 meters or more detection range
  • 120-degree detection angle
  • Pin1 corresponds to the drain terminal of the device, which should be connected to the positive supply 5V DC.
  • Pin2 corresponds to the source terminal of the device, which should be connected to the ground terminal via a 100K or 47K resistor. The Pin2 is the output pin of the sensor, and the detected IR signal is carried forward to an amplifier from the pin 2 of the sensorPin3 of the sensor is connected to the ground.

Based on 0 reviews

0.0 overall
0
0
0
0
0

Only logged in customers who have purchased this product may leave a review.

There are no reviews yet.

Related Products