Skip to main content
AJab�
Associate II
November 22, 2018
Question

Why are the results for accelerometer in full scale 4, 8, 16 g incorrect for LSM6DS0 using iks01a1?

  • November 22, 2018
  • 4 replies
  • 1797 views

Hello

I have problem with reading data from accelerometer (LSM6DS0 using iks01a1) for another scale than 2g. For example when I change FS[1:0]_XL in register CTRL1_XL (10h) for 16 g full scale, I have result 8g for z-axis after multiple result by linear acceleration sensitivity, but it should be 1g.

I'd be grateful for your help, because I'm beginner and I've no clue, what I do wrong.0690X000006CTKcQAO.png

    This topic has been closed for replies.

    4 replies

    ST Employee
    November 23, 2018

    Please share your code, otherwise it is difficult to help.

    AJab�
    AJab�Author
    Associate II
    November 24, 2018

    Hi, I attached my code to my question.

    ST Employee
    November 28, 2018

    The settings for ODR and FS for acceleromter is in CTRL_REG6_XL (20h) not in CTRL1_XL (10h)!

    This is wrong in your code.

    AJab�
    AJab�Author
    Associate II
    December 7, 2018

    Thank you for your answer. Thanks to it, I've realized that there is difference between LSM6DSO and LSM6DS0 and I had used wrong datasheet. Now my program works properly.