Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    pyscan + gpy + pir sensor "No presence"

    Scheduled Pinned Locked Moved Expansion Board
    3 Posts 2 Posters 198 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      Israel
      last edited by Israel

      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?

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @Israel
        last edited by

        @israel Could you share how you connected the detector?

        1 Reply Last reply Reply Quote 0
        • I Offline
          Israel
          last edited by Israel

          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

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom