Good evening,
For a project, my friends and I are designing, building, and programming a quadruped that hopefully will eventually hover, fly, etc. We are using an Arduino Uno and a 9D0F Razor IMU (http://www.sparkfun.com/products/10736). The hardware and mechanical aspects have gone really well and now we're getting into the software part of the project. I wired up the Uno to the Razor in the following way...
Uno Tx --- Razor Rx
Uno Rx --- Razor Tx
Uno 3.3V --- Razor 3.3V
Uno GND --- Razor GND
The Razor is preloaded with firmware already and so I wrote a simple program to get data serially from the Uno.
char c;
void setup(){
Serial.begin(57600);
Serial.println("Simple 9d0f test");
}
void loop(){
if(Serial.available() > 0){
c = Serial.read();
Serial.print(c);
}
}
Now, I flash this code to the Uno, run it, and I get the initial menu of the Razor fine, but after that bizarre things happen. I either get garbage data, or the initial menu reprints, or it just prints blank characters on the console. I try to put in a command so the Razor only reads gyroscope data, but either the Razor never receives that input or something...I believe the baud rates for both devices are fine and everytime I move the Razor the green "Stat" LED blinks and I do get the Tx LED on the Uno blinking fine as well, but I haven't noticed the Rx LED on the Uno blink or light up. Any help into this issue would be greatly appreciated.