Hello!
I am trying to get GPS location data with my Neo 6MV2 and Arduino Pro Mini 3.3V. I get perfectly fine NMEA messages from the Neo board in the serial monitor, but it never finds a GPS fix. I've had it lay under open, clear sky for an hour without any result. Does anyone have a clue to what's wrong?
Connections goes as following. The Neo board operates at 2.7-3.6V, just as the Arduino.
Neo-6M --> Arduino
VCC --> VCC
GND --> GND
RX --> 3
TX --> 4
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 9600;
// The TinyGPS++ object
TinyGPSPlus gps;
// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);
void setup(){
Serial.begin(9600);
ss.begin(GPSBaud);
}
void loop(){
while (ss.available() > 0){
gps.encode(ss.read());
Serial.print("Latitude= ");
Serial.print(gps.location.lat(), 6);
Serial.print(" Longitude= ");
Serial.println(gps.location.lng(), 6);
delay(1000);
}
}
The result is just
Latitude= 0.000000 Longitude= 0.000000
Latitude= 0.000000 Longitude= 0.000000
Latitude= 0.000000 Longitude= 0.000000
... in perpetuity