6 DOF IMU

Hi everyone, I am using this code:

#include <FreeSixIMU.h>
#include <FIMU_ADXL345.h>
#include <FIMU_ITG3200.h>

#include <Wire.h>

float angles[6]; // yaw pitch roll

// Set the FreeSixIMU object
FreeSixIMU sixDOF = FreeSixIMU();

void setup() { 
  Serial.begin(9600);
  Wire.begin();
  
  delay(5);
  sixDOF.init(); //begin the IMU
  delay(5);
}

void loop() { 
  
  sixDOF.getValues(angles);
  
  Serial.print(angles[0]);
  Serial.print(" | ");  
  Serial.print(angles[1]);
  Serial.print(" | ");
  Serial.print(angles[2]);
  Serial.print(" | ");
  Serial.print(angles[3]);
  Serial.print(" | ");
  Serial.print(angles[4]);
  Serial.print(" | ");
  Serial.println(angles[5]);
  
  delay(1000); 
}

The output is :
18.00 | 5.00 | 251.00 | 0.00 | 0.00 | 0.00
20.00 | 4.00 | 252.00 | 0.00 | 0.00 | 0.00
19.00 | 5.00 | 251.00 | 0.00 | 0.00 | 0.00
18.00 | 4.00 | 252.00 | 0.00 | 0.00 | 0.00
18.00 | 5.00 | 251.00 | 0.00 | 0.00 | 0.00
18.00 | 4.00 | 252.00 | 0.00 | 0.00 | 0.00
21.00 | 4.00 | 252.00 | 0.00 | 0.00 | 0.00
18.00 | 4.00 | 252.00 | 0.00 | 0.00 | 0.00
18.00 | 4.00 | 252.00 | 0.00 | 0.00 | 0.00

I do not get values for Gyroscope, can anyone please help me?

Thanks,

I do not get values for Gyroscope

Perhaps this mystery device does not have a gyroscope. Some details about the mystery device would be useful.

Thank you for your reply.

this is the sensor i am using: SparkFun 6 Degrees of Freedom IMU Digital Combo Board - ITG3200/ADXL345 - SEN-10121 - SparkFun Electronics?

And where did you get the library you are using?

From here: http://bildr.org/2012/03/stable-orientation-digital-imu-6dof-arduino/

Thanks

Well, I went there, too, and downloaded a zip file full of stuff. No FreeSixIMU.h that I could see.

Just place the FreeSixIMU folder in your arduino library (/Documents/Arduino/libraries), then you should be able to compile.

Just place the FreeSixIMU folder in your arduino library (/Documents/Arduino/libraries), then you should be able to compile.

Had there actually been one, don't you think I might have looked in that folder?

Specifically, where did you get the library?

I got it from that website, it is the sixDOF_Example.ino file.

Just changed the sixDOF.getEuler(angles); to

  sixDOF.getValues(angles);

Thanks.

Do you know how to combine the 6DOF along with the HMC5883L (magnetometer), and also the BMP085(Baromic pressure) to work and communicate together by using the same SDA, SCL pins ?

Hi, can i know what are the last 3 digits value represent to ? and why are they 0 ?

regards.