Line 1: Line 1:
 
[[category:Explore M3]]
 
[[category:Explore M3]]
 
In the serial communication tutorial, I had said that having multiple HW UARTs is very handy. So in this tutorial, we will be interfacing ublox  NEO6 based GPS module with one hardware serial port and log the data with the help of USB Serial.
 
In the serial communication tutorial, I had said that having multiple HW UARTs is very handy. So in this tutorial, we will be interfacing ublox  NEO6 based GPS module with one hardware serial port and log the data with the help of USB Serial.
 
+
[[File:Picture 5.jpg|none]]
 
Thanks to the [http://arduiniana.org/libraries/tinygpsplus/ TinyGPSplus] library, this was a piece of cake. I did make a couple of changes to use the HW serial port instead of soft serial and set the device baud rate to 9600 instead of 4800.
 
Thanks to the [http://arduiniana.org/libraries/tinygpsplus/ TinyGPSplus] library, this was a piece of cake. I did make a couple of changes to use the HW serial port instead of soft serial and set the device baud rate to 9600 instead of 4800.
 
You could see these lines commented in the code.
 
You could see these lines commented in the code.

Revision as of 14:13, 16 June 2016

In the serial communication tutorial, I had said that having multiple HW UARTs is very handy. So in this tutorial, we will be interfacing ublox NEO6 based GPS module with one hardware serial port and log the data with the help of USB Serial.

Picture 5.jpg

Thanks to the TinyGPSplus library, this was a piece of cake. I did make a couple of changes to use the HW serial port instead of soft serial and set the device baud rate to 9600 instead of 4800. You could see these lines commented in the code.

Hook Up

The hook was pretty straight forward as below:

Explore M3 GPS
5v VCC The module has onboard 3.3v regulator!
1 (Txd) Rxd Pin 1 of Explore M3 is connected to Receive pin of GPS
0 (Rxd) Txd Pin 0 of Explore M3 is connected to Transmit pin of GPS
GND GND The holy ground

Code

Demo

Although the weather was cloudy today, the GPS was quite accurate. You can fiddle around with the code to show number of satellites, time etc. Below is the log of latitude, longitude and time.