I am running this piece of code in my loop()
function on Arduino Uno:
int times = 400;
int i;
double raw[times];
for (i = 0; i < times; i++) {
Serial.println(i);
raw[i] = (double) i;
}
for (i = 0; i < times; i++) {
Serial.println(raw[i]);
}
When times
is less than 500, it prints fine, but when times
approaches 500, the serial print would stop at random places or print weird characters and sometimes would not print at all.
Is it something to do with the RAM usage?