system
August 5, 2012, 7:05pm
1
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,
system
August 5, 2012, 10:28pm
2
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.
system
August 6, 2012, 12:59am
3
Thank you for your reply.
this is the sensor i am using: https://www.sparkfun.com/products/10121 ?
system
August 6, 2012, 8:56am
4
And where did you get the library you are using?
system
August 6, 2012, 9:12am
5
system
August 6, 2012, 9:16am
6
Well, I went there, too, and downloaded a zip file full of stuff. No FreeSixIMU.h that I could see.
system
August 6, 2012, 9:23am
7
Just place the FreeSixIMU folder in your arduino library (/Documents/Arduino/libraries), then you should be able to compile.
system
August 6, 2012, 9:25am
8
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?
system
August 6, 2012, 9:30am
9
I got it from that website, it is the sixDOF_Example.ino file.
Just changed the sixDOF.getEuler(angles); to
sixDOF.getValues(angles);
Thanks.
system
March 7, 2013, 7:31am
10
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 ?
system
March 7, 2013, 3:59pm
11
Hi, can i know what are the last 3 digits value represent to ? and why are they 0 ?
regards.