Recently I bought a GPS module (ublox neo-6M-0-001) for my Arduino Mega 2560. I connected Vcc and Gnd (LED at GPS module glows blue and sometimes blinking).
GPS module RX port is connected to the Arduino's TX3, Port 14. GPS module TX port is connected to the Arduino's RX3, Port 15.
As a first step I just want to print the serial data received from the GPS module:
#include "SoftwareSerial.h"
SoftwareSerial mySerial(15, 14); // RX, TX
void setup() {
Serial.begin(9600);
Serial.println("uBlox Neo 6M Test");
mySerial.begin(9600);
}
void loop() {
if (mySerial.available())
Serial.write(mySerial.read());
}
Saldy, there is no data received from the GPS module. According to the datasheet the baud rate 9600 seems to be correct.
Do I need to configure the GPS module somehow before it delivers data? Do I need to buy an external antenna?
Thanks for your help.