Page 1 of 1

SPI - IMU "2"

Posted: Sat Feb 27, 2010 11:48 pm
by Bobes
Hello,
I am trying to use SPI: I have ADIS16405. I have tried scheme used in IMU, but I do not exactly understand what are the inputs? I guess they are addresses, but how to get to those numbers? (I am looking at the IMU_dsPIC_30f4012_TestElectronics.mdl)
I do not think that my problem is wiring, when I reset ADIS, I receive 2^16, otherwise its always zero, in some cases I have got 17.

"trame" is frame in french?

Re: SPI - IMU "2"

Posted: Sun Feb 28, 2010 12:28 am
by Bobes
update: i have changed back to the interrupt driven SPI bloc, and I am getting some data, just not on all channels and also they seems to be mixed. ie I am getting something that is reacting on my screwdriver (magnetic) but the readout is on accY
will work more, just in case someone see some ovious error that I am missing, please let me know .)

Re: SPI - IMU "2"

Posted: Fri Mar 19, 2010 9:34 pm
by Bobes
ok, uff, found the problem! its in the data-sheet, or I am an an-alphabet... I believe that AD have a bug in their data-sheet.
they have addresses for X-Z gyro X-Z accelerometer X-Z magnetometer like this: 0400 0600 0800 0A00 0C00 0E00 1000 1200 1400
But I am running it and finally reading data that make sense like this: 0400 0500 0600 0700 0800 0900 0A00 0B00 0C00 (or one less, I am not sure right now, I have the model at school)