All Projects → sparkfun → Sparkfun_ublox_arduino_library

sparkfun / Sparkfun_ublox_arduino_library

Licence: other
Library to control UBX binary protocol and NMEA over I2C on Ublox GPS modules

Projects that are alternatives of or similar to Sparkfun ublox arduino library

Lora Serialization
LoraWAN serialization/deserialization library for The Things Network
Stars: ✭ 120 (+12.15%)
Mutual labels:  gps, arduino-library
ublox
Arduino and CMake library for communicating with uBlox GPS receivers.
Stars: ✭ 89 (-16.82%)
Mutual labels:  gps, arduino-library
Micronmea
A compact Arduino library to parse NMEA sentences.
Stars: ✭ 66 (-38.32%)
Mutual labels:  gps, arduino-library
Arduinowebsockets
arduinoWebSockets
Stars: ✭ 1,265 (+1082.24%)
Mutual labels:  arduino-library
Sparkfun bme280 arduino library
An Arduino library to control the BME280 humidity and pressure sensor.
Stars: ✭ 88 (-17.76%)
Mutual labels:  arduino-library
Gpslogger
📡 Lightweight GPS Logging Application For Android.
Stars: ✭ 1,348 (+1159.81%)
Mutual labels:  gps
Pagebuilder
An arduino library to create html string in the sketch for ESP8266/ESP32 WebServer.
Stars: ✭ 104 (-2.8%)
Mutual labels:  arduino-library
Fpm
Arduino library for the R30x/ZFMxx/FPMxx optical fingerprint sensors
Stars: ✭ 79 (-26.17%)
Mutual labels:  arduino-library
Augmentedgaussianprocesses.jl
Gaussian Process package based on data augmentation, sparsity and natural gradients
Stars: ✭ 99 (-7.48%)
Mutual labels:  gps
Meshtastic Device
Device code for the Meshtastic ski/hike/fly/customizable open GPS radio
Stars: ✭ 1,331 (+1143.93%)
Mutual labels:  gps
Geogeometry
GeoGeometry is a set of algorithms and functions for manipulating geo hashes and geometric shapes with geo coordinates.
Stars: ✭ 94 (-12.15%)
Mutual labels:  gps
Wifiespnow
ESP-NOW Arduino library for ESP8266 and ESP32
Stars: ✭ 90 (-15.89%)
Mutual labels:  arduino-library
Loose Gnss Imu
Loosely coupled integration of GNSS and IMU
Stars: ✭ 97 (-9.35%)
Mutual labels:  gps
Location
Smartphone navigation positionning, fusion GPS and IMU sensors.
Stars: ✭ 87 (-18.69%)
Mutual labels:  gps
Arduino vcc
Arduino library to read VCC supply level without external components
Stars: ✭ 101 (-5.61%)
Mutual labels:  arduino-library
Beelan Lorawan
A LoRaWAN library for compatible arduino board
Stars: ✭ 87 (-18.69%)
Mutual labels:  arduino-library
Noodle Synth
A User-friendly Arduino/Teensy/ESP8266 Library to play MIDI files with infinite polyphonic notes with full control over volume, pitch, and . . . music. No shields needed(Just a speaker).
Stars: ✭ 99 (-7.48%)
Mutual labels:  arduino-library
Phpgpx
Simple library for reading and creating GPX files written in PHP.
Stars: ✭ 92 (-14.02%)
Mutual labels:  gps
Phpgeo
Simple Yet Powerful Geo Library for PHP
Stars: ✭ 1,306 (+1120.56%)
Mutual labels:  gps
Arduino Sdi 12
An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
Stars: ✭ 97 (-9.35%)
Mutual labels:  arduino-library

SparkFun u-blox Arduino Library

Please note: this library is now deprecated. Please migrate to the new SparkFun u-blox GNSS Arduino Library.

You can find details on how to migrate to v2.0 here.

You can install v2.0 via the Arduino Library Manager. Search for SparkFun u-blox GNSS.

SparkFun GPS-RTK2 - ZED-F9P (GPS-15136) SparkFun GPS-RTK - NEO-M8P-2 (GPS-15005) SparkFun ZOE-M8Q Breakout (GPS-15193) SparkFun SAM-M8Q Breakout (GPS-15210) SparkFun NEO-M9N Breakout (GPS-15733)

U-blox makes some incredible GPS receivers covering everything from low-cost, highly configurable modules such as the SAM-M8Q all the way up to the surveyor grade ZED-F9P with precision of the diameter of a dime. This library focuses on configuration and control of u-blox devices over I2C (called DDC by u-blox) and Serial. The UBX protocol is supported over both I2C and serial, and is a much easier and lighterweight interface to a GPS module. Stop parsing NMEA data! And simply ask for the datums you need.

This library can be installed via the Arduino Library manager. Search for SparkFun u-blox GNSS.

Although not an integrated part of the library, you will find an example of how to communicate with the older series 6 and 7 modules in the examples folder.

Max (400kHz) I2C Support

To achieve 400kHz I2C speed please be sure to remove all pull-ups on the I2C bus. Most, if not all, u-blox modules include pull ups on the I2C lines (sometimes called DDC in their manuals). Cut all I2C pull up jumpers and/or remove them from peripheral boards. Otherwise, various data glitches can occur. See issues 38 and 40 for more information. If possible, run the I2C bus at 100kHz.


Want to help? Please do! We are always looking for ways to improve and build out features of this library.

  • We are always interested in adding SPI support with a checkUbloxSPI() function

