Problem with serial monitor on arduino nano with CH340G chip


Every time I try to print smth in serial monitor, I have only boxes and "x" letters in output. I tried to reinstall drivers and changed cables. Also, my Arduino uno r3 doesn't have this problem. I don't know what to do.

Is this stand-alone?
Is anything connected to pins 0 or 1?
What happens after you press the RESET button?

Nothing connected to pins 0 and 1. If I press the reset button, it reboots and prints the same characters.

It has power from computer and and print this symbols to serial monitor. I checked many topics and didn't find solution.

Hi, @efimbelor
Welcome to the forum.

if you put

delay(500);
Serial.println("Hello World");

in the void loop() part of the code, what happens?

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

The same thing. It writes the same characters but every 0.5 secs.

What does the COM# show in the "drop down" where it says "Arduino Nano"?

Also... your sketch shows an "x" in the wrong place (at the end of loop() )... and should not compile, so whatever you are running was not compiled with that "x" in the sketch. Remove the "x" and upload again.

Oh, yeah. it was mis click after running a program. It didn't have any effects on the result.

It is a COM7 Serial USB port

That sketch says "ASCII Table" which is a built-in example... but that sketch is not what you are showing. I know titles do not matter, but "things have happened" on your end, and telling me "oh, right, I forgot to mention that" is not how to fix things.

Shut down your IDE, remove your Arduino. Start your IDE. When it is up, insert your Arduino. You should hear a system chime and see the IDE populate the Board and COM field (lower right). Load ASCII_Table.ino again and upload it.

Yeah, I know. Firstly, I tried to run this example and then tried to make the most simple code so I overwrote this file. Everything with the name of the file is ok, it's just a test.

Hi,
Have you tried the 1.8.19 version of the PC based IDE?

Tom... :grinning: :+1: :coffee: :australia:

No, I haven't tried this yet.

I'll try this way.

So, I have the same output..

Can it be the problem with hardware of Arduino? I tried the same program on my Arduino uno and it worked. I also tried 2 different computers and the result was the same every time. And it is only problem with tis board. Everything else worked fine.

Please provide a link to the board that you bought. Verify that the processor is indeed a 328P.

Your board might not be running on the frequency that it should be running on. Try to modify the baud rate in either the serial monitor or in the sketch; not in both. You will have to try a number of them

This is the link: https://a.co/d/btIgcnL
Processor is definitely 328p. I tried different bauds. Result was the same.

Assuming you've installed the core for the LGT8F328P as shown on the page you linked to, and assuming you're able to program sketches into the board, and assuming that it's a clock problem, you could try the following:

void setup() {
}

void loop() {
   for( uint32_t baud = 2400; baud<=115200; baud += 10 ) {
      Serial.begin(baud);
      Serial.println();
      Serial.println();
      Serial.println();
      Serial.print(baud);
      Serial.println(" baud");
      Serial.println();
      Serial.println();
      Serial.println();
      Serial.end();
   }
}

That's way more assumptions than I'm normally comfortable with, but who knows, it might produce something intelligible at some point.

Btw, if I change bauds only in one place, symbols are different.