Nano Serial not working properly

void setup()
{
Serial.begin(9600);
}

void loop () 
{
Serial.println("Hello");
delay (1000);
}

I am receiving random characters (serial monitor set to 9600).

But it works correctly when the setup.begin() is set to 9600 and the serial monitor is set to 2400 baud. Is there a proper way to address this?

It sounds like the actual MCU clock speed is 1/4 of that assumed by IDE, based on your board selection.

Please explain what you mean by "Nano" (there are several different one) and state what you selected for the Arduino board.

Hi J,

Thanks for the response.

This is the exact "Nano Compatible" board i have:
https://www.amazon.com/dp/B0BCNCD1QT?ref=ppx_yo2ov_dt_b_product_details&th=1

I have Arduino Nano selected as the Board, and ATmega238P selected as the processor.

That board does not have an ATmega328p chip, instead it is a partially compatible MCU called LGT8F328P.

The board doesn't work very well with Arduino, even if you go through all the hoops to download and install the additional files needed. See the link on the product page.

You can find additional information on the web about how to get around the various problems, if you include LGT8F328P in the search phrase.

1 Like

Ahh darn, i read the title of that wrong. I thought it said its Arduino nano compatible. With (like included) Atmega328p board... Not compatible with ATmega328p :joy:

It "sort of" is compatible, and the chip is actually more powerful than the ATmega328.

But the manufacturers evidently never finished integrating it into the Arduino IDE. Serial printing was one of the major issues, I recall.

See this site: GitHub - RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P: An improved ATMega328P with this cheap clone Logic Green LGT8F328P

1 Like

In the case this is searched in the future.

https://osoyoo.com/2022/08/11/arduino-hardware-support-package-for-lgt-nano/

@c_sickler ,

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

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