ok. using this code i just get "2242240" every time i hit reset on the IMU. or, if i change it to "Serial.print(imu.read(), BYTE);" i get "àà" plus a box character.
the manual says; "When the 6-DOF v2 powers up, the first thing you'll see is the configuration menu. You are presented with 3 options for configuration: Sensor range, output type and the active channel list. Just hit “1”, “2” or “3” to enter the submenu of your choice, or hit “g” to start the unit sampling."
how do you send “g”? i tried sending it as a string like you see commented out in the code. when i did that i would get much longer strings of random ascii characters but only sometimes. it definately wasn't a continuous stream of data.
#include <NewSoftSerial.h>
NewSoftSerial gps(2, 3);
NewSoftSerial imu(5, 7);
void setup()
{
imu.begin(57600);
//gps.begin(38400);
Serial.begin(57600);
//delay(1000);
//imu.print("<ctrl>g");
}
void loop()
{
// Every 10 seconds switch from
// one serial GPS device to the other
/*if ((millis() / 10000) % 2 == 0)
{
if (gps.available())
{
Serial.print(gps.read(), BYTE);
}
}
else
{
if (imu.available())
{
Serial.print(imu.read(), BYTE);
}
}*/
if (imu.available())
{
Serial.print(imu.read());
}
}