Using the GPS TinyShield Tutorial

by TinyCircuits Staff February 19, 2016

Using the GPS TinyShield Tutorial

Overview

Check out the TinyShield GPS product page for a description and pinout! This tutorial will demonstrate how to use the TinyShield once you've set up your TinyDuino or TinyScreen+.


Powering the System

The Telit JF2 module draws between 25mA – 50mA when operating (not in hibernate mode), so a coin cell battery is not sufficient to run this board- a lithium polymer battery or USB power is required. The GPS TinyShield includes a local voltage regulator and level shifters, and can operate from 3 to 5 volts.


Using the GPS TinyShield

Upon power up, the GPS is in hibernate mode. To wake up the module, a low-to-high pulse is needed on the ON-OFF pin of the module, which is connected to the Arduino A3 pin.

After waking, the module will start to send NMEA data once per second through the serial data interface attached to pins A0 and A1. This data can be logged directly or the time, date, location, speed, and altitude information can be interpreted and used within your software.

The system can also be put back into hibernate mode with a pulse on the ON-OFF pin again.

These necessary functions along with pin definitions and basic helper functions are provided in a GPS.h header file in each of our examples. Use of this header might look like:

GPS.h Usage

Where gpsInitPins(), gpsOn(), and gpsConfig() are functions provided in GPS.h

Additionally included is the SoftwareSerialZero library for Arduino Zero based platforms like TinyScreen+.


Example

Our basic example shows how to receive and log or display NMEA strings from the GPS module. During startup, the code will try to initialize an optional micro SD card in our standard SD TinyShield. If it fails, it will revert to displaying the NMEA strings. These strings can be viewed in the Serial Monitor:

GPS Logger Serial Monitor

Download it here.

If your application needs to interpret and use the GPS data directly, we've tested with the TinyGPS library and provide a modified version that works with our hardware available here.



TinyCircuits Staff
TinyCircuits Staff

Author



Also in Learn

TinyZero Accelerometer BMA250 Internet of Things Project with Cayenne
TinyZero Accelerometer BMA250 Internet of Things Project with Cayenne

by Laverena Wienclaw November 21, 2018

In this tutorial, we will use Cayenne to capture some accelerometer readings on their nice Internet of Things dashboard

View full article →

TinyZero Setup Tutorial
TinyZero Setup Tutorial

by Laverena Wienclaw November 21, 2018

Ready to get started with your new TinyCircuits product? This tutorial will cover basic setup of the TinyZero.

View full article →

Using the TinyZero Accelerometer
Using the TinyZero Accelerometer

by Laverena Wienclaw November 21, 2018

This tutorial will guide you through reading values from the Accelerometer that can be populated on the TinyZero

View full article →