Hey, I'm having some trouble reading data from my Sparkfun Razor 9dof through my Arduino board. I'm using an Arduino Mega 2560 and Windows 7. The trouble is that the code below uploads to the board fine, but does not give an output to the serial monitor.
I think it's because the razor and the Arduino us different naming conventions, i.e. Arduino will have a serial with Tx0 and Rx0 while the razor has a serial called Tx0 and Rx1. And yeah, everything else was connected up correctly.
I decided to abandon this code anyway, I managed to find another online which actually worked.
I think this is the code. Looking back the problem pointed out by PaulS regarding using the two ports at once may have been what was wrong. If you’ve got the Arduino connected to your PC via a USB you cant use Tx> and Rx<.
If this doesn’t work (the code i’m using now has been modified) give me a shout and i’ll try and find the right one.
I tried running it but couldn't get a print out when I opened the serial monitor.
Based off your code you've obviously connected the razor to the serial1 port, just to double check (tired it both ways) do you have Tx connected to Rx and Rx to Tx or Tx-Tx, Rx-Rx, I've read people doing both and am not 100% sure which is the correct connection. I've got a strong programming background but am new to using serial connections.