Vuzi / raspi-sensors

Deprecated - Nodejs C++ plugin, allowing to easily read data from raspberryPi's sensors.
https://www.npmjs.com/package/raspi-sensors
Apache License 2.0
26 stars 3 forks source link

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

Open untitledlt opened 6 years ago

untitledlt commented 6 years ago

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 commented 6 years ago

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.