Hello,
I have attached the LS20031 GPS to an Arduino Mega 2560 R3 using these connections:
GPS Arduino
VCC – 3.3v
RX – RX1(pin 19)
TX – TX1(pin 18)
GND – GND
When I give power to the Arduino, a light starts blinking on the GPS(what does that mean?).
And here is my code:
#include <SoftwareSerial.h>
#define rxPin 19
#define txPin 18
SoftwareSerial mySerial(rxPin, txPin);
void setup() {
Serial.begin(57600);
mySerial.begin(9600);
}
void loop() {
if (mySerial.available()) {
Serial.write(mySerial.read());
}
}
I open the serial monitor (set to 57600 baud) , and I should get some NMEA 0183 messages, but I don’t get anything. Clear screen.
The light is still blinking (is that the satellite fix indicator?)…
So, what have I done wrong?
Thanks.