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?
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.