Go Down

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


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?


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



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!


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131