|
Pyroelectric PIR sensor, Fresnel
The solder pads allow you to choose if the output should automatically reset itself after it is triggered. If set to Auto-reset the sensor will stay high until the motion stops. After motion is no longer detected the output will go low. If set toNo reset the sensor will stop sensing once it has triggered, and stays high for the preset time period. To choose one of these settings, simply create a solder-bridge between the labelled pad and the pad in the middle. The potentiometer labelled Sensitivity allows you to select the distance that the sensor will work over. It can be varied from approximately 3m to 7m. The potentiometer labelled Output timing adjusts how long the output is held high after the sensor is triggered. This can be varied from approximately 5 seconds to 300 seconds.
Support our scratch driver software, can be easy use in scratch
|
use GPIO 29 for Digital input
1.broadcast "pir" + "init" + "29" GPIO 29 as input 2.in Sensing --> Slider , you will see the "PIR-29" in the list The PIR -29 value change between "0" & "1" (2) USE I2C MCP23008 Port A as input Port
(1)"i2c20in" initial address 20, Port A as input (2) broadcast "Update" (3) in Sensing --> Slider , you will see the " I2C0A-1 ~ I2C0A-8" in the list The I2C0A-1 value change between "0" & "1" |