cancel
Showing results for 
Search instead for 
Did you mean: 

Are there any sample codes for Acceleration detection for Acclerometer + Gyroscope?

sanket47
Associate II

I am using lsm6ds3 Acc+ Gyro. We are trying to detect the acceleration irrespective of Direction of Accelerometer. But we are not getting the results as expected.

2 REPLIES 2
Eleon BORLINI
ST Employee

Hi, do you mean you are trying to detect the orientation of your device in the space? If so, you can use the 6D device orientation embedded feature as described in the app note p.51. You can evaluate the orientation of the device in space and then measure the acceleration along that direction. Regards.

0690X000008i7sVQAQ.png

Ozone
Lead II

> But we are not getting the results as expected.

You neglected to tell us what do you expect.

> We are trying to detect the acceleration irrespective of Direction of Accelerometer.

Vector algebra ?