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?



Best Answer 7 years ago

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.

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

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

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.

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

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