Go Down

Topic: Arduino Serial port doesn't work sometimes (Read 536 times) previous topic - next topic

BobTheAverage

Dec 28, 2014, 06:49 pm Last Edit: Dec 28, 2014, 07:43 pm by BobTheAverage
I am having intermittent problems with my computer connecting to my Arduino. All of the problems seem to be related but they show up in different ways.

Most of the time the Arduino IDE can find the Arduino on either com3 or com4, but sometimes not. I unplug and replug the USB a few times or try different ports and it starts working again. Windows always makes the sound for new device found, but the IDE does not always see the Arduino on com3 or com4.

Sometimes, when the above described problem doesn't happen, the Arduino will recieve an uploaded program fine but the serial monitor will be empty. During the upload the TX and RX lights on the board flash and the L light blinks. I modified the blink program to also write "hello world." The light blinks but the "hello world" will not show. This problem is also intermittent. Sometimes the blinking hello world shows fine.

I can't find any pattern to when the thing stops working. I know that my code isn't causing the problems, but the problem most often starts again when I upload new code. The new code will typically only have a few minor changes, nothing that would break it.

I did a clean install of the latest stable release of the Arduino IDE, but it does not make a difference. I tried using MariaMole, but that did not make a difference either. Any ideas?

AMPS-N

R u using Windows 7 operating system???

IF yes sometimes ports keep changing .
So you can do this .

device manager-> ports-> Arduino board->right click choose properties->port setting-> advance setting-> check which port available free-> allign the port. save baudrate.

save the data

again unplug & plug cable. this time you must find port you choosen.

when completed upload the blink program with serial print statement. if you getting error further. That means your IDE has problem just download new version of IDE or use MPIDE023 or UECIDE IDE. for programming
AMPS

BobTheAverage

I am running windows 8.

I tried what you said and it worked for a while, but the problem eventually came back.

I recently realized that the sketch I was writing for my project was using far more variable memory than was available. Other forum dwellers have said that this can cause strange problems, but I can't explain how it would interfere with my blink/hello world sketch. I rewrote the project sketch to use less variable memory, and the problem has not come back since. Because it was an intermittent problem it might still come back, so I can't be sure it was solved.

Many thanks.

AMPS-N

without sharing code we can t tell anything. share ur code in zip file.
Quote
I recently realized that the sketch I was writing for my project was using far more variable memory than was available. Other forum dwellers have said that this can cause strange problems, but I can't explain how it would interfere with my blink/hello world sketch.
this statement is true unless you use LED, lcd screen where you using print satement which cause process get slower.
can you share ur code.


AMPS

Go Up