Ks0122 keyestudio EASY plug PIR Motion Sensor
Revision as of 11:05, 24 September 2016 by Keyestudio (talk | contribs) (Created page with "==EASY plug PIR Motion Sensor== <br>500px|frameless|thumb<br> ==Introduction== Pyroelectric infrared motion sensor can detect infrared signals from a mo...")
EASY plug PIR Motion Sensor
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
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); }