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

New Tiny Arcade - Assembly Instructions (With Rev5 Boards)
New Tiny Arcade - Assembly Instructions (With Rev5 Boards)

by TinyCircuits Staff January 15, 2019

We are super excited to release our latest version of the beloved Tiny Arcade kit! This assembly tutorial features our...

View full article →

Command Servo Motors from your Phone using Bluetooth
Command Servo Motors from your Phone using Bluetooth

by TinyCircuits Staff December 27, 2018

Using a TinyZero, Bluetooth TinyShield, Servo TinyShield, and a servo along with a handy dandy iOS or Android app, you...

View full article →

Tiny Screen Video(TSV) Converter Install for macOS
Tiny Screen Video(TSV) Converter Install for macOS

by Laverena Wienclaw December 19, 2018

In this tutorial we'll talk about how you can get a Windows application running on your Mac (for free) using Wine...

View full article →