Page 1 of 1

My ESP32 has insomnia

Posted: Mon Mar 18, 2019 10:42 pm
by esp32_James
Hi all,
This is my first post here. I recently got my first ESP32 and have been getting on great with it. This is also my first experience of using microcontrollers and micropython, but I have done a fair bit with raspberry pies.

Anyway, I cannot understand why my board keeps waking up from a deep sleep:

- If I reset the board and do machine.deepsleep(), it stays asleep indefinitely as expected.

- If I reset the board and do machine.lightsleep(30000) and wait 30 seconds for it to wake up and then do machine.deepsleep(), it wakes up form the deep sleep after 30 seconds. I am expecting it to stay asleep.

I'm guessing I'm misusing the preceding lightsleep somehow. Perhaps I need to clear it in some way?

Any guidance will be much appreciated :)