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!