Arduino Examples
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.
GPS Demo Circuit Example
We've written a quick example for the demo circuit from the Hardware Assembly section using the SparkFun GPS
Breakout - ZEO-M8Q (Qwiic) to showcase how to log data from the GPS module to a µSD card. To assemble the
circuit, simply plug in your GPS module to the Data Logging Carrier Board via a Qwiic cable and attach the GPS
Antenna to the board using a u.Fl to SMA Adapter. If you've never worked with u.Fl connectors before this tutorial
offers a few quick tips for using them. Also, the SparkFun u-blox Arduino library works with all of our u-blox
modules so you can swap in a different u-blox GPS if you prefer.
In order to run this example you will need to have the SparkFun U-blox Arduino library installed. You can install it
with the Arduino Library Manager by searching
'SparkFun Ublox'
or you can download the zip here from the
SPARKFUN U-BLOX ARDUINO LIBRARY (ZIP)
Copy the code below into a blank Arduino sketch, select your Processor Board (for the demo circuit we select,
"SparkFun Artemis MicroMod") and the Port your board has enumerated on. If you are not using the MicroMod
Artemis Processor, you'll need to adjust the define for Chip Select: