Read the statement by Michael Teeuw here.
PIR Sensor + Raspi
-
@pepemujica said in PIR Sensor + Raspi:
Any idea why is not working?
Maybe you should calibrate your PIR sensor tuning. There are two little orange knobs where you can adjust the sensitivity of the sensor.
-
@pepemujica Good way to make sure you have it connected correctly and that the PIR is operating is to try out the python code in the link I sent.
from gpiozero import MotionSensor pir = MotionSensor(4) while True: if pir.motion_detected: print("Motion detected!")
Keeping in mind for both this code and the module that you have the correct pin number.
-
@McSorley said in PIR Sensor + Raspi:
Keeping in mind for both this code and the module that you have the correct pin number.
How do I know in what pin are the 3 cables connected?
-
@pepemujica www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/
You have 5v, Ground, then GPIO.
-
@McSorley so, the (4) you’ve put in the example before, wich of the 3 cables is?
Sorry, I’m pretty new in this, and I can’t get it easyly -
@McSorley Hi I have tested, and always says motion detected, never ends, even when there is no motion
-
Try again what PtrBld suggested with calibrating the PIR Sensor Tuning by turning the knobs so see if you get different results.
Otherwise, this image show you which pins you have connected. If oyou have it set up the way PtrBld suggested, you change the code to 24.
-
i have the same problem, my magic mirror installation is fine, but when it comes to pir motion sensor installation , i have not able to set it up it correctly, my pir will sense it when there is a movement but my magic mirror has no reaction, it will just stays on.any suggestion…i have rasp pi 3, pir motion sens conn to gpio 18. no error message. …
{ module: 'MMM-PIR-Sensor', config: { sensorPIN: '18', powerSaving: 'true' } },
(my module config)