PDA

View Full Version : object for reading the parallax PIR sensor



boeboy
02-15-2007, 02:40 AM
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)

Chris Savage
02-15-2007, 03:42 AM
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

boeboy
02-15-2007, 06:22 AM
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)