2018-11-22 08:36 AM
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.
2018-11-23 02:37 AM
Please share your code, otherwise it is difficult to help.
2018-11-24 07:42 AM
Hi, I attached my code to my question.
2018-11-28 03:00 AM
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.
2018-12-07 12:23 AM
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.