An Arduino library for the UBlox GPS EVA7M
Switch branches/tags
Clone or download
Kees Bakker
Kees Bakker Bump version to 0.9.4
Latest commit 9fe53e1 Dec 7, 2017


Arduino library for using the UBlox EVA7M.


Quick example:

#include <Arduino.h>
#include <Sodaq_UBlox_GPS.h>

#define MySerial        SERIAL_PORT_MONITOR

void setup()
    while (!SerialUSB) {
        // Wait for USB to connect


    MySerial.println("SODAQ LoRaONE test_gps is starting ...");


void loop()
    MySerial.println("waiting in loop() ...");
    // Try to get a GPS scan and when we get a fix we print our location. We are
    // passing true to keep the GPS enabled after a scan
    if (sodaq_gps.scan(true))
      MySerial.print("We are at latitude ");
      MySerial.print(sodaq_gps.getLat(), 13);
      MySerial.print(" longitude ");
      MySerial.print(sodaq_gps.getLon(), 13);
      MySerial.print(" altitude ");
      MySerial.print(sodaq_gps.getAlt(), 1);
      MySerial.print(" and HDOP ");
      MySerial.println(sodaq_gps.getHDOP(), 2);
Method Description
init (int8_t enable_pin) Initializes the UBlox, and switches it on.
scan (bool leave_on=false, uint32_t timeout=20000) Scans all NMEA messages until lat/long is seen. It returns true when a fix is found.


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request


Copyright (c) 2016 SODAQ. All rights reserved.

This file is part of Sodaq_UBlox_GPS.

Sodaq_UBlox_GPS is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or(at your option) any later version.

Sodaq_UBlox_GPS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Sodaq_UBlox_GPS. If not, see