Using Arduino Nano 33 IoT Internal IMU as Interrupt to Wake from Deep Sleep

I’m trying to put my Arduino Nano 33 IoT into deep sleep and wake it up only when motion is detected via its internal IMU (LSM6DS3).
Instead of constantly polling IMU.accelerationAvailable(), I want to configure the IMU to generate an interrupt when movement is detected, so the Arduino can sleep most of the time to save battery.

Has anyone successfully configured the LSM6DS3’s interrupt pins for this? Specifically:

  • How do I set up the IMU to trigger an interrupt on motion detection?
  • How do I wire and configure the interrupt pin on the Nano 33 IoT to wake it from sleep?
  • Are there any Arduino libraries that simplify this setup, or do I need to directly write to the IMU registers?

Any example code or guidance would be greatly appreciated!

Check out pin change interrupts, just a hunch.

Sparkfun has a tutorial on this sensor.

I moved your topic to an appropriate forum category @taresh345.

In the future, when creating a topic please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.