micropython-pico-deepsleep icon indicating copy to clipboard operation
micropython-pico-deepsleep copied to clipboard

Is it possible to wake up from deep sleep

Open PeteDouma opened this issue 2 years ago • 2 comments

I have a pico connected to wireless modem. I can put the modem into sleep mode and your code is fantastic because it puts the pico into deep sleep and allows me to save battery. The modem can wake up if a pin is triggered, can I wake up the pico the same way?

PeteDouma avatar Feb 15 '23 17:02 PeteDouma

Hey Pete, I use picosleep to save battery, I can put it into sleep and I have a touch screen connected to pico. In sleep mode, when I touch the screen it wakes up automatically, I dont know why. Even though it must be in sleep, it wakes up with touch sensor.

About Pico sleep reset picosleep.seconds() does not have auto reset it can be used as time.sleep(). If you also want to reset it, you can use machine.reset()

Edit: Since there is no deinit for touch object and del Touch_object didnt work, I changed its pin values. And now, it cannot be interrupted by touch sensor. I hope my touch sensor wont be damaged. There were 4 pins and I did: for i in [6,7,21,22]: pin6=Pin(i, Pin.OUT) pin6.value(0)

SaitamaTechno avatar Oct 17 '23 17:10 SaitamaTechno