Problem with Serial

Hello,

I'm testing Arduino Nano compatible board (v3.0, 328P).

As you see in the attached picture, there is a problem in using serial print.
The serial monitor shows broken characters

I already installed ‘USB-Serial CH340’ driver and checked the baud rate also.

What should I do to fix this problem?

Thanks,

Have you got anything attached to pins 0 or 1 on the Nano ?

You might want to try a different monitor, it is just fine here, no gaps no messed up characters or missing ones. Screen print does not actually copy the display it gets the information from the display driver. To see the characters it would have to be a picture.

I didn't connect any devices to Arduino Nano. Should I've attached something to the board?

Except for the USB cable, no.

Just a try an IDE <2.0 as reference.

IDE 1.8.19 shows the same results.

I see five characters and a null in both screen captures. Maybe the config is set different. Try:

Serial.begin(9600, SERIAL_8N1);

(sorry about previous typeo)

@khocha I don´t know which baud rates you already tried but try another higher baud rate. For example

Serial.begin(115200);

Why the odd text at the bottom of the windows for 1.8.19? Is your computer set for a non-English language?

I changed it as you suggested, but the result was the same.

Yes, I tested it at a higher baud rate, but the results were the same.

I asked, because several boards showed these symptoms.
Eventually, I replaced them with another company's product and solved it.

Thanks all.

Instead of writing Serial.Println("Hello.");
You write Serial.Write("Hello");

I have Nano CH340, but not this error. The problem seems something in a setting.

A couple tests... Can you connect your Tx pin to your Rx pin, open a Serial Monitor and type any characters with the same character showing in the Serial Monitor? Remove the jumper when done.

And... also just for testing, is there a way to change from Hangul to English? My guess is on the same idea as post #8... wrong number of bits per character. Keep track of changes and make normal if nothing changes.

@xpfd, for your information, the loop back test is non-conclusive for boards with CH340.

Did it work on yours? Just curious.

Sorry, I was vague. I have not experienced the OPs case (with nano/ch340) except when I created a baud mismatch. Loop back is a basic tool for comms after physical inspection.

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