Skip to main content
Visitor II
February 13, 2020
Question

Not able to read accurate X, Y, Z, values of gyroscope

  • February 13, 2020
  • 1 reply
  • 810 views

Hi Team,

I am working with lsm6dsl 6 axis sensor , connected MT7621 processor via I2C.

I would like to use gyro sensor only and followed the below setting in user space application.

CTRL2_G (11h) = 0x60 (Gyro full scale 250dps, 416hz)

INT1_CTRL (0Dh) = 0x02 (Gyroscope Data Ready on INT1)

once settings are done i am checking GDA bit in STATUS_REG and reading OUTX_L_G, OUTX_H_G, OUTY_H_G, OUTY_L_G, OUTZ_L_G, OUTZ_H_G registers.

But by default GDA bit is enabled.

able to read X Y Z values like OUTX_G =0xe700 and Angular velocity of OUTX_G: -56 dps

OUTY_G =0xa9ff and Angular velocity of OUTY_G: -192 dps

OUTZ_G =0xa00 and Angular velocity of OUTZ_G :22 dps

the values are changing in each instance even in constant place.

am i missing anything from data sheet ? is there any reference to cross verify my settings?

Thanks&regards

v.pavani.

    This topic has been closed for replies.

    1 reply

    ST Employee
    February 26, 2020

    Hi @Vpava.1​ , you can try with enabling the BDU bit in CTRL3_C (12h), which blocks the data update until the internal digital processing is complete, according to the selected ODR. This would prevent a wrong reading in case the data read is in the order of magnitude of (typically equal to) the gyro ODR. Regards