Skip to main content

PIR Motion sensor module

PIR(Passive Infrared Detection)are used to detect motion of human movement. This version has a large lens which can support long range and wide angle. 2.54mm standard connector is easy to fix it anywhere.

Features


  • Long range

  • Wide angle

  • Low consumption

  • DC 3.0-5.5V power supplier

Specifications


  • Input Voltage: DC3.0-5.5V

  • Current: 100uA(max)

  • Detecting distance: 9m(max)

  • Output signal: 0,3 VCC (Output high when motion detected)

  • Sentry Angle: 120°

  • Connector:3Pin 2.54mm pitch

  • Size: L36W26H21(mm)

Usage


The following sketch demonstrates a simple application of sensing montion. When someone moves in its detecting range, it will output High through its SIG pin and the LED will light. Otherwise, it will output LOW. Then you can use it to detect the motion of people.

Programming

Includes important code snippet. Demo code like :

/*******************************************************************************/
/*macro definitions of PIR motion sensor pin and LED pin*/
#define PIR_MOTION_SENSOR 8//Use pin 8 to receive the signal from the module
#define LED 4//the Grove - LED is connected to D4 of Arduino

void setup()
{
pinsInit();
}

void loop()
{
if(isPeopleDetected())//if it detects the moving people?
turnOnLED();
else
turnOffLED();
}
void pinsInit()
{
pinMode(PIR_MOTION_SENSOR, INPUT);
pinMode(LED,OUTPUT);
}
void turnOnLED()
{
digitalWrite(LED,HIGH);
}
void turnOffLED()
{
digitalWrite(LED,LOW);
}
/***************************************************************/
/*Function: Detect whether anyone moves in it's detecting range*/
/*Return:-boolean, ture is someone detected.*/
boolean isPeopleDetected()
{
int sensorValue = digitalRead(PIR_MOTION_SENSOR);
if(sensorValue == HIGH)//if the sensor value is HIGH?
{
return true;//yes,return ture
}
else
{
return false;//no,return false
}
}

Schematic Online Viewer

Resources


Tech Support & Product Discussion

if you have any technical issue. submit the issue into our forum. Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...