Post Go back to editing

ADIS16365 interface with dsPIC

Hi everyone , it's the first time to me here.. i have a strange problem ..

i am working on ADIS16365 interface with dsPIC , I wrote a code to extract all these data :

1- Power supply measurement

2- x,y,z gyroscope output

3-  x,y,z accelerometer output

4 - x,y,z gyroscope temperature output

i read all these data correctly except accelerometer y output , it gave a strange output

i used the same methods and calculations with accelerometer x and z and there wasn't any problem , i didn't use burst mode to extract these data ,  i send a command every time

for example , i used  this part of code to read accelerometer x :

         SPI2_Write(0x0A00);                        // Send data via SPI

          delay_us(25);

          XGValue = SPI2_Read(buffer);              // Read the MSByte

          info[4] = (XGValue & 0b0011111111111111); //Strip off the ND and EA flags

so, any help ?

Parents
  • Thanks for your response .. actually , all other sensors reading are perfect , accelerometer x is almost 0 , accelerometer z is -1 approximately , gyros are almost 0 and their values changes logically with ADIS16365  movement , supply voltage is 5 volt and temperature readings are perfect .

    during these readings , i put ADIS16365 IMU  on a table  , so , i expected some offset value , but the problem was here :

    accelerometer y readings came like this :

    -7.022631

    -8.945773

    -4.63620

    -9.459054

    all these strange readings are coming without any change in ADIS16365  position ,  i replaced this IMU by a new one but the problem was same , so , could you please suggest any solution for this strange problem ?

    it looks like the address of accelerometer y  is not 0x0C , but i checked it in the datasheet and it is 0x0C

    so, any help ?

Reply
  • Thanks for your response .. actually , all other sensors reading are perfect , accelerometer x is almost 0 , accelerometer z is -1 approximately , gyros are almost 0 and their values changes logically with ADIS16365  movement , supply voltage is 5 volt and temperature readings are perfect .

    during these readings , i put ADIS16365 IMU  on a table  , so , i expected some offset value , but the problem was here :

    accelerometer y readings came like this :

    -7.022631

    -8.945773

    -4.63620

    -9.459054

    all these strange readings are coming without any change in ADIS16365  position ,  i replaced this IMU by a new one but the problem was same , so , could you please suggest any solution for this strange problem ?

    it looks like the address of accelerometer y  is not 0x0C , but i checked it in the datasheet and it is 0x0C

    so, any help ?

Children
No Data