AnsweredAssumed Answered

ADXL375 Reading and g conversation

Question asked by iharshadec on May 26, 2016
Latest reply on May 27, 2016 by Anthony.DeSimone


I have setup ADXL375 with this settings

BW_RATE to 0x0D  -- 800 Hz sample

FIFO_CTL to 0xDF

DATA_FORMAT to 0x0B

All offset is not set so it remains 0x00 by default.

 

Now I am reading X Y and Z axis and converting them to final reading and as per this DATA FORMAT it's right justified.

Xreading = DATAX1 << 4 | DATAX0

Yreading = DATAY1 << 4 | DATAY0

Zreading = DATAZ1 << 4 | DATAZ0

 

Now I can see my reading is

X = 6 | Y = 8 | Z = 11 -- This means Z is 11*49mg = 0.539g

Now when I flip this to 180 degree it should be -0.539g and reading -11 but it shows

Z = -26 -- this means -26*49mg = -1.274g

 

Is there anything wrong in setting up ADXL375?

Outcomes