HC-SR501 PIR

Anybody having issues with PIR not working in Smart House project.

Program seems to work but I have to physically touch the PIR to get operation.

Looking at PIR pinout (left to right and following diagram in E-book) gnd, pin 14, Vbus is how I hooked it up.

Measured 5Vdc at PIR so that's OK.

Thoughts?

TX

Gilles

Comments

  • Oh Also Jumper in PIR is in across pin 1 & 2 (left to right)

    tx

    Gilles

  • Hello @barriereg,

    Have you ever adjusted the sensitivity of the PIR sensor? The link below shows how to do it.

    https://support.arduino.cc/hc/en-us/articles/4403050020114-Troubleshooting-PIR-Sensor-and-sensitivity-adjustment

    If it still doesn't work properly, please let us know.

    Have a nice day.

    Naze

  • Thanks I'll try that

    stay tuned,

    tx

    Gilles

  • From E-book (page150) Vcc is on left and Gnd is on Right.


    The diag in the sensitivity adj is opposite.

    Is this my issue?

    tx

    Gilles

  • There are no markings on circuit board

    tx

    Gilles

  • from this diag (p.150 E-book) Vcc is on right. The sensitivity adj diag is on left.


    tx

    Gilles

  • Confirmed E-book is correct

    This circuit board unlike mine is marked it matches e-book

  • Instead of building the diode circuit, I ran this in micro blocks.


    I could not get it to detect any movement with any adjustment.

    Once I touch the PIR it detects, and I get a True. The test above resets after 2 seconds (I get 123 displayed) and again the only way I get it to say True is to touch the PIR.

    tx

    Gilles

  • Hello @barriereg,

    Can you test the PIR sensor with the code I added below. You need to make the PIR sensor connections as follows.

    VCC-VBUS, GND-GND, OUT-GP14

    Please test the PIR sensor directly without connecting the gas sensor.

    Thanks.

    Naze


  • PeterMathijssen
    edited November 19

    Hi @barriereg, when I first used the PIR I had the same experience when using the project from the ebook. I already left the smoke sensor out when I start testing. I had to touch the PIR itself to make it work. This time I used just the ubp-file from @ozerngg and got a really sensitive and good working PIR.

    Didn't use the "screws" to play with the sensitivity and delay at the moment.

  • Hi @PeterMathijssen

    Thank you so much for the information.

    Have a nice day. 😊

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!