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?