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? -
@israel Could you share how you connected the detector?
-
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 = -10from 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login