The HCSR505 is a miniature PIR (Pyroelectric Infrared) motion sensor module designed for reliable human body detection in spaceconstrained and batterypowered projects. Its small footprint and low power consumption make it an ideal choice for Arduinobased automatic lighting, security, and sensing applications [citation:1][citation:2].
| Parameter | Value |
|---|---|
| Operating Voltage | DC 4.5V to 20V [citation:1][citation:2] |
| Quiescent Current | <60µA [citation:1][citation:2] |
| Detection Distance | Up to 3 meters [citation:1][citation:2] |
| Detection Angle | <100° conical [citation:1][citation:2] |
| Delay Time | 8 seconds (default, ±30%) [citation:1][citation:2] |
| Output Level | HIGH 3.3V, LOW 0V [citation:1][citation:2] |
| Dimensions | 10 x 23mm [citation:1][citation:2] |
| Lens Diameter | 10mm [citation:1][citation:2] |
| Operating Temperature | -20°C to +80°C [citation:1][citation:2] |
The sensor detects changes in infrared radiation caused by moving objects, such as human presence [citation:1][citation:3].
+UltraLow Power Consumption Less than 60µA quiescent current extends battery life [citation:1].
+Repeatable Trigger - Ensures continuous activation while motion is present [citation:1].
+Automatic Induction - Outputs HIGH upon detecting motion, automatically delays and returns LOW after 8 seconds [citation:1][citation:2].
√ Compatible with Arduino, ESP8266, and other microcontrollers [citation:3].
√ Small size for easy installation [citation:1].
| Sensor Pin | Arduino Pin | Description |
|---|---|---|
| + (VCC) | 5V | Power supply (4.5-20V) [citation:3] |
| - (GND) | GND | Ground connection [citation:3] |
| S (OUT) | D3 (Digital) | Signal output [citation:3] |
> Connect VCC to 5V on Arduino, GND to GND, and OUT to any digital pin [citation:3].
"technical">digitalRead() to read the sensor state (HIGH motion detected).Sensor not detecting motion:
False triggers: