Allows you to read the location from the GPS on your MKR GPS shield.

Go to repository


This library is compatible with the samd architecture so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.


To use this library, open the Library Manager in the Arduino IDE and install it from there.


The Arduino MKR ENV library allows you to read the information acquired through complex calculations by the Global Positioning System (GPS) receiver on the MKR GPS Shield. This library stores and manages the NMEA strings generated by the GPS receiver so that you can get directly the relevant information you need from the GPS.

To use this library:

#include <Arduino_MKRGPS.h>

The GPS on the MKR GPS Shield can be managed using the Serial1 interface at 9600 8n1. On that serial port you receive the raw messages that can be read using the syntax specified by the NMEA standard. You can manage the board with an I2C connection or through the header pins to an underlying MKR board. The library supports transparently each set up and you just need to specify the mode you are using with the proper begin() parameter.