LEARN.PARALLAX.COM
Published on LEARN.PARALLAX.COM (https://learn.parallax.com)
Home > PIR

PIR

BlocklyProp reference for PIR block

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:

  • PIR Sensor Rev B (#555-28087)
  • PIR Mini Sensor (#28083)
  • Wide Angle PIR Sensor (#28032)

New to PIR sensors? Click here to see an example schematic and quick Blockly program to help you get started.


PIR sensor

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.

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024


Source URL:https://learn.parallax.com/reference/propeller-blocklyprop-block-reference/pir/
Links