Serial print only prints zeros

Hi all,
I have used the Serial print command for many years. But now when I run the Serial print it spams continuous zeros. I have copied the hello world tutorial code an set the serial monitor baud rate to 9600 in both the code and serial monitor. This is a first post. I have a screen print of the code showing baud rates of both the code and monitor.
Any leads would be much appreciated.


void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Hello World!");
  delay(1000);
}

> Blockquote

If you tell us the baud rates match, we will believe you. (Many beginners don't realise it's importance.)

But the problem by doing that is we can see only a tiny amount of the data on serial monitor. Please post a larger sample by copying the text and pasting it into your post, inside code tags.

It looks like maybe you are seeing the zeroes printed more than 1 per second?

also tell us what's your arduino and if anything is connected to it

Is it the same board?
Is it the same IDE version?
Is it the same operating system?

What is connected to Pin 0 (zero) of your Uno?

uno

Thank you for your response Jim, jml and xfpd, it turns out that I had several damaged arduino boards. Once the code failed on two nanos and a uno I as getting worried. This is a potential problem working in a school were students can overload pins and then return damaged boards without letting me know.

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