9dof-ardurIMu

Post Reply
sushma
Posts: 4
Joined: Wed Oct 23, 2013 1:33 pm

9dof-ardurIMu

Post by sushma »

We have the 9 dof which has ITG-3205, ADXL345 and HMC5883L sensors , output of the sensors is processed by ATMEGA328 , the problem we are is we are nt getting datasheet for the board for single IC's it is available , and data formet from the device is confusing.
Eg:12345798097879806283729839280320
2638728943893849898598989898995
above eg is how we are getting the output data from the device. It would be helpful if anyone could assist on how differentiate the data on how which data is from which sensor
User avatar
jack
Posts: 77
Joined: Sat Mar 03, 2012 2:25 pm

Re: 9dof-ardurIMu

Post by jack »

hi friend:
can you provide your program? Will help you to solve it immediately
sushma
Posts: 4
Joined: Wed Oct 23, 2013 1:33 pm

Re: 9dof-ardurIMu

Post by sushma »

void setup() {
Serial.begin(57600);
Serial1.begin(38400); // Baud rate fixed....
Serial1.print(4); // Begin with Raw data
}

void loop() {
if(Serial.available() > 0) {
int incomingByte = Serial.read();

if(incomingByte >= 48 && incomingByte <= 53)
Serial1.print(incomingByte);
}

if(Serial1.available() > 0)
Serial.print(Serial1.read());
}
sushma
Posts: 4
Joined: Wed Oct 23, 2013 1:33 pm

Re: 9dof-ardurIMu

Post by sushma »

void setup() {
Serial.begin(57600);
Serial1.begin(38400); // Baud rate fixed....
Serial1.print(4); // Begin with Raw data
}

void loop() {
if(Serial.available() > 0) {
int incomingByte = Serial.read();

if(incomingByte >= 48 && incomingByte <= 53)
Serial1.print(incomingByte);
}

if(Serial1.available() > 0)
Serial.print(Serial1.read());
}
User avatar
jack
Posts: 77
Joined: Sat Mar 03, 2012 2:25 pm

Re: 9dof-ardurIMu

Post by jack »

hi frined:
maybe your boud rate is too high,set it as 9600,any questions please contact me.
sushma
Posts: 4
Joined: Wed Oct 23, 2013 1:33 pm

Re: 9dof-ardurIMu

Post by sushma »

I would like to know the data format since its is coming contionous without any comma or string defining tokens as in nmea. It would be very helpful if you assist on data format of the data and can provide the datasheet for the same.

eg: 801185321819762242554814412824801101010127152225253

this the data we obtained in the serial window when we reduced the baud rate but we are not able decompose the data as which data is yaw,roll ....etc
User avatar
jack
Posts: 77
Joined: Sat Mar 03, 2012 2:25 pm

Re: 9dof-ardurIMu

Post by jack »

hi
are you use Razor AHRS code?maybe you can try it,then you can understand data format
Post Reply