GNSS Timing Breakout - ZED-F9T (Qwiic) Hookup Guide

Pages
Contributors: Nate, El Duderino
Favorited Favorite 1

Arduino Examples

Note: These examples assume the latest version of the Arduino IDE is used. If this is your first time using Arduino, please review our tutorials on Installing the Arduino IDE and Installing an Arduino Library.

The SparkFun u-blox GNSS Arduino Library includes a host of examples to get users started with everything from a simple position lock to configuring and taking advantage of most features of all u-blox boards SparkFun carries. In this section we'll take a closer look at the examples demonstrating how to set up and use both time pulse signals on the ZED-F9T.

Note: We support two versions of the SparkFun u-blox GNSS library. Version 2 and Version 3. Version 3 uses the u-blox Configuration Interface (VALSET and VALGET) to configure the module, instead of the deprecated UBX-CFG messages. For modules like the F9 and M10, we recommend upgrading to Version 3. However, older modules like the M8 do not support the Configuration Interface. For those you will need to keep using Version 2 of the library. We will continue to support both.

The SparkFun u-blox Arduino library can be downloaded with the Arduino library manager by searching 'SparkFun u-blox GNSS v3' or you can grab the zip here from the GitHub repository to manually install.

Time Pulse Parameters Example

The u-blox GNSS Arduino Library includes a set of three examples, "Example 23 - Time Pulse Parameters" for configuring and using the time pulse pins on the ZED-F9T and other u-blox modules capable of outputting time pulse signals. Open the examples by navigating to **File > Examples > SparkFun u-blox GNSS v3 > Basics > Example23_TimePulseParameters and select one of the three "sub" examples:

  • Example23_TimePulse_Period - Demonstrates how to change the time pulse parameters and configure the time pulse pin(s) to produce a 1 second pulse every 30 seconds.
  • Example23_TimePulse_Frequency - Shows how to adjust the time pulse parameters and configure the Time Pulse pin(s) to produce a 1kHz square wave.
  • Example23_TimePulse_BulletTime - Demonstrates how to configure the Time Pulse pin(s) to produce a pulse once per second with an adjustable delay. You could use this to trigger multiple cameras and replicate the "bullet time" effect.

Open one of the examples, select your Board and Port and upload the code. Open the serial monitor with the baud set to 115200 to view the print out and confirm the time pulse pin(s) was configured and settings saved properly.