We have been working on motion sensor unit FIS1100.
We decided to use it as traditional motion sensor (FIS1100 can be operated in two modes Attitude engine mode and traditional sensor mode). We are using I2C for communication with motion sensor. Read and write to the motion sensor works properly. After making the configurations, I am not seeing any output in the output data registers.
Can anyone tell me where i had gone wrong in my configuration as this is my first experience with motion sensors.
Below is my configuration:
CTRL1 - 0x00
CTRL2 - 0x00 [full scale = 2g and ODR = 1000 ]
CTRL3 - 0x00 [full scale = 32 gps and ODR = 1000]
CTRL4 - 0x00 [There is no external magnetometer connected to FIS1100]
CTRL5 - 0x00 [Disabled low pass and high pass filters]
CTRL6 - 0x00
CTRL7 - 0x83 [Enabling sample synchronization,accelerometer and gyroscope]
How i read data from output data registers [Ax,Ay,Az and Gx,Gy,Gz]
Read STATUS0 register [Stop the updation of output data].
Read Output data registers [A[X,Y,Z][H,L], G[X,Y,Z][H,L]].
Note : We have also carried out accelerometer self test but there is no
output data in the output data registers.
Output:
MS conf completed
/*************CTRL registers after configuration ********************************/
ctrl1 = 0x0
ctrl2 = 0x0
ctrl3 = 0x0
ctrl4 = 0x0
ctrl5 = 0x0
ctrl6 = 0x0
ctrl7 = 0x83
/********************************************************/
STATUS0 = 0
ax = 0 : ay = 0 : az = 0 ;
gx = 0 : gy = 0 : gz = 0 ;
Datasheet can be downloaded from the following link
https://www.fairchildsemi.com/datasheets/FI/FIS1100.pdf
Edited to add answers to questions and schematic:
Read and write to the motion sensor works properly - I confirmed it by probing the I2C lines with DSO; moreover when I read 0x00 register I got 0xFC.
How have you proved that your hardware design (including I2C interface) is correct? - We used the application diagram (section 1.4 in datasheet) given in the datasheet FIS1100 (except that we haven't used magnetometer).
How do you know that your software program is correct? - When I read the datasheet this is what I understood, We can control FIS1100 motion sensor with seven control registers. I have listed out how I have configured them in the OUTPUT section above. This is where I need to know if anything needs to be done in addition to what I have done above, or if I am configuring it wrongly ????
Thanks