View Single Post
  #2   Spotlight this post!  
Unread 21-03-2015, 00:56
randantor randantor is offline
Registered User
AKA: James Y
FRC #0624 (CRyptonite)
Team Role: Alumni
 
Join Date: Jun 2013
Rookie Year: 2012
Location: Katy, TX
Posts: 48
randantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of light
Re: ITG 3200 I2C Gyro help

We tested the SparkFun 6 DoF IMU during build season, which contains an ITG-3200 during build season and read it successfully with this code:



I think you have the high and low byte of each register swapped. According to the datasheet the first byte (lower address) of each register is the MSB.

Also, we used the cast function rather than the conversion function to get a signed int. I'm not sure if that actually results in different values, but casting the value worked for us.

Good luck! The ITG-3200 worked pretty well for us as an improvement over the KOP analog gyro, with the signal not being susceptible to the effects of mysterious static buildup at inopportune moments...
Reply With Quote