AnsweredAssumed Answered

working with the ADXRS453-V

Question asked by RUFINOGG on May 22, 2015
Latest reply on May 26, 2015 by venkat

I am working with the ADXRS453-V accelerometer and all the example works perfectly, but in every reading always get different results without the chip has changed his position. Are normal these disparate values?: 

Terminal log file

Date: 20/05/2015 - 20:00:45

-----------------------------------------------

Iniciado ADXRS453: 5202, Serial: 370948, ADXRS453 OK

/*

.....

ADXRS453_Data(){

  SPI_Read(slaveDeviceId, data, 4);

.....

  data[0] = ADXRS453_SENSOR_DATA;

  SPI_Read(slaveDeviceId, data, 4);

  receivedData += ((unsigned int32)data[0] << 24);  

  receivedData += ((unsigned int32)data[1] << 16);

  receivedData += ((unsigned int32)data[2] << 8);

   receivedData = ((unsigned int16)(receivedData >> 10) & 0xFFFF);

  return receivedData;

*/

/*

....

rxData = ADXRS453_Data();  

      // If data received is in positive degree range

if(rxData  < 0x8000){angularVelocity = (float)(rxData) / 80.00;}

     // If data received is in negative degree range

  else{angularVelocity = -1 * (float)(((0xFFFF - rxData + 1)) / 80.00);}

fprintfUARTR1,"%.2f,",angularVelocity); ....... */

 

- 0.30,0.10,-0.15,-0.08,-0.08,-0.66,0.17,-0.21,-0.08,0.03,0.03,0.06,-0.31,0.02,0.0 0,-0.35

Outcomes