pyscan + gpy + pir sensor "No presence"
-
Hello,
I was able now to work with the inbuilt light detector in my pyscan but when I connect the PIR sensor (https://www.kiwi-electronics.nl/PIR-Motion-Sensor) and try the program main.py from (https://docs.pycom.io/tutorials/all/pir.html), it always prints out "No presence ". I have windows 10. Help, I don't know what the problem is?
-
Here is the image: https://ibb.co/YL3svzB
I connected it like this. It seemed to work now but the problem is the PIR sensor works once every 10 second. Which is definitely not what I want. I want it to sense non-stop . I have removed#config hold_time_sec = 10 #flags last_trigger = -10
from the program (https://docs.pycom.io/tutorials/all/pir.html) yet it doesn't sense constantly. I am wondering is it how the sensor works or is it because of my program? How should I adjust the program so the sensor works all the time, it that is the case?
Thank you
-
@israel Could you share how you connected the detector?