For this example, I used a Qwiic capable RedBoard and associated USB cable. connecting the boards with Qwiic
cable, the assembly is very simple. Plug a Qwiic cable between the RedBoard and the SparkFun NEO-M9N with
chip antenna and that's it! Just as easily I could have used the version with the U.FL connector and plugged in one
of our patch antennas to the GPS board. If you need tips on plugging in the U.FL connector, then check out our
U.FL tutorial. If you're going to be soldering to the through hole pins for I C functionality, then just attach lines to
power, ground, and the I C data lines to a microcontroller of your choice.
SparkFun U-Blox Library
Note: This example assumes you are using the latest version of the Arduino IDE on your desktop. If this is
your first time using Arduino, please review our tutorial on installing the Arduino IDE. If you have not
previously installed an Arduino library, please check out our installation guide.
All of our u-blox based GPS boards share the same library: these two boards, their predeccesors and the higher
precision u-blox cousins. The SparkFun U-blox Arduino library can be downloaded with the Arduino library
manager by searching 'SparkFun Ublox' or you can grab the zip here from the GitHub repository to manually
install.:
There are 13 example sketches provided to get you up and receiving messages from space. We'll go over one of
the examples in this tutorial.
Note: Example 2 uses the 'MicroNMEA' library by Steve Marple. Make sure to install the library as well by
searching for it in the Arduino library manager. You could also grab the zip here from the GitHub repository to
manually install.
Example Code
We're just going to look at example two (i.e. "Example2_NMEAParsing.ino") which in my opinion, makes it clear
the awesomeness of these GPS receivers. That is to say, talking to satellites and finding out where in the world
you are.
2
SPARKFUN U-BLOX ARDUINO LIBRARY (ZIP)
MICRONMEA ARDUINO LIBRARY (ZIP)
2
Need help?
Do you have a question about the NEO-M9N and is the answer not in the manual?
Questions and answers