Need help in arduino robot

Hey guys, I'm now playing arduino robot, and I want to collect the compass data from the robot.

Here is a simple testing code:

#include <ArduinoRobot.h>
void setup(){
Robot.begin();
Serial.begin(115200);
}

void loop(){
Serial.println(Robot.compassRead());
delay(100);
}

however, when I open the serial monitor, nothing shows on the monitor, is my code correct? Or anyone knows which is the TX pin of the robot so that I can combine the robot with Xbee/bluetooth?

Or anyone knows which is the TX pin of the robot so that I can combine the robot with Xbee/bluetooth?

What robot? You best work with a wired connection between the compass and arduino first.

zoomkat:
What robot? You best work with a wired connection between the compass and arduino first.

The arduino robot, the same this one:
http://arduino.cc/en/Main/Robot

Yes I connect the robot to laptop through USB cable, but I cannot collect anything from compass.

Hi, so you don't even get 0's?

Tom.... :slight_smile:
Have you got monitor speed at 115200?
Have you tried any other sketches on the robot, simple motor drive?

Hi we seem to have a problem here.
A number of threads all asking about USB coms and not being able to use serialprint.
Please do not double/triple post. Most of us read most of the categories and it get confusing for us and you with more than one thread for the same problem.

Tom.... :slight_smile: