Serial monitor displaying gibberish?

Hello,

Sorry I am new here and just got my first Arduino today. Just got setup with a Nano Everything, I can upload a sketch to the unit and get feedback so everything seems to be working.

My problem is the serial monitor is just displaying little squares instead of data. As an example I am running the i2c scan and I am just getting gibberish. I do infact have a Grove TH02 temp sensor hooked up and was just trying to verify connectivity.

I click on the copy icon and it says it copied to clipboard but there is nothing to paste so I have no way to show you what I am seeing. Other then its is little squares taking the place of what I would assume is supposed to be text output.

Thanks,
Robert

In your sketch, you should have a line that looks something like this:

Serial.begin(115200);

The argument (115200 in this example) sets the baud rate for serial communication. You need to make sure the Serial Monitor's dropdown baud rate menu matches the rate set in your sketch. A mismatched baud rate can cause this sort of gibberish.

Interesting, I did not change any of the defaults, the program, from examples; i2c scanner is set at 9600 and the serial monitor was set at 9600. Anyways, tried again this morning and viola' it works as designed. Perhaps by closing the web editor and reopening, who knows? Anyways...

I2C Scanner
Scanning...
I2C device found at address 0x40 !
done

Scanning...
I2C device found at address 0x40 !
done

Scanning...
I2C device found at address 0x40 !
done

Done, it works and I have my sensor hooked up correctly :wink:

I'm glad to hear it's working now. Thank you for taking the time to post an update. Enjoy!
Per

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.