cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSL data not correct

oning.1
Associate

Lsm6dsl reads out the data, and the z-axis data is always biased. When the acceleration range is set to 2G, it is placed vertically on the ground, and the z-axis is upward. The data is:

Acceleration [mg]:30.68 106.32 1998.60

the z-axis is down

​Acceleration [mg]:60.21 140.42 409.37

It can be found that the z-axis has an offset. Is this normal after lsm6dsl is powered on and initialized?

1 ACCEPTED SOLUTION

Accepted Solutions
oning.1
Associate

It seems to be a chip problem. After replacing the sensor chip, the problem disappears....thanks anyway

View solution in original post

2 REPLIES 2
TSand.1
Associate III

Hi, for a device in a flat position, along the z axis you should see +1g when the device is pointing upwards and -1g in case it is pointing downwards.

Also the typ offset is about 40 mg, and is much higher in your case.

Are you correctly converting the LSB into physical units (two's complement and sensitivity)?

float_t lsm6dsl_from_fs2g_to_mg(int16_t lsb)
{
  return ((float_t)lsb * 0.061f);
}

Did you check the data also on other devices?

oning.1
Associate

It seems to be a chip problem. After replacing the sensor chip, the problem disappears....thanks anyway