Difference between revisions of "GPS with Explore M3"
(Created page with "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 b...") |
(No difference)
|
Revision as of 14:01, 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.
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.