Is my Arduino Uno faulty?

Hi folks, I bought an Arduino UNO R3 Board ATmega328P from Aliexpress. It looks ok from the outside with no visible defects but whatever I run on it, it stops running correctly after 20 -100 seconds. The code starts running after being uploaded but it after some time the output from the serial monitor gets cut off. For example I was printing the time every second and after abotu a minute or two the output cets cut off and stops displaying anything.

I tried different sketches where I was counting the time with RTC connected to it, but after I noticed this behavior I tried something simple:

void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
digitalWrite(LED_BUILTIN, HIGH);
Serial.println("LED ON");
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
Serial.println("LED OFF");
delay(1000);
}

Runs fine for about 10-20 seconds and then the blinking starts getting out of rhythm and eventually the led just stays turned on all the time. So I tried to connect the Arduino to a small 1.4 Ah,12V Sealed Lead Acid battery through the DC jack, then I uploaded the sketch and after I saw that it was running fine I disconnected the USB. The result was the same, after about half a minute the blinking went out of rhythm and the led eventually stayed turned on.

I dont have any experience with Arduino but it seems to me that something that simple should be working fine work a long period of time. Do you think my Arduino is just faulty or I'm doing something wrong with the code?

That code should run without any problems, as long as power is supplied. Perhaps you have a defective imitation.

Is Autoscroll enabled?
It's the first on the left that looks like corporals stripes
Screenshot 2024-10-03 at 11.41.10

Yes, it's turned on. I also tried counting seconds:

I think it would be best if I try to buy another one right?

If you are powering your board just from USB and you have no other hardware connected when you experiment this, yes, try with new board.

Strange that it would jump from 25 to 8742. I can't explain this

If you do not use the serial output, like run the basic blink example, does it fail?

@tetrus22 Yes, I notic ed that too. If the OP would turn on the timestamps, that 's the clock icon, and change the code from 9600 to 115200 and also change the serial log to 115200. See if anything changes.
BTW, I normally power my UNO with a 9V D cell.

Thanks a lot folks, I tried a new one and it works fine, I guess the other one was just faulty

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