Go Down

Topic: Serial Monitor shows garbage (Read 2528 times) previous topic - next topic

dlchambers

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?

retrolefty

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


dlchambers

Here's the code:
Code: [Select]
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!
}

dlchambers

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.

Go Up