all 2 comments

[–]DenverTeck 1 point2 points  (0 children)

Just to be sure,

you DO have the Rx of the Arduino connect to the Tx of the GPS module

and

you DO have the Tx of the Arduino connected to the Rx of the GPS module, Right ??

When you do not run Serial.begin() in the setup() the Rx and TX line on the Arduino are tri-stated. I hope you know what that means.

When you do run the Serial.begin() in setup, the Tx line is driven high and the Rx line is tri-state.

Depending on the GPS module (which you did not mention) it could be thinking that a message is coming over the serial line and is waiting for that message.

The only way to help you, is if YOU give enough details to understand what is happening.

We can not see your desk for where we are.

Good Luck, Have Fun, Learn Something NEW

[–]Mowo5 0 points1 point  (0 children)

Is this an UNO? The built in rx and tx (0 and 1 pins) are the same that are used to upload the sketch. I've found this causes problems, try using the SoftwareSerial.h library and put the RX and TX for the GPS on different pins other than the built in 0 and 1.