PIR motion sensing Brick
This brick includes a PIR motion sensor module,Max sentry distance is 3 and 7 meters. If anyone moved in that range, Alarm pin will go high. The signal duration can be adjusted from 0.3s-18s by the yellow?potienmeter.This PIR Sensor Switch Module detects the Infrared Rays released by human body motion within the detection area (6 Meters/20 feet).
PIR Sensor : A PIR Sensor is a Passive Infrared Sensor which controls the switching on/off when it detects a moving target. The PIR Sensor senses the motion of a human body by the change in surrounding ambient temperature when a human body passes across.
Delay Time Adjustable: 5 seconds to 18 Minutes.Once the motion is seized , it sends a ?low? digital value to the Arduino through the digital IO port of Sensor Shield
Connect the signal cables and Arduino port , then it can be used:the corresponding Arduino code is :
int ledPin = 13;int switchPin = 2;int value = 0;void setup() { pinMode(ledPin, OUTPUT); pinMode(switchPin, INPUT);}void loop() { value = digitalRead(switchPin); if (HIGH == value) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); }}
Go to Forum for further discussion