Shop OBEX P1 Docs P2 Docs Learn Events
object for reading the parallax PIR sensor — Parallax Forums

object for reading the parallax PIR sensor

boeboyboeboy Posts: 301
edited 2007-02-14 22:22 in Propeller 1
I am just posting this because·I have not seen a object for the PIR sensor.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lets see what this does... KA BOOM (note to self do not cross red and black)

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-02-14 19:42
    Boeboy,

    Technically you don’t need an object to use the PIR Sensor. It runs at 3.3V and it basically makes its output HIGH when it senses motion. So all you really have to do is monitor an I/O pin for a HIGH (1) signal. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • boeboyboeboy Posts: 301
    edited 2007-02-14 22:22
    I just made it so that you could use one comand insted of useing "IF INA(1) = 1 ..." you could use "pir.read"

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lets see what this does... KA BOOM (note to self do not cross red and black)
Sign In or Register to comment.