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

    Pysense external wakeup pin (P9) is pulled low when in deepsleep

    Scheduled Pinned Locked Moved Discussion
    sipypysensedeep sleepinterruptpin
    1 Posts 1 Posters 630 Views 1 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.
    • A Offline
      aevraewrvaervea
      last edited by aevraewrvaervea

      Re: Pysense pinout / wake on pin

      I have just confirmed the bug discovered in the last comments in the above post using the latest firmware for Pysense (0.0.8) and SiPy (1.17.0.b1). The problem is P9 is pulled low when py.go_to_sleep() is executed meaning that it fights any external signal trying to raise the P9 pin to cause a wake. This is particularly bad when the external wake source is weak (it will struggle to raise the pin) or normally high when not outputting a wake signal (excessive power dissipation during sleep). As mentioned above, a compromise is to cut that pin off the SiPy (or, less drastically, use standoffs between the Pysense and SiPy and cut that pin off the standoff) and use "peek" to see the pin level if required and put up with not being able to use callbacks. Has this bug been fixed?

      It would be good if Pycom could comment on the general suitability of using P9 as a wake interrupt anyway, given that it is one of the strapping pins which should usually be left alone at startup.

      On a related note, P9 only reacts to rising OR falling edges. Will it in future support rising AND falling edges like general pin interrupts do?

      1 Reply Last reply Reply Quote 1

      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