Serial dropping after a few seconds

I'm new to arduino and I just set up mine up with a LCD screen. The screen works fine, but every time I try to print variables to the serial port, I get a signal for 2-3 seconds and then the connection drops. I've tried a lot of sample programs and it happens every time. Any idea as to what could be causing this?

Hi

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png or pdf?

Can you please post a copy of your sketch, using code tags?
Please use code tags… See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Tom… :slight_smile:

I am following this tutorial from the TFT LCD screen I got from Adafruit: Breakout Wiring & Test | 1.8" TFT Display Breakout and Shield | Adafruit Learning System

I have everything that is in the picture except for the resistor between the power rail and ground, could the be the problem?

Hi,
The TFT stays lit up even when comms drops.
Does it print to screen before comms drops out.
Have you got the monitor at the same speed as set in the sketch you have loaded?

Tom.... :slight_smile:

What are you using to send the code to the Arduino. If it is the serial monitor in the IDE that is fine. However some PC program's disconnect the serial port after sending stuff and that causes the Arduino to reset.

emhaze:
I have everything that is in the picture except for the resistor between the power rail and ground, could the be the problem?

The picture shows a capacitor between power/ground rails, not a resistor.

Lack of a capacitor can cause these problems, see:-
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html