Passive Infrared Sensor ( Motion Sensor)
PIR Motion Sensor is a highly integrated module used for human entry detection it can easily adopt in the system. There will be a 2 adjustable potentiometer in the module board, which is any one can adjust or change the trigger sensitivity and the duration of the trigger signal. The PIR Motion Sensor can also be set as a Retriggerable or Un-Retriggerable. When the switch is in the H position the module will Retriggerable and Un- Retriggerable when L Position.
Motion Sensor Module
- Input Voltage: DC 4.5-20V
- Static current: 50uA
- Output signal: 0,3V or 5V (Output high when motion detected)
- Sentry Angle: 110 degree
- Sentry Distance: max 7 m
- Shunt for setting overide trigger: H – Yes, L – No
Connecting the Motion Sensor
Connect the sensor to Arduino digital pin 2. Adjust the RT&CD to change trigger sensitivity and the duration of the trigger signal, set the module as retriggerable or un-retiggerable along with the switch, when the H position of the module is retriggerable. unretrigerred when the switch is L position.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
const int ledPin=13; // The LED indicate the motion has been captured void setup(){ Serial.begin(9600); pinMode(2, INPUT);// Pin 2 to receive signal outputted by the module pinMode(ledPin, OUTPUT); } void loop() { int sensorValue = digitalRead(2); if(sensorValue==1) digitalWrite(ledPin,HIGH); else digitalWrite(ledPin,LOW); Serial.println(sensorValue, DEC); // Print the state of the signal through the serial 9600 monitor in Arduino . } |