Pages: [1]   Go Down
Author Topic: Serial Monitor shows garbage  (Read 2293 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just unpackaged & plugged in my new Uno.
As a test, I followed this example http://www.ladyada.net/learn/arduino/lesson4.html, which simply sends "Hello, World" out the (USB) serial port upon reset.
However, when I use the Serrial Monitor to view this output, I get garbage (see attached screenshot).
This example is so dead-simple, what could possibly have gone wrong?


* garbage.png (8.38 KB, 481x205 - viewed 227 times.)
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you cut and past the actual code from your sketch? Use the # button above to place the code into it's own window.


Lefty

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's the code:
Code:
void setup()                    // run once, when the sketch starts
{
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Hello world!");  // prints hello with ending line break
}

void loop()                       // run over and over again
{
                                  // do nothing!
}
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Funny how posting to a forum causes you to find the solution.
I was poking around the Arduino IDE and, just for grins, selected Tools > Fix Encoding & Reload.
And now the serial monitor shows the expected string.
Logged

Pages: [1]   Go Up
Jump to: