You Are Here: Home » Blog » Electronics News Updates » Collecting GPS Data Using GPS Module With Windows IoT

Collecting GPS Data Using GPS Module With Windows IoT




Story

In this tutorial we will demonstrate how GPS data can be collected from a serial GPS module. We are using an Andoer u-Blox NEO-6M GPS module, which has excellent GPS capabilities. One of the NEMA sentences that it collects includes the GPGGA sentence which provides essential fix data. We’ll show you how to develop an application that will collect the serial data in the form of a sentence, which is then parsed using our custom parser to extract the essential GPS data.

Come along and let’s do some Regex!!

First of all, connect the GPS breakout board to the Raspberry Pi 3B, as shown in the schematics. Then, launch a Visual Studio instance and create a Blank Application (Universal Windows).Collecting GPS Data Using GPS Module With Windows IoT

Your brand new UWP application will launch for edit in Visual Studio. You’ll notice an empty design palette to begin with that is MainPage.xaml. If you look in the code behind file you’ll see the MainPage class which has  a default constructor. Basically, this is where the program enters for execution when launched. Now let’s add some design elements into the MainPage and make it look nice. Below is the design we put together for use in this tutorial:

You’ll want to enable Windows IoT Capabilities by right-clicking the References from the Solution Explorer and choosing ‘Add Reference’. Then, select Universal Windows >> Extensions >> Windows IoT Extensions for UWP, and finally click ‘OK’.

Don’t forget to provide Serial Capabilities to the UWP app by opening the Package.appmanifest file and adding these lines:

<Capabilities>

<DeviceCapability Name=”serialcommunication”>

<Device Id=”any”>

<Function Type=”name:serialPort” />

</Device>

</DeviceCapability>

</Capabilities>

For more detail: Collecting GPS Data Using GPS Module With Windows IoT

Leave a Comment

You must be logged in to post a comment.

Read previous post:
An isolated analog output for Arduino Uno
An isolated analog output for Arduino Uno

This project uses the Arduino PWM Uno or other systems to realize a fully isolated analog output with a range...

Close
Scroll to top