cancel
Showing results for 
Search instead for 
Did you mean: 

Inactivity Mode for the lsm6dsv16x IMU

ACand.3
Associate III

Hello there, 

 

Are there any examples on how to use the inactivity feature of the lsm6dsv16x?

I checked the github and I only see for waking up, but not the other way around.

 

My goal is to set a device to sleep once there is no motion from imu. meaning, once the imu has no motion, it sets an interrupt like hey there is no motion going on, go to sleep/off mode. 

Then once there is motion, I want the imu to fire a interrupt telling device, here wake up. 

Is it possible to use one Interrupt pin for both cases or do I need to use both?


1 REPLY 1
Andrea VITALI
ST Employee

Check app note AN5763 paragraph 5.6 for activity/inactivity embedded logic and how to configure it and route the corresponding interrupts to the dedicated pins.

Here is some high-level note:

  • wake-up logic generates the interrupt when motion is detected (the absolute value of any axis is above the programmed threshold for the minimum programmed time)
  • activity/inactivity logic not only generates interrupts but also changes the device configuration! during inactivity the device switches to low-power mode at low ODR save power, during activity power mode and ODR are restored as they were before
  • stationary/motion logic is the same as activity/inactivity but without any change in power mode and ODR

You probably need to configure and use stationary/motion logic right?