# wakeup by external interrupt from deepsleep

**URL:** <https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229>\
**Category:** OpenMV Boards\
**Created:** [May 1, 2019, 6:08pm UTC](https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229 "2019-05-01T18:08:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xshaomin](https://avatars.discourse-cdn.com/v4/letter/x/c89c15/32.png) [@xshaomin](https://forums.openmv.io/u/xshaomin)\
**Post date:** [May 1, 2019, 6:08pm UTC](https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229/1 "2019-05-01T18:08:58Z")

</div>

For OpenMV, is it possible to wake up the system from the deepsleep or standby mode, using the external trigger.

extint = pyb.ExtInt(“P0”, pyb.ExtInt.IRQ\_RISING, pyb.Pin.PULL\_NONE, whatever)  
machine.deepsleep()

I tried a few times, it seems that the external trigger does not wake the system up.

While etc could wake it up, as stated in the library.

Thanks

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 1, 2019, 6:20pm UTC](https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229/2 "2019-05-01T18:20:46Z")

</div>

Try [machine — functions related to the hardware — MicroPython 1.15 documentation](http://docs.openmv.io/library/machine.html?highlight=sleep#machine.sleep). Deep sleep can only be woken up by the RTC.

---

<div class="post-metadata">

**Author:** ![shaikalthaf4](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@shaikalthaf4](https://forums.openmv.io/u/shaikalthaf4)\
**Post date:** [November 15, 2020, 9:36pm UTC](https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229/3 "2020-11-15T21:36:32Z")

</div>

Hi Kwabena,

Is still wake up from deepsleep() using EXT interrupt not supported ? It would be of great help to use the very-lowpower deepsleep mode and wake up for an event using an Arduino EXT Trigger.

- Althaf

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [November 15, 2020, 9:42pm UTC](https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229/4 "2020-11-15T21:42:52Z")

</div>

It’s possible to wake-up from stop mode (machine.sleep()) with extint, see the example:

[https://github.com/openmv/openmv/blob/master/scripts/examples/19-Low-Power/extint\_wakeup.py](https://github.com/openmv/openmv/blob/master/scripts/examples/19-Low-Power/extint_wakeup.py)

---

<div class="post-metadata">

**Author:** ![RichardW](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@RichardW](https://forums.openmv.io/u/RichardW)\
**Post date:** [October 30, 2026, 6:48pm UTC](https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229/5 "2026-10-30T18:48:58Z")

</div>

On the AE3, I’m only currently only able to wake up from deepsleep using the hard reset button.. I don’t see any example to wakeup using the RTC or the IMU… is this supported yet?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [October 30, 2026, 8:33pm UTC](https://forums.openmv.io/t/wakeup-by-external-interrupt-from-deepsleep/1229/6 "2026-10-30T20:33:59Z")

</div>

Both the RTC and IMU support deep sleep wakeup.

> **[machine — functions related to the hardware](https://docs.openmv.io/v5.0.1/library/machine.html#machine.deepsleep)**
>
> Return the MCU clock frequencies.

Pass a time value.

As for the IMU, you need to program its registers via the datasheet to generate a pulse via its interrupt pins, but the AE3 trigger is already armed to wake up from deep sleep.

> **[lsm6dsm.pdf](https://cdn.shopify.com/s/files/1/0803/9211/files/lsm6dsm.pdf?v=1743226540)**
>
> 1945.72 KB
