Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • start by reducing your code to only the sleep code ... remove all of the accelerometer code ... when the 10 second sleep works, then add the accel code Commented Feb 23, 2024 at 3:51
  • I made some small changes to my code. Now, it works fine by sleeps for 10 seconds and triggers when the threshold is exceeded. But there's a problem about the threshold trigger part: the ext0 wakeup function activates only before it enters sleep mode. Once the ESP is sleeping, it only wakes up using the timer, not by ext0 interrupt. is there something I miss in configuration? Commented Feb 28, 2024 at 15:41