Go Down

Topic: Help with the SparkFun PIR sensor (Read 998 times) previous topic - next topic

Afanasjevas

I've recently got SparkFun PIR sensor (https://www.sparkfun.com/products/8630) and hooked it up based on bildr instructions (http://bildr.org/2011/06/pir_arduino/).

The sensor wasn't reacting at all at first. Then I swapped power and alarm pins and is started detecting motion. However, now the sensor is perpetually in LOW state. I connected a pull up resistor but nothing changed (maybe I'm doing it wrong).

What do you think could be causing this?

Krodal

Can you post a photo, so we can see how it is connected.
Can you post the sketch, or is it still the same as on bildr ?
Do you have a multimeter, to measure the signal from the PIR sensor ?

Is it a 12V PIR sensor or 5V ? The Sparkfun PIR sensor is 12V.
If you have connected the 12V wrong, the pir sensor or a pin on the Arduino could be damaged.

Afanasjevas

I've attached the photo. I'm using the sketch here: http://itp.nyu.edu/physcomp/sensors/Reports/PIRMotionSensor

The analogRead on the alarm pin is showing 1023 without any change. The PIR sensor is connected to 5V. I tried replacing the short brown connection to the VIN pin but that didn't help.

Am I missing something really obvious? 

pylon

Without a reaction on the alarm pin, how do you know the sensor is detecting motion? Is there an LED showing the motion detection on the sensor PCB?

Afanasjevas

Yes, the LED should light up when the motion is detected. I'm also tracking the readings on the alarm pin with analogRead.

Go Up