Tutorial 6

How to parse NS-HP NMEA message in Arduino Uno and Raspberry Pi.

 

Introduction

SkytraqNmeaParser is a C++ library for parsing NMEA data streams provided by SkyTraq GPS/GNSS modules.

This library provides position, date, time, altitude, speed, course , satellites information and  RTK information from SkyTraq GPS/GPS devices. In this tutorial we are going to use an Arduino Uno or Raspberry Pi to receive NMEA data stream from NS-HP, and display position and RTK status in console. A Bluetooth Serial Link is necessary in this tutorial for input RTCM message to NS-HP.

 

Breakout Wiring

For Arduino Uno

Arduino Uno 3.3V - NS-HP (RFVCC33, VCC33, VBAT) - Bluetooth Serial Link (VCC33, PIO2)

Arduino Uno GND - NS-HP (RFGND, GND) - Bluetooth Serial Link (GND, PIO3, PIO4)

Arduino Uno RX - Arduino Digital Pin 2 - NS-HP TX1

NS-HP TX2 - Bluetooth Serial Link TX

NS-HP RX2 - Bluetooth Serial Link RX

NS-HP STS - LED - 220 Ohms resistor - GND

 

For Raspberry Pi

Raspberry Pi 3.3V - NS-HP (RFVCC33, VCC33, VBAT) - Bluetooth Serial Link (VCC33, PIO2)

Raspberry Pi GND - NS-HP (RFGND, GND) - Bluetooth Serial Link (GND, PIO3, PIO4)

Raspberry Pi RX - NS-HP TX1

NS-HP TX2 - Bluetooth Serial Link TX

NS-HP RX2 - Bluetooth Serial Link RX

NS-HP STS - LED - 220 Ohms resistor - GND

 

The Sketch

For Arduino Uno

Download the NavSpark Example Code Files from our Resources page and open the SkyTraq NMEA Parser demo for Arduino Uno (SkytraqNmeaParserUno)


For Raspberry Pi

Download the NavSpark Example Code Files from our Resources page and open the SkyTraq NMEA Parser demo for Raspberry Pi (SkytraqNmeaParserPi). In this sketch, we use arduPi from cooking-hacks.com is a C++ library that lets you write programs for Raspberry Pi as if you were writing an arduino program. 


 

The Sketch in Action

This demo will show the NMEA data streams parsing result in console.

Result.jpg