Hi,I'm trying to connect a PIR sensor to my Arduino Uno board. The sensor was purchased from amazon and looks a lot like HC-SR501 (uses a BIS0001 chip).I followed this tutorial https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/using-a-pir including the source code there.The problem is I always have the input pin on HIGH. I tried adjusting the sensitivity but with no luck. I attached a picture of my setup.The weird thing is, I think somehow the sensor works without the + and GND pins plugged in (just the output pin). Sometimes it behaves weird, but most of the times it detects my palm.
Thanks for the answer.My sensor looked a lot like the one in the tutorial so I just wired it up like there. I don't use any interface.. it's plugged straight into arduino.Also, this is the only way I've wired it. In my pics I haveRed = 5VBlack = GNDBlue = OuputFor your experience, what other wiring should I test?
I only used a connector because I didn't have a female-male wire. I measured and there isn't any shorts between the pins.I'll measure again tonight just to be sure.The wiring order I used is GROUND, SIGNAL, POWER (black, blue, red) when you look at the back of the sensor and the pins are on the bottom.Thanks,Andrei
It gives high out put when the ground pin is disconnected.
Also, if the vcc pin is disconnected,the pir gives high out put for sometime and then stops working.
What should I do?
Connect VCC and ground to a 5volt (or 5-12volt) source.And a LED between output and ground (cathode to ground).It could take upto 10 minutes for the LED to turn off after the last movement was detected.Adjust with the "time" pot.