My Projects

PIR module data

MH-SR505

PIR Description
ModelMH-SR505 (HC-SR505)
Manufacturer
Operating voltage4.5 - 20V
Quiescent Current60µA
Output level3.3V
RetriggerableY
Delay time8s
Block time
Board Dimensions10 x 23mm
Sensor cone angle< 100º
Sensor range< 3m
Operation Temperature-20 to +80ºC
Sensor lens size10mm

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);
}




  • Module schematic similar to this:

HC-SR505 circuit 1).


Examples :

MH-SR505

MH-SR505

MH-SR505

MH-SR505

MH-SR505
(The resistor labeled 180 (18Ω ?) actually appears to measure about 150k)

MH-SR505