Pages: [1]   Go Down
Author Topic: xBee shield and carriage return  (Read 420 times)
0 Members and 1 Guest are viewing this topic.
italy
Offline Offline
Full Member
***
Karma: 2
Posts: 215
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I have noticed a strange behaviour with my arduino mega. If I run this code:

Code:
void setup() {               
  Serial1.begin(9600);     
}

void loop() {
  Serial1.println("ottimost");
  delay(1000);              // wait for a second
}


I obtain on the terminal:
ottimost
ottimost
ottimost
ottimost
ottimost

That's what expected. But if I run the same code with an xBee shield put on (using seral 0 not 1!) i obtain:

ottimost
ottimost
ottimost

ottimost
ottimost

Sometimes there is a white line. It occurs not always at the same position...
Any idea on the reason?
Thanks!
Logged

italy
Offline Offline
Full Member
***
Karma: 2
Posts: 215
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi, I have understood the problem is not concerning if xBee is present or not. The whites spaces appear if I use another serial monitor as coolTerm, never happen if I use the serial monitor included with arduino ide. Any idea about this behaviour?
Logged

Pages: [1]   Go Up
Jump to: