Ks0122 keyestudio EASY plug PIR Motion Sensor

From Keyestudio Wiki
Jump to navigation Jump to search

EASY plug PIR Motion Sensor


thumb

Introduction

Pyroelectric infrared motion sensor can detect infrared signals from a moving person or moving animal, and outputs switching signals. It has advantages of low power consumption, good concealing, low cost etc. It can be applied to a variety of occasions to detect the movement of human body.
Note: this module needs to be used together with EASY plug control board.


Specification

  • Interface: Easy plug
  • Input Voltage: 3.3 ~ 5V, 6V Maximum
  • Working Current: 15uA
  • Working Temperature: -20 ~ 85 ℃
  • Output Voltage: High 3V, low 0V
  • Output Delay Time (High Level): About 2.3 to 3 Seconds
  • Detection angle: 100 °
  • Detection distance: 7 meters
  • Output Indicator LED (When output HIGH, it will be ON)
  • Pin limit current: 100mA
  • Size: 36.4*20mm
  • Weight: 6g


Connection Diagram


thumb


Sample Code

byte sensorPin = 3;
byte indicator = 13;
void setup()
{
 pinMode(sensorPin,INPUT);
 pinMode(indicator,OUTPUT);
 Serial.begin(9600);
}
void loop()
{
 byte state = digitalRead(sensorPin);
 digitalWrite(indicator,state);
 if(state == 1)Serial.println("Somebody is in this area!");
 else if(state == 0)Serial.println("No one!");
 delay(500);
}

Resources

PDF

https://drive.google.com/open?id=1_EXnBPMfjKHLdmLGqJJjqX_041nNH912

Buy from

http://www.keyestudio.com/keyestudio-easy-plug-pir-motion-sensor-module-for-arduino.html