This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| electronic:pir:sr505 [2026/09/05 21:40] – external edit 127.0.0.1 | electronic:pir:sr505 [2026/09/06 20:09] (current) – tony | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{ : | ||
| + | ^ PIR Description | ||
| + | ^Model|**MH-SR505 (HC-SR505)**| | ||
| + | ^Manufacturer| | | ||
| + | ^Operating voltage|4.5 - 20V| | ||
| + | ^Quiescent Current|60µA| | ||
| + | ^Output level|3.3V| | ||
| + | ^Retriggerable|Y| | ||
| + | ^Delay time|8s| | ||
| + | ^Block time| | | ||
| + | ^Board Dimensions|10 x 23mm | | ||
| + | ^Sensor cone angle|< 100º| | ||
| + | ^Sensor range|< 3m| | ||
| + | ^Operation Temperature|-20 to +80ºC| | ||
| + | ^Sensor lens size|10mm| | ||
| + | |||
| + | Arduino test code: | ||
| + | < | ||
| + | #define LED 13 //Assume the Arduino has an LED on D13 | ||
| + | |||
| + | void setup() { | ||
| + | pinMode(PIR_MOTION_SENSOR, | ||
| + | pinMode(LED, | ||
| + | digitalWrite(LED, | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | int sensorValue = digitalRead(PIR_MOTION_SENSOR); | ||
| + | if(sensorValue == HIGH) | ||
| + | digitalWrite(LED, | ||
| + | else | ||
| + | digitalWrite(LED, | ||
| + | }</ | ||
| + | \\ | ||
| + | |||
| + | ==== Datasheets ==== | ||
| + | * {{: | ||
| + | * [[https:// | ||
| + | \\ | ||
| + | |||
| + | * Module schematic similar to this:\\ | ||
| + | {{https:// | ||
| + | |||
| + | \\ | ||
| + | ---- | ||
| + | ===== Examples ===== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | (The resistor labeled 180 (18Ω ?) actually appears to measure about 150k) | ||
| + | |||
| + | {{: | ||