2271Views5Replies

Author Options:

how do I use the data from a ITG-3200 gyro? Answered

I have a ITG-3200 gyro on a breakoutboard from sparkfun. I got the I2C-communication working and I get a steady stream of data but I can't make anything sensible from it. Does Anyone have have experience with Gyros?

5 Replies

user
abritezBest Answer (author)2010-10-06

I found this algorithm that supposedly should help get the angle is to have the angular rate multiplied by the time [angle = angle + w * dt]

This is where i saw it.
https://www.instructables.com/id/Angle-measurement-using-gyro-accelerometer-and-Ar/step3/Some-extra-information-before-we-proceed/

That being said, I have no idea how to implement this yet. If you have any idea please let me know. Hope that helps.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2010-09-05

Have you actually read the datasheet for the gyro ? Its full of useful info, like what the contents of the internal registers means......

Select as Best AnswerUndo Best Answer

user
janw (author)steveastrouk2010-09-06

I have read it indeed and I have no problem with the content of the registers but I need a way to translate the ADC outputs into usefull data like degrees rotation. So my problem is not directly in the Gyro but with the processing of the data.

Select as Best AnswerUndo Best Answer

user
abritez (author)janw2010-10-07

There is an really great explanation of Gyros and Accelerometer here. Filled with some useful formulas https://www.instructables.com/id/Accelerometer-Gyro-Tutorial/#step1

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)janw2010-09-06

The gyro gives a rate of change of angle +some gravity induced artefacts, which you can null out, if you have a compass as well. . You have to integrate the output wrt time to get an angle, and of course take account of starting conditions for the integration. Steve

Select as Best AnswerUndo Best Answer