Skip to main content
Visitor II
July 26, 2016
Question

LSM303DLHC accelerometer output data is 15344.

  • July 26, 2016
  • 1 reply
  • 670 views
Posted on July 26, 2016 at 06:19

Should my program get 1000 mg when F3 Discovery Board is in steady state on a horizontal surface?

Measurement range = [-2g;+2g];

Linear Axeleration Sensitivity = 1mg/LSB;

High Resolution Mode

I get 15344 mg (0x3BF0) and -16912 mg (0xBDFO) when the board is upside-down.
    This topic has been closed for replies.

    1 reply

    ST Employee
    August 1, 2016
    Posted on August 01, 2016 at 18:35

    The output of the accelerometer sensor is 12-bit left adjusted. You have to divide the sensor output value by 16, then you will get correct value in [mg] unit.

    Best regards

    Miroslav