GPS Application Guide

From Flowcode Help
Revision as of 10:59, 1 September 2014 by LeighM (talk | contribs) (Created page with " == Introduction == These examples demonstrate the use of the Flowcode GPS (Global Positioning System) component. In particular they make use of the EB056 E-blocks GPS boar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

These examples demonstrate the use of the Flowcode GPS (Global Positioning System) component.

In particular they make use of the EB056 E-blocks GPS board, connected to an EB006 E-blocks PICmicro multiprogrammer fitted with a 16F1937 microprocessor.

However, the examples are easily changed in Flowcode to support other microprocessors and platforms.

The Matrix TSL EB765SI6 Easy GPS bundle has all the items required for these sample applications and is an ideal introduction to Global Positioning System technology.


Setting up the project hardware

Connect the E-Blocks as indicated in the table below.

The GPS, LCD and Switch E-Blocks all need to be powered via wire connections to the +V on the EB006.

Hardware Setup
EB006 PICmicro multiprogrammer
EB004 E-blocks LED board Port A
EB005 E-blocks LCD board Port B
EB056 E-blocks GPS board Port C
EB007 E-blocks push-to-make switch board Port D


Example 1: GPS Time and Date Example

FC6 Icon.png GPS Time and Date Example

Example 1 demonstrates using a GPS receiver to collect time and date information. The GPS data is automatically fed into the UART on the microcontroller by the GPS receiver hardware.

Every time the microcontroller receives a byte from the GPS it automatically adds the byte to the incoming buffer ready to be processed. When a carriage return is detected signifying the end of a message string the string data is parsed into separate values which are saved by the Flowcode component.

Calling the read functions of the Flowcode GPS component then retrieves the values for further processing and display.