Infinite Loop deepsleep_wakeup when Pin is hold High

  • Hi,
    running this small piece of code


    when I set P8 or P10 to 3.3 Volts, Fipy wake up, execute some code, and the go in deepsleep again. If the P8 or P10 are still at High level, the Fipy never go to deep sleep again! It goes in deepsleep mode but just entered it wake up again until i remove the 3.3 volts from the input pin above.
    Do you have any suggestion?
    Thanks, Andrea.

  • administrators


    The wake from deepsleep is done based on pin level rather than the rising or falling edge of the pins. One way around this is to add a small circuit between the source of the signal and the pin that creates a small pulse instead of keeping the pin high. An example can be found here:

Log in to reply

Pycom on Twitter

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.