Thanks to:

  • trycoon for fixing the lack of I2C buffer length defines.
  • tve for building out serial additions and examples.
  • Redstoned and davidallenmann for adding PVT date and time.
  • wittend for pointing out the RTCM print bug.
  • Big thanks to PaulZC for implementing the combined key ValSet method, geofence functions, better saveConfig handling, as well as a bunch of small fixes.
  • RollieRowland for adding HPPOSLLH (High Precision Geodetic Position).
  • tedder for moving iTOW to PVT instead of HPPOS and comment cleanup.
  • grexjmo for pushing for a better NMEA sentence configuration method.
  • averywallis for adding good comments to the various constants.
  • blazczak and geeksville for adding support for the series 6 and 7 modules.
  • [email protected] for adding powerOff and powerOffWithInterrupt.
  • dotMorten for the MSGOUT keys, autoHPPOSLLH, autoDOP and upgrades to autoPVT.
  • markuckermann for spotting the config layer gremlins
  • vid553 for the Zephyr port
  • balamuruganky for the NAV-PVT velocity parameters, getSpeedAccEst, getHeadingAccEst, getInvalidLlh, getHeadVeh, getMagDec and getMagAcc
  • nelarsen for the buffer overrun improvements
  • mstranne and shaneperera for the pushRawData suggestion
  • rubienr for spotting the logical AND issues

Need a Python version for Raspberry Pi? Checkout the Qwiic Ublox GPS Py module.

Need a library for the u-blox and Particle? Checkout the Particle library fork.

Need a C++ version which runs on Linux? Checkout the Ublox_Linux_Library.

Contributing

If you would like to contribute to this library: please do, we truly appreciate it, but please follow these guidelines. Thanks!

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.
  • CONTRIBUTING.md - Guidelines on how to contribute to this library.
  • Theory.md - provides detail on how data is processed by the library.

Documentation

Polling vs. Auto-Reporting

This library supports two modes of operation for getting navigation information with the getPVT function (based on the UBX_NAV_PVT protocol packet): polling and auto-reporting.

The standard method is for the sketch to call getPVT (or one of the getLatitude, getLongitude, etc. methods) when it needs a fresh navigation solution. At that point the library sends a request to the GPS to produce a fresh solution. The GPS then waits until the next measurement occurs (e.g. once per second or as set using setNavigationFrequency) and then sends the fresh data. The advantage of this method is that the data received is always fresh, the downside is that getPVT can block until the next measurement is made by the GPS, e.g. up to 1 second if the nav frequency is set to one second.

An alternate method can be chosen using setAutoPVT(true) which instructs the GPS to send the navigation information (UBX_NAV_PVT packet) as soon as it is produced. This is the way the older NMEA navigation data has been used for years. The sketch continues to call getPVT as before but under the hood the library returns the data of the last solution received from the GPS, which may be a bit out of date (how much depends on the setNavigationFrequency value).

The advantage of this method is that getPVT does not block: it returns true if new data is available and false otherwise. The disadvantages are that the data may be a bit old and that buffering for these spontaneus UBX_NAV_PVT packets is required (100 bytes each). When using Serial the buffering is an issue because the std serial buffer is 32 or 64 bytes long depending on Arduino version. When using I2C the buffering is not an issue because the GPS device has at least 1KB of internal buffering (possibly as large as 4KB).

As an example, assume that the GPS is set to produce 5 navigation solutions per second and that the sketch only calls getPVT once a second, then the GPS will queue 5 packets in its internal buffer (about 500 bytes) and the library will read those when getPVT is called, update its internal copy of the nav data 5 times, and return true to the sketch. The sketch calls getLatitude, etc. and retrieve the data of the most recent of those 5 packets.

The library also supports:

  • autoHPPOSLLH
  • autoDOP
  • autoHNRAtt
  • autoHNRDyn
  • autoHNRPVT

Memory Usage

Version 1.8.9 introduced support for autoHNR on the NEO-M8U, and that tipped the balance in terms of RAM use on the ATmega328. The library does still run on the ATmega328 but you will see Low memory available, stability problems may occur warnings as the global variables now occupy 1540 bytes of RAM. If you do want to run this library on the ATmega328, you may need to regress to Version 1.8.8 via the Library Manager.

Products That Use This Library

  • GPS-16481 - SparkFun GPS-RTK-SMA Breakout - ZED-F9P (Qwiic)
  • GPS-15136 - SparkFun GPS-RTK2 Board - ZED-F9P (Qwiic)
  • GPS-15005 - SparkFun GPS-RTK Board - NEO-M8P-2 (Qwiic)
  • GPS-15210 - SparkFun GPS Breakout - Chip Antenna, SAM-M8Q (Qwiic)
  • GPS-15193 - SparkFun GPS Breakout - Chip Antenna, ZOE-M8Q (Qwiic)
  • GPS-15733 - SparkFun GPS Breakout - NEO-M9N, Chip Antenna (Qwiic)
  • GPS-15712 - SparkFun GPS Breakout - NEO-M9N, U.FL (Qwiic)
  • GPS-16329 - SparkFun GPS Dead Reckoning Breakout - NEO-M8U (Qwiic)
  • SPX-14980 - SparkX GPS-RTK Black
  • SPX-15106 - SparkX SAM-M8Q

License Information

This product is open source!

Various bits of the code have different licenses applied. Anything SparkFun wrote is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].