Electronics

PIR Motion Sensor Module MH-SR602

AED 23.10

Low stock
1

Description

The SR-602 PIR Motion Sensor is a small passive infrared (PIR) motion sensor It is frequently employed in automated lighting and burglar alarm systems. It has the wonderful ability to accept 3.3 volts directly from a microcontroller like the ESP8266 or ESP32, which is a fantastic feature.

 

Package Includes:

  • 1 x PIR Motion Sensor Module SR-602

 

Features:

  • Wide operating voltage range from 3.3 v-15 v
  • Low power consumption in Static mode is 20uA.
  • High reliability
  • output time delay 2s.
  • Can be used separately without any additional microcontroller or platform like Arduino or Raspberry Pi etc. But you can use them to enhance your project.
  • After installing the photosensitive element, it does not work during the day, works at night does not contain photosensitive components, and works all day.
  • 100-degree detection angle
  • 3.5 to 5 metersdetection range
  • Easy to connect with any platform like Arduino or Raspberry Pi and all microcontrollers.
  • Easy to connect with analog circuits

 

Description:

The SR-602 PIR Motion Sensor is a small passive infrared (PIR) motion sensor It is frequently employed in automated lighting and burglar alarm systems. It has the wonderful ability to accept 3.3 volts directly from a microcontroller like the ESP8266 or ESP32, Three pins in the sensor: two are used for the power supply (VCC and GND), and the third is used for the output. The (+ and -) buttons are located on one side of the miniature circuit board, and Vin and GND are labeled on the other pin. Due to the lack of reverse polarity protection on the SR-602 sensor, caution must be used when connecting to avoid confusing VCC and GND. The sensor employs a repeated trigger, which means that each time a movement is detected, the trigger duration is reset.

 

Principle of Work:

The PIR sensor measures fluctuations in the amount of infrared radiation impinging on it, depending on the temperature and surface characteristics of the objects in front of it. The temperature in its field of view changes when a human walks in front of it from ambient to body temperature and back to normal. By converting the ensuing change in output voltage, it can identify variations in incoming infrared light. The detector may also turn on if there are moving objects in relation to the background. it also utilizes a repeating trigger, which means the duration of the trigger is reset each time a movement is detected.

 

Pinout of the Module:

Mini Motion Sensor (PIR) - Micro Robotics

Pin on the PCB

Description
Signal Ouput Digital output (HIGH: 3.3V or LOW: 0V)
Power + Positive DC power supply between 3.3-15V
Power - Ground

 

Applications:

  • Intruder alarms
  • Entryway lighting
  • Security lighting
  • Hand dryers
  • Automatic doors

 

Circuit:

motion5

 

Library:

The module does not need a Library to function with Arduino

 

Code:

 
int led = 13;                // the pin that the LED is atteched to
int sensor = 2;              // the pin that the sensor is atteched to
int state = LOW;             // by default, no motion detected
int val = 0;                 // variable to store the sensor status (value)

void setup() {
  pinMode(led, OUTPUT);      // initalize LED as an output
  pinMode(sensor, INPUT);    // initialize sensor as an input
  Serial.begin(9600);        // initialize serial
}

void loop(){
  val = digitalRead(sensor);   // read sensor value
  if (val == HIGH) {           // check if the sensor is HIGH
    digitalWrite(led, HIGH);   // turn LED ON
    delay(500);                // delay 100 milliseconds 
    
    if (state == LOW) {
      Serial.println("Motion detected!"); 
      state = HIGH;       // update variable state to HIGH
    }
  } 
  else {
      digitalWrite(led, LOW); // turn LED OFF
      delay(500);             // delay 200 milliseconds 
      
      if (state == HIGH){
        Serial.println("Motion stopped!");
        state = LOW;       // update variable state to LOW
    }
  }
}

Technical Details:

Voltage 3.3V – 15 V
Static Current: < 20uA
Logic output 3.3 V / 0 V
Delay time 2s
Lock time 2s (default)
Sensing range <100 °, within 5m
Temperature -20 °C to + 60 °C
Dimension 15mm x 15mm x 20mm;

 

Resources

 

Comparisons:

This sensor is very good for projects where you need a module with a small footprint you can use the AM312, HC-SR505, and Keyestudio Sensor, all the sensor has close parameters with small differences like the SR-505 workers on voltage from 5-20V which is a good range but is not going to be good with esp8266 better to work with this module the SR-602 which has a voltage of 3.3V or with the AM312 sensor which has the lowest needed voltage to work 2.7 voltage, if you want higher delay time you can use the AM312 with 8 sec instead of 2 but don't forget the Static Current for this module is a little bit higher 0.1mA instead of 20uA of the SR-602 which makes the SR-602very good choice for projects on battery and also this SR-602 sensor has a photosensitive input which makes it extra feature for this sensor.