{{ :electronic:pir:p8230873a.jpg?200|MH-SR505}} ^ 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 PIR_MOTION_SENSOR 2 //Pin D2 is connected the module output #define LED 13 //Assume the Arduino has an LED on D13 void setup() { pinMode(PIR_MOTION_SENSOR, INPUT); pinMode(LED,OUTPUT); digitalWrite(LED,LOW); } void loop() { int sensorValue = digitalRead(PIR_MOTION_SENSOR); if(sensorValue == HIGH) digitalWrite(LED,HIGH); else digitalWrite(LED,LOW); }====Related datasheets==== * {{:electronic:datasheet:egmicro:eg4001_datasheet_en.pdf|EG4001}} PIR controller. * [[https://unusualelectronics.co.uk/hc-sr505-mini-pir-module-review/|HC SR505 pir module review]] \\ \\ ---- * Module schematic similar to this:\\ {{https://web.archive.org/web/20180823211824if_/http://unusualelectronics.co.uk/wordpress/wp-content/uploads/pir_module_circuit.png|HC-SR505 circuit}} ((by David Thorpe, https://unusualelectronics.co.uk)). ---- ===== Examples : ===== {{:electronic:pir:p8230873a.jpg?800|MH-SR505}} {{:electronic:pir:p8230876a.jpg?800|MH-SR505}} {{:electronic:pir:p8230875a.jpg?800|MH-SR505}} {{:electronic:pir:p8240878a.jpg?800|MH-SR505}} {{:electronic:pir:p8230877a.jpg?800|MH-SR505}}\\ (The resistor labeled 180 (18Ω ?) actually appears to measure about 150k) {{:electronic:pir:p8230874a.jpg?800|MH-SR505}}