Hi, I'm a newbie and am a little stuck. I have just purchased a 9 DOF Razor IMU (SEN-09623) and a 3.3v FDTI breakout (DEV-08772) which I'm powering via usb.
I'm trying to convert the gyro reading to angles but am doing something wrong. If i turn the board 90 degrees my conversion will only give me readings of around 30 degrees.
Here is my algorithm
sensitivity = 0.83 // as per datasheet
zeroLevel = 1.23 // as per datasheet
degPerSecond = (gyroXvalue * 3.3/1024 - zeroLevel)/sensitivity
angle = degPerSecond * elapsedTime + previousAngle
I'm using the values of 3.3 because its a 3.3V power supply and 1024 because its a 10 bit ADC
What am i doing wrong? Do i have the sensitivity and zero level correct? I would like post the datasheet, but not allowed.
Any guidance would be really appreciated.