Arduino sketch stopped working... not enough RAM?

I am currently working on my first really big Arduino project. I have been working on the sketch for about a few days, and everything was going great until last night, when the Arduino just stopped executing the sketch. The sketch uploads fine, but does not execute. I uploaded the sample Blink sketch, and it works fine.

If I run the sketch, with Serial.print(“Setup…”); in setup(), it prints “Set”, and thats all.

I think it might be a lack of RAM, but I’m not sure. I don’t think I have more than 2k bytes.

I’m using an Arduino Uno R3. Here is my sketch so far (just the declared variables and steup()). It is currently messy and not optimized at all…

edit…

There is, by my count, about 70 bytes declared in the entire sketch. About 10 bytes are declared in loop().

Any help and/or suggestion would be greatly appreciated!

Thanks,

Hengy

If I run the sketch, with Serial.print(“Setup…”); in setup(), it prints “Set”, and thats all

Given what you've posted that's all I'd expect that code to do. Why don't you post the rest of the code (loop()) and tell us what it doesn't do that you think it's supposed to.

FWIW : millis() returns an unsigned long so all your “times” should be that type.

http://arduino.cc/en/Reference/Millis

Sorry for taking so long to reply…

I realized the millis() mistake shortly after I posted. I have used it from the very early stages of my sketch, so I know it’s not the problem (although Im sure if I left my sketch going long enough, it would be a problem).

Here is my full sketch…

edit…

I found my mistake. It’s actually embarrassing enough that I don;t want to post what it was!

Thanks,

Hengy

It’s actually embarrassing enough that I don;t want to post what it was!

Ohhh Noooo. It's what "we" live for. Now what are "we" to do for entertainment ?!? :wink: :shifty: