cancel
Showing results for 
Search instead for 
Did you mean: 

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

AJab�
Associate II

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

4 REPLIES 4
Miroslav BATEK
ST Employee

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

AJab�
Associate II

Hi, I attached my code to my question.

Miroslav BATEK
ST Employee

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.

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.