hey everyone i hope help me with the imu 6 dof SparkFun 6 Degrees of Freedom IMU Digital Combo Board - ITG3200/ADXL345 - SEN-10121 - SparkFun Electronics that can control some servos by the motion of it ,, so i wanna to know how make program to read the data from the sensor and uses this data to control the servos ,, i know wire library and will use it , so any help plz
The Sparkfun page has links to example code on Github.
You could try that code.
However, I don't like that code. It's too old, and mixes direct avr port code with Arduino code.
The I2Cdev lib by Jeff Rowberg is much better and has libraries for those sensors, http://www.i2cdevlib.com/
The link on the Sparkfun page to the tutorial is very informative.
i just want to how to read data from the sensor ,,
You can not only read the values from the sensor.
You have to communicate with it, set register values and so on.
Read the datasheet to see what they can do.
Writing your own code is not easy, and other have done it for you.
So you have to use the code from others. That's how it is.
But it is not something bad, it's a good thing that others have written code that you can use for free.