Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What kind of PIR sensor works with this lib? #12

Open
untitledlt opened this issue Dec 6, 2017 · 1 comment
Open

What kind of PIR sensor works with this lib? #12

untitledlt opened this issue Dec 6, 2017 · 1 comment

Comments

@untitledlt
Copy link

Could you please provide example for PIR sensor usage?
Which sensor should I buy and which GPIO pins should I use?
Will it work in polling mode as fetchInterval as other sensors or will it trigger event action?

@Vuzi
Copy link
Owner

Vuzi commented Dec 6, 2017

You can use any GPI pin with a PIR sensor, along with the usual +/- DC load. Usually all the PIR sensors are the same (i.e. something like this https://www.amazon.com/DIYmall-HC-SR501-Motion-Sensor-Module/dp/B012ZZ4LPM/ref=sr_1_3?ie=UTF8&qid=1512558367&sr=8-3&keywords=pir+sensor+raspberry+pi ).

And no, unfortunately you still need to pool the sensor to see if anything is detected by the sensor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants