I have a strange problem with my project that causes my Arduino to freeze after a while. First of all a few details regarding my project:
Arduino Uno + Ethernet Shield + DHT sensor + 2Relay used to post and receives data from/to an apache server.
So here is the problem: In the sketch i
m using a lot of Serial.println statements (for debugging purposes). Now that the project has finished I did not remove the println statements. If I connect the Arduino to my PC's usb port the system runs smoothly non stop (for more than a week so far). If i power the arduino using a usb adapter (similar to the one used for my mobile phone) the system halts after a while (from 20-30 minutes to...three four hours). I tried various things like different adapters (from 0.5 to 2mah all 5v), or changing the wiring, etc. Nothing has worked so far so Im starting to believe that it is caused my the Serial.print statement. I havent tried yet removing all those lines, will do so soon, however....isnt that strange? What is difference between powering the arduino using the usb port and a usb adapter in terms of the Serial.println command?