HC-SR501 PIR motion sensor
Notices when a person or animal moves in front of it.
Passive infrared motion detector, up to ~7 m, 120° cone. Output goes HIGH (3.3 V) on motion for an adjustable 3 s-5 min; trimmers set delay and range, a jumper sets single or repeat trigger. 4.5-20 V supply, under 65 µA idle. Needs about a minute to settle after power-up.
Electrical
- Supply voltage
- 4.5 to 20 V
- Current
- 0.065 mA typical, 0.065 mA max
- Talks over
- digital
Pins
| Pin | Can do | Max V | Max mA |
|---|---|---|---|
| VCC | 5 V, power in4.5-20 V. Use 5 V; the on-board regulator makes 3.3 V. | ||
| OUT | digital3.3 V HIGH while motion is detected. Safe on every board. | ||
| GND | ground |
Size and material
- Size
- 32 × 25 × 24 mm
- Material
- plastic
- Sold by the
- piece
Works with
- Arduino Uno R3
- Arduino Nano
- Arduino Mega 2560 Rev3
- Arduino UNO R4 WiFi
- Arduino UNO R4 Minima
- Arduino Nano ESP32
- ESP32 DevKitC (ESP32-WROOM-32, 38-pin)
- ESP32-S3-DevKitC-1 (N8R8)
- Adafruit ESP32-S3 Feather (4 MB flash, 2 MB PSRAM)
- Seeed XIAO ESP32S3 Sense (camera + mic)
- Seeed XIAO ESP32C3
- Seeed XIAO ESP32C6
- Raspberry Pi Pico (RP2040)
- Raspberry Pi Pico W (RP2040, Wi-Fi)
- Raspberry Pi Pico 2 (RP2350)
- Raspberry Pi Pico 2 W (RP2350, Wi-Fi)
- Seeed XIAO RP2040
- Seeed XIAO nRF52840 (Bluetooth LE)
- Raspberry Pi 5 (4 GB)
- Raspberry Pi 4 Model B (4 GB)
- Raspberry Pi Zero 2 W
