Go Down

Topic: Pull up? Pull down? Float? (Read 86 times) previous topic - next topic

arusr

Nov 15, 2017, 07:33 am Last Edit: Nov 15, 2017, 07:52 am by arusr
Hello,
I'm having a lot of trouble with PIR sensors.  I don't know if I need to pull up or pull down on the input pin.  I don't really understand what "open collector" means.

I'm just reading the input pin right now and it's always high.  I'm using the default "button" sample sketch.

Wawa

Which PIR sensor.
Common HC-SR501 PIR sensors don't need pull up or pull down.

You should adjust the "time" pot fully anti-clockwise (and leave it there).
Otherwise you might have to wait up to 7 minutes for the pin to go LOW.
(any movement could start another 7minutes).

If the pot is fully anti-clockwise, the PIR output should go LOW in about three seconds.
Now you can control time delays with code.

Leave the "sensitivity" pot in the middle (it does not adjust sensitivity).

Post your code (with code tags) if you're still having problems.
Leo..

hammy

Open collector :

https://en.m.wikipedia.org/wiki/Open_collector

Go Up