cancel
Showing results for 
Search instead for 
Did you mean: 

Are the LSM6DSL Accelerometer axes swappable?

David Kaplan_2
Associate II

We have a board with a LSM6DSL chip that can be mounted horizontally or vertically.

Are the X Y and Z axes symmetrical for when reading basic Accelerometer features?

4 REPLIES 4
Eleon BORLINI
ST Employee

Hi @Community member​ , the accelerometer positive axis directions of the LSM6DSL sensor are the ones shown in the picture below. You could however "swap" them at application software level.

0693W000001soFIQAY.png

Regards

David Kaplan_2
Associate II

Then if I switch the chip's orientation from horizontal to vertical, I should get the exact same readings with just the values appearing at different axis letters?

This means that the chip internal circuits are symmetrical and calibration in one direction would not need to be redone in another direction/

Thanks

Yes exactly, flipping the chip you should get the same value changed by sign. This in theory, on the unsoldered sample, because the production calibration is performed to minimize the offset. However, you could encounter a residual offset that may be caused by the soldering process or a planar misalignment at application level. In this case, you can record the (average) offset value and store it changed by sign in dedicated registers (X_OFS_USR (73h), X_OFS_USR (74h), X_OFS_USR (75h), see the datasheet, p.95). Regards

0693W000001spVMQAY.png

David Kaplan_2
Associate II

Thanks