cancel
Showing results for 
Search instead for 
Did you mean: 

Activity detection using LSM6DS3

Hari Sreenath
Associate
Posted on December 13, 2017 at 10:27

Hi

I'm using LSM6DS3 for activity detection.The SLEEP_STATE_IA bit of the WAKE_UP_SRC register is used to monitor the activity/inactivity,

but I have noticed that the value for the bit remains the same(ie when sleep event is detected the value of SLEEP_STATE_IA is set to 1 but even when activity is detected the value remains the same)

Can you suggest a fix for the problem? OR provide an alternative for activity detection

3 REPLIES 3
Miroslav BATEK
ST Employee
Posted on December 14, 2017 at 21:32

Can you please provide your complete sensor configuration?

Posted on December 19, 2017 at 06:22

Please find the sensor pseudocode in the attachments.

Other than the above-mentioned problem, I'm facing trouble with the orientation change.

When the sensor is shaken it detects an orientation change rather than activity. Please provide a solution to this problem too.

Posted on December 22, 2017 at 09:47

Maybe, he cannot upload detail register values.

How do you upload example full register values about the wanted operation registers (read  '1' of 

SLEEP_STATE_IA bit

 during sleep status after inactivity).

I try to set and read SLEEP_STATE_IA bit in LSM6DSL.

Successfully, read '1' of SLEEP_STATE_IA bit during  sleep status after inactivity.

but, I fail to read   '1'  of 

SLEEP_STATE_IA bit in LSM6DS3. (always read '0' of  

SLEEP_STATE_IA bit) 

(same setting values of LSM6DSL)

So, I want to know it too. how do i set in LSM6DS3 . (just want sample setting register values in 

LSM6DS3

 or STEVAL-MKI160V1 (

LSM6DS3 EV kit))