Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2014 22:51
What would you like to do?
NMEA decoder and Airbot UBlox GPS working on Arduino Pro Mini 3.3V
#include <nmea.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX - change for your connections
NMEA nmeaDecoder(ALL);
void setup()
// Open serial communications and wait for port to open:
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
// set the data rate for the SoftwareSerial port
mySerial.begin(9600); // UBlox data rate is low by default
void loop() // run over and over
if (mySerial.available()) {
if (nmeaDecoder.decode( {
Serial.print("Lon: ");
Serial.print(", Lat: ");
Serial.print(", Speed: ");
Serial.print(", Course: ");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment