Go Down

Topic: MKR GPS Shield always initialised but not working (Read 434 times) previous topic - next topic

ttan_

Hi all,
pretty new to Arduino but already had few successful projects.

I'm working on a GPS tracing device based on the MKR Fox1200 for the connection and - because I'm lazy - I though of using the MKR GPS Shield on top of it.

The GPS shield though is not working at all - even using demo code from the guide - and funny enough, GPS.begin() always return true, even when there's no shield attached.

Does anyone has a hint of the massive problem that I'm missing? (or maybe I was lucky to get a defected one?)

jscott293

I use the GPS with out problems. The antenna is not very good and it will not really lock on if I'm inside but outside it works good 20 seconds from off I have a location.

Code: [Select]
const byte intGPS = 7;
if (statusGPS == 0) {
    if (GPS.begin(GPS_MODE_SHIELD)) {
        statusGPS = 1;
        DEBUG_PRINTLN(F("GPS Started"));
    } else {
        GPS.standby();
        GPS.end();
        pinMode(intGPS, OUTPUT); //Library Does not Handle this properly
        digitalWrite(intGPS, LOW); //Shuts down GPS Module
        statusGPS = -1;
        faultGPS();
        DEBUG_PRINTLN(F("GPS Failed To Start"));
        }
}
//Wait for Location
if (statusGPS == 1) {
    if (GPS.available()) {
        latitudeGPS = GPS.latitude();
        longitudeGPS = GPS.longitude();
        statusGPS = 2;
        DEBUG_PRINT(F("GPS Latitude: "));
        DEBUG_PRINTLN(latitudeGPS);
        DEBUG_PRINT(F("GPS Longitude: "));
        DEBUG_PRINTLN(longitudeGPS);
    }
}
//Shutdown GPS after saving location
if (statusGPS == 2) {
    GPS.standby();
    GPS.end();
    pinMode(intGPS, OUTPUT); //Library Does not Handle this properly
    digitalWrite(intGPS, LOW); //Shuts down GPS Module
    statusGPS = 3;
    DEBUG_PRINTLN(F("GPS Shutdown"));
};

miot_es

Hello, did you change?
(! GPS.begin ()) by
(! GPS.begin (GPS_MODE_SHIELD))

Regards.

philipdbrown

Hey, all.  I too am experiencing this same issue.  Nothing is being reported from the console.  Very frustrating.  I'm using the MKR WiFi 1010 and the MKR GPS Shield connected via the I2C cable.  Let me know if you have found a solution.

Go Up