AnsweredAssumed Answered

adxl345 output value(xyz axis) question

Question asked by liliao on Jun 1, 2015
Latest reply on Jun 2, 2015 by liliao

Hi,

 

   I used the EVAL-ADXL345Z-M board, satelliate board on table flatly, view meas data by the EVB GUI V1.3.vi , attachment 1.png is the config parameter and xyz realtime output data(about x=-1,y=11,z=238) ,and 2.png is all register value currently.

 

   Since I program a test project with keil mdk, 4 wire SPI mode, compiler it and burning the hex file to  EVAL-ADXL345Z-M board; keep the adxl345 config parameter same as EVB GUI v1.3.vi, as below:

XL345_DATA_FORMAT  = 0x0b

XL345_BW_RATE          = 0x0a

XL345_POWER_CTL      = 0x08

XL345_INT_ENABLE      = 0x00

XL345_OFSX                 = 0x00

XL345_OFSY                 = 0x00

XL345_OFSZ                 = 0x00

  After burning hex file, I reset the EVAL-ADXL345Z-M board with SW2 button, then adxl345 output data sample as following:

x=-11,y=-1,z=227

x=-12,y=0,z=226

x=-8,y=0,z=223

x=-11,y=0,z=222

x=-10,y=-1,z=225

x=-8,y=-1,z=226

x=-11,y=-1,z=225

............

  Why my test program output data is different from EVB GUI output data(about x=-1,y=11,z=238)?  Difference value of every Axis is about 10 lsb;

 

  Please give me some hint,thanks !

Attachments

Outcomes