Skip to main content
Visitor II
January 4, 2018
Question

LSM6DSL zero-g level offset accuracy

  • January 4, 2018
  • 2 replies
  • 1937 views
Posted on January 04, 2018 at 16:28

Hi everyone,

I'm using the lsm6dsl for acceleration measurement. But I'm getting big stationary offsets and I was wondering is that normal? 

Here are measurements from 5 different boards and all of them were carefully positioned to be exactly at the same place. 

xyz

-159-411110

-7-781037

86701100

10-981089

171221162

Is this normal operation? 

In datasheet Linear acceleration zero-g level offset accuracy is specified at ±40 mg (typ), but my measurements are as much as 6 times that.. Am I doing someting wrong? 

In the datasheet they say that sensors are all factory calibrated before they go out of factory, but I do not see any register or anything with calibration values. Only ones for user calibration.

I hope my message was clear, sorry for my English.

Thanks

Martin

    This topic has been closed for replies.

    2 replies

    ST Employee
    January 4, 2018
    Posted on January 04, 2018 at 19:52

    Hmm, it is not normal operation. Can you please share your sensor configuration, schematic would be also usefull if it is posible to share.

    The sensor are factory calibrated, but the calibration values are no accessible for user.

    palenkicAuthor
    Visitor II
    January 5, 2018
    ST Employee
    January 5, 2018
    Posted on January 05, 2018 at 13:33

    The schematics is OK and the code seems good as well.

    The problem could be in the layout. Did you design the boards by yourself? Don't you have tracks of vias under the sensor?

    One more question, are the values mentioned above stable or is there some significant noise.

    palenkicAuthor
    Visitor II
    January 5, 2018
    Posted on January 05, 2018 at 14:34

    Yes I did. There is ground polygon under the sensor as you can see from photos in attachment. A line on the bottom side (close to pins) is for a buzzer but it was not powered at the time of reading accelerator data.

    Readout is pretty stable. Sometimes the values change by +/- 1 but that is it. It just has that big static offset.

    ________________

    Attachments :

    pcb-top side.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyDU&d=%2Fa%2F0X0000000b4l%2F3yPXRuCAX.BMgrE3hSO4eU_dUOcLoNVbykL7.UOPHL8&asPdf=false

    pcb-top layer only.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyCD&d=%2Fa%2F0X0000000b4j%2F0278C4wIyAmc_lpF4M94ErpA5iR9RtxySqTNglGSLy0&asPdf=false
    ST Employee
    January 12, 2018
    Posted on January 12, 2018 at 13:55

    The layout is not fully adherent to ST recommendations (please check the

    http://www.st.com/content/ccc/resource/technical/document/technical_note/73/17/9c/16/dd/96/4a/01/CD00134799.pdf/files/CD00134799.pdf/jcr:content/translations/en.CD00134799.pdf

    ) and it can introduce some additional offset.

    I see mainly the problem with not symmetrical design.

    You can use out MotionAC library to calibrate the accelerometer and reduce the offset by software. The MotionAC library is aprt of

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mems1.html

    package.