My ESP32 has insomnia

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Posts: 1
Joined: Mon Mar 18, 2019 10:27 pm

My ESP32 has insomnia

Post by esp32_James » Mon Mar 18, 2019 10:42 pm

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 :)

Post Reply