The HC-SR505 Mini PIR Motion Sensing Module is a compact passive infrared (PIR) sensor designed to detect motion by sensing changes in infrared radiation, typically emitted by human bodies. This module is widely used in security systems, home automation, and energy-saving applications due to its small size, low power consumption, and reliable performance.
The HC-SR505 module is designed for ease of use and integration into various electronic systems. Below are its key technical details:
Parameter | Specification |
---|---|
Operating Voltage | 4.5V to 20V DC |
Quiescent Current | < 60 µA |
Detection Range | Up to 3 meters |
Detection Angle | < 100° |
Output Signal | High (3.3V) when motion is detected |
Output Duration | ~8 seconds (non-adjustable) |
Operating Temperature | -20°C to +70°C |
Dimensions | 10mm x 23mm |
The HC-SR505 module has three pins for easy connection:
Pin | Name | Description |
---|---|---|
1 | VCC | Connect to the positive supply voltage (4.5V to 20V DC). |
2 | OUT | Output pin. Goes HIGH (3.3V) when motion is detected, LOW (0V) otherwise. |
3 | GND | Connect to the ground of the power supply. |
The HC-SR505 Mini PIR Motion Sensing Module is simple to use and can be integrated into a variety of circuits. Follow the steps below to use the module effectively:
Below is an example of how to connect and use the HC-SR505 module with an Arduino UNO to control an LED:
// HC-SR505 Mini PIR Motion Sensor with Arduino UNO
// This code turns on an LED when motion is detected.
const int pirPin = 2; // HC-SR505 OUT pin connected to digital pin 2
const int ledPin = 13; // LED connected to digital pin 13
void setup() {
pinMode(pirPin, INPUT); // Set PIR pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
digitalWrite(ledPin, LOW); // Ensure LED is off initially
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
int motionDetected = digitalRead(pirPin); // Read PIR sensor output
if (motionDetected == HIGH) {
// If motion is detected, turn on the LED
digitalWrite(ledPin, HIGH);
Serial.println("Motion detected!");
} else {
// If no motion is detected, turn off the LED
digitalWrite(ledPin, LOW);
}
delay(100); // Small delay to stabilize readings
}
No Output Signal (OUT pin always LOW):
False Triggers (OUT pin goes HIGH without motion):
Short Detection Range:
Q1: Can the detection range or output duration be adjusted?
A1: No, the HC-SR505 module has a fixed detection range (up to 3 meters) and output duration (~8 seconds).
Q2: Can the module detect motion through glass?
A2: No, the module cannot detect motion through glass or other materials that block infrared radiation.
Q3: Is the module compatible with 3.3V systems?
A3: Yes, the module's output signal is 3.3V, making it compatible with 3.3V logic systems. However, the power supply voltage must be between 4.5V and 20V.
Q4: How can I increase the detection range?
A4: The detection range is fixed and cannot be increased. For longer ranges, consider using a different PIR sensor with adjustable settings.
By following this documentation, you can effectively integrate the HC-SR505 Mini PIR Motion Sensing Module into your projects and troubleshoot common issues with ease.