Compatible with the Propeller Activity Board WX, Propeller FLiP module, or Other board types. Propeller I/O pin availability will vary by board type. Not available for Badge or Scribbler Robot board types.
This block works with any of the Parallax PIR (passive infrared) motion sensors:
New to PIR sensors? Click here to see an example schematic and quick Blockly program [4] to help you get started.
The PIR sensor block returns a 0 (zero) if no motion is detected, and a 1 (one) if a motion is detected. The PIN dropdown must be set to the pin connected to PIR sensor’s out pin.
A PIR Sensor can tell when something nearby moves. PIR stands for "Passive InfraRed". The sensor detects the pattern of infrared energy in its surroundings. If the pattern changes, the sensor outputs a high signal. The Propeller microcontroller only needs to monitor this signal with an I/O pin to know if something is moving around nearby.
Using the connections shown in the wiring diagram above, this example will display the status of the PIR Sensor in the Terminal. A value of "1" indicates the sensor has been triggered (or set high), and a "0" is the resting (or low) state.
It is typical for the sensor to be triggered when it is first powered up and getting an infrared reading from its environment. This may last up to 30 seconds.
Links
[1] http://www.parallax.com/555-28087
[2] http://www.parallax.com/product/28083
[3] http://www.parallax.com/product/28032
[4] https://learn.parallax.com/support/reference/activity-board-wx-block-reference/sensor/pir/pir-wiring-example-code