Parallax PIR Sensor

Driver is on Fezzer:

http://www.fezzer.com/project/181/parallax-pir-sensor/

This example shows how to use Parallax Passive Infrared Motion Sensor. The driver works with any pin. It tries to use interrupts if available and falls back to regular input port and monitoring thread if interrupt is not supported by the pin.

on what Fez did you check it?

I have checked it on Panda.

I have one of those too. Very simple to get it to work, just interrupt on the falling edge.

Note that you want want to stick a delay in there. The sensor is unstable for the first 20 seconds.

Why falling edge?
Correct me if I am wrong.
It is high when there is a motion. So you need the event as soon as possible.

As I mentioned in the description this driver will try to use Interrupt Port (preferable),but if the provided pin doesn’t support interrupts it will fall back to the Input Port and monitoring thread.

I like this little sensor. Good for “waking up” robots.

Actually, you and I may have different versions. Mine goes LOW when there is movement.

Quote “Actually, you and I may have different versions. Mine goes LOW when there is movement”

The Parallax Sensor (#555-28027) which is also sold at Radio Shack
has a jumper for either High or Low operation. See PIR sensor specs.
;).

Joe,

I was wondering what that jumper is for, but never got around to find out :-[

Thanks for the tip