cancel
Showing results for 
Search instead for 
Did you mean: 

can't present (a) up_left and (c) down_left position in 6D orientation of LIS2DS12

WENTING WU
Associate II
Posted on July 09, 2017 at 11:47

Hello sir,

I meet a problem that I can present 6D positions now except (a) and (c) [both are related to left side] situations shown in LIS2DS12 application note. I can not find the problem. I output the 'position' exact data instead, for these two wrong situations, it is always shown 0, which should be shown 2 and 4 as expected. I'm thinking wether the x-axis is broken. Or are there any other reasons to cause this problem? (the 4th value after Get Acceleration shown the input interrupt value)

WHO_AM_I_REG 0x43

Get Acceleration: 38 897 -378 0

Get Acceleration: 37 897 -378 0

Get Acceleration: 39 900 -374 0

Get Acceleration: 38 899 -377 0

Get Acceleration: 110 937 -402 0

Get Acceleration: 38 900 -373 0

position change**********

success 6D event function^_^

position = DW_RS  8

Get Acceleration: -1884 611 -850 0

position change**********

success 6D event function^_^

position = unknown 0

Get Acceleration: 799 438 349 0

Get Acceleration: 986 -12 251 0

Get Acceleration: 767 -604 341 0

Get Acceleration: 815 -609 207 0

Get Acceleration: 922 -338 92 0

Get Acceleration: 996 -182 19 0

Get Acceleration: 1024 -11 10 0

Get Acceleration: 687 -510 81 0

position change**********

success 6D event function^_^

position = unknown 0

Get Acceleration: 540 -788 153 0

Get Acceleration: -245 -1085 66 0

Get Acceleration: -124 -1023 81 0

Get Acceleration: -296 -896 99 0

Get Acceleration: -172 -1011 70 0

position change**********

success 6D event function^_^

position = UP_RS 1

Get Acceleration: -856 -181 275 0

Get Acceleration: -966 28 90 0

Get Acceleration: -986 17 72 0

Get Acceleration: -1128 57 99 0

position change**********

success 6D event function^_^

position = unknown 0

Get Acceleration: -297 -1046 164 0

Get Acceleration: 152 -1005 16 0

Get Acceleration: 139 -1019 38 0

Get Acceleration: -229 -1222 72 0

Get Acceleration: 73 -951 242 0

Get Acceleration: 747 -633 150 0

position change**********

success 6D event function^_^

position = unknown 0

Get Acceleration: 1066 -20 10 0

Get Acceleration: 1019 132 3 0

Get Acceleration: 1006 145 -8 0

Get Acceleration: 977 -180 96 0

Get Acceleration: 875 -330 112 0

Get Acceleration: 881 -362 527 0

position change**********

success 6D event function^_^

position = UPFACE 32

Get Acceleration: 431 -34 748 0

Get Acceleration: -124 69 971 0

Get Acceleration: -217 100 968 0

Get Acceleration: -242 111 978 0

Get Acceleration: -156 30 827 0

position change**********

success 6D event function^_^

position = unknown 0

Get Acceleration: 789 260 478 0

Get Acceleration: 698 -364 331 0

Get Acceleration: 1008 489 368 0

Get Acceleration: 866 158 -242 0

position change**********

success 6D event function^_^

position = DOWNFACE 16

#lis2d12
2 REPLIES 2
Miroslav BATEK
ST Employee
Posted on July 11, 2017 at 14:02

Can you share you sensor configuration and the code how do you parse the position from 6D_SRC register?

Posted on July 11, 2017 at 17:10

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6oX&d=%2Fa%2F0X0000000bw4%2FIQR8xGopN1Vhfcovcilo0YRv7JFPBoD_C3PTnmIy7j4&asPdf=false