AnsweredAssumed Answered

Regarding RAW data conversion to g.

Question asked by Hinesh1 on Mar 14, 2016
Latest reply on May 10, 2016 by Anthony.DeSimone

Hi neilzhaoNevadaMark,

 


I would like to know your comments about below initialization.

in int reg.
ADXL375_INT_MAP;
ADXL375_INT_SINGLE_SHOCK_INT

 

 

int int enable reg.
ADXL375_INT_ENABLE;
(ADXL375_INT_DATA_READY_INT|ADXL375_INT_SINGLE_SHOCK_INT|ADXL375_INT_DOUBLE_SHOCK_INT);

 

In determin shock axis
ADXL375_SHOCK_AXES;
(ADXL375_SHOCK_X_ENABLE|ADXL375_SHOCK_Y_ENABLE|ADXL375_SHOCK_Z_ENABLE);

 

  ADXL375_POWER_CTL;
ADXL375_PCTL_MEASURE_READY;

  

 

ADXL375_DATA_FORMAT;
0x2B;

 

I am having settings as above for the first time initialization.,and I am getting RAW values,  from ADXL.
I am reading the register of 0x31 to 0x36. And I am getting Raw values. But how to convert Them all in G value.

 

Is there self test setting is also need to be done at time of initialization?
And what formula I should refer to convert raw hex to Normal G ( readable ) values.

 

the row accelerometer value i am getting by reading of 0x31 to 0x36 register are as below...
0x31 --> 0x13

0x32 --> 0x00

0x33 -->  0xFB   ---------- This values of Y is  going very high but my device is steady. ( if I do math as per 49mg/lsb it comes 3211)

0x34 -->  0xFF   -----------

0x35 -->  0x81

0x36 --> 0x00

 

How do I convert this values correctly., and what should be the idle settings?


Thanks,

Hinesh

Outcomes