RoboShala
  • Home
    • Home #1
      • Infinite Scroll Load More
      • Infinite Load More Posts
      • Home Featured Video
      • Body Boxed Image
      • Body Boxed Color
      • Home with Left Sidebar
      • Home with Sticky Sidebar
      • Standard Layout
      • Classic Layout
    • Home #2
      • Grid Layout
      • Grid with Sidebar
      • Grid 2 Columns Layout
      • List Layout
      • Masonry Layout
      • Masonry with Sidebar
      • Masonry 2 Columns Layout
      • Boxed Layout
      • Overlay Layout
    • Home #3
      • Mixed Layout
      • Mixed Style 2 Layout
      • Photography Layout
      • Magazine Layout 1
      • Magazine Layout 2
      • Magazine Layout 3
      • 1st Overlay Then Grid
      • 1st Overlay Then List
      • 1st Standard Then Grid
    • Home #4
      • 1st Standard Grid Sidebar
      • 1st Standard Then Grid 2
      • 1st Standard Then List
      • 1st Standard Then Boxed
      • 1st Classic Then Grid
      • 1st Classic Grid Sidebar
      • 1st Classic Then Grid 2
      • 1st Classic Then List
      • 1st Classic Then Boxed
  • Sliders
    • Slider #1
      • Home with Slider 1
      • Home with Slider 2
      • Home with Slider 3
      • Home with Slider 4
      • Home with Slider 5
      • Home with Slider 6
      • Home with Slider 7
      • Home with Slider 8
      • Home with Slider 9
    • Slider #2
      • Home with Slider 10
      • Home with Slider 11
      • Home with Slider 12
      • Home with Slider 13
      • Home with Slider 14
      • Home with Slider 15
      • Home with Slider 16
      • Home with Slider 17
      • Home with Slider 18
    • Slider #3
      • Home with Slider 19
      • Home with Slider 20
      • Home with Slider 21
      • Home with Slider 22
      • Home with Slider 23
      • Home with Slider 24
      • Home with Slider 25
      • Home with Slider 26
      • Home with Slider 27
    • Slider #4
      • Home with Slider 28
      • Home with Slider 29
      • Home with Slider 30
      • Home with Slider 35
      • Home with Slider 36
      • Home with Slider 37
      • Home with Slider 38
      • Home Penci Slider 1
      • Home Penci Slider 2
  • Features
    • Post Templates
      • Template Style 1
      • Template Style 2
      • Template Style 3
      • Style 3 with Parallax
      • Template Style 4
      • Style 4 with Parallax
      • Template Style 5
      • Style 5 with Parallax
      • Template Style 6
      • Style 6 with Parallax
      • Template Style 7
      • Style 7 with Parallax
      • Template Style 8
      • Style 8 with Parallax
      • Template Style 9
      • Style 9 with Parallax
      • Template Style 10
      • Style 10 with Parallax
    • Headers
      • Header Style 1
      • Header Style 2
      • Header Style 3
      • Header Style 4 (Centerd)
      • Header Style 5 (Centerd)
      • Header Style 6
      • Header Style 7
      • Header Style 8
      • Header Style 9
    • Menu Item Style 2
    • Real Awesome Gallery
    • Post Formats
      • Standard Post
      • Gallery Post
      • Video Post
        • Youtube Post
        • Vimeo Post
      • Audio Post
        • Soundcloud Audio
        • Self-hosted Audio
      • Quote Post
      • Link Post
    • Pages
      • About me
      • Contact
      • Page Left Sidebar
      • Page Full Width
      • Page 404
    • Typography
  • Tech Update
    • Esp8266

      Sending Data from ESP8266 NodeMCU to Google Drive

      May 10, 2018

      Esp8266

      NodeMCU Pinout

      February 11, 2018

      Esp8266

       IOT theft Notification Using Blynk : Door Status

      October 14, 2017

      Esp8266

      Make NodeMCU ESP Web Server

      September 23, 2017

      Esp8266

      Control NodeMCU using Android App

      September 23, 2017

  • VR & Future
  • Portfolio
    • Masonry 3 Columns
    • Masonry 2 Columns
    • Masonry with Sidebar
    • Grid 3 Columns
    • Grid with Sidebar
    • Grid 2 Columns
    • Single Portfolio
  • Shop

RoboShala

  • Home
    • Home #1
      • Infinite Scroll Load More
      • Infinite Load More Posts
      • Home Featured Video
      • Body Boxed Image
      • Body Boxed Color
      • Home with Left Sidebar
      • Home with Sticky Sidebar
      • Standard Layout
      • Classic Layout
    • Home #2
      • Grid Layout
      • Grid with Sidebar
      • Grid 2 Columns Layout
      • List Layout
      • Masonry Layout
      • Masonry with Sidebar
      • Masonry 2 Columns Layout
      • Boxed Layout
      • Overlay Layout
    • Home #3
      • Mixed Layout
      • Mixed Style 2 Layout
      • Photography Layout
      • Magazine Layout 1
      • Magazine Layout 2
      • Magazine Layout 3
      • 1st Overlay Then Grid
      • 1st Overlay Then List
      • 1st Standard Then Grid
    • Home #4
      • 1st Standard Grid Sidebar
      • 1st Standard Then Grid 2
      • 1st Standard Then List
      • 1st Standard Then Boxed
      • 1st Classic Then Grid
      • 1st Classic Grid Sidebar
      • 1st Classic Then Grid 2
      • 1st Classic Then List
      • 1st Classic Then Boxed
  • Sliders
    • Slider #1
      • Home with Slider 1
      • Home with Slider 2
      • Home with Slider 3
      • Home with Slider 4
      • Home with Slider 5
      • Home with Slider 6
      • Home with Slider 7
      • Home with Slider 8
      • Home with Slider 9
    • Slider #2
      • Home with Slider 10
      • Home with Slider 11
      • Home with Slider 12
      • Home with Slider 13
      • Home with Slider 14
      • Home with Slider 15
      • Home with Slider 16
      • Home with Slider 17
      • Home with Slider 18
    • Slider #3
      • Home with Slider 19
      • Home with Slider 20
      • Home with Slider 21
      • Home with Slider 22
      • Home with Slider 23
      • Home with Slider 24
      • Home with Slider 25
      • Home with Slider 26
      • Home with Slider 27
    • Slider #4
      • Home with Slider 28
      • Home with Slider 29
      • Home with Slider 30
      • Home with Slider 35
      • Home with Slider 36
      • Home with Slider 37
      • Home with Slider 38
      • Home Penci Slider 1
      • Home Penci Slider 2
  • Features
    • Post Templates
      • Template Style 1
      • Template Style 2
      • Template Style 3
      • Style 3 with Parallax
      • Template Style 4
      • Style 4 with Parallax
      • Template Style 5
      • Style 5 with Parallax
      • Template Style 6
      • Style 6 with Parallax
      • Template Style 7
      • Style 7 with Parallax
      • Template Style 8
      • Style 8 with Parallax
      • Template Style 9
      • Style 9 with Parallax
      • Template Style 10
      • Style 10 with Parallax
    • Headers
      • Header Style 1
      • Header Style 2
      • Header Style 3
      • Header Style 4 (Centerd)
      • Header Style 5 (Centerd)
      • Header Style 6
      • Header Style 7
      • Header Style 8
      • Header Style 9
    • Menu Item Style 2
    • Real Awesome Gallery
    • Post Formats
      • Standard Post
      • Gallery Post
      • Video Post
        • Youtube Post
        • Vimeo Post
      • Audio Post
        • Soundcloud Audio
        • Self-hosted Audio
      • Quote Post
      • Link Post
    • Pages
      • About me
      • Contact
      • Page Left Sidebar
      • Page Full Width
      • Page 404
    • Typography
  • Tech Update
    • Esp8266

      Sending Data from ESP8266 NodeMCU to Google Drive

      May 10, 2018

      Esp8266

      NodeMCU Pinout

      February 11, 2018

      Esp8266

       IOT theft Notification Using Blynk : Door Status

      October 14, 2017

      Esp8266

      Make NodeMCU ESP Web Server

      September 23, 2017

      Esp8266

      Control NodeMCU using Android App

      September 23, 2017

  • VR & Future
  • Portfolio
    • Masonry 3 Columns
    • Masonry 2 Columns
    • Masonry with Sidebar
    • Grid 3 Columns
    • Grid with Sidebar
    • Grid 2 Columns
    • Single Portfolio
  • Shop
Beginners GuideSensors/Modules

Arduino GPS Module Interface

by Alok Shaw October 10, 2017
written by Alok Shaw October 10, 2017
Arduino GPS Module Interface

There are like a ton of projects that can be made using GPS module with Arduino, to name some are GPS logger, Car Tracker, path tracker and many more. In this tutorial we will learn to interface Arduino with U-Blox Neo6M V2 GPS module( if you don’t have this particular module then no need to worry you can still follow this tutorial with any GPS module that have Serial Communication.)

Components Required:

  • Arduino Uno
  • GPS Module Neo6M V2 (or other)
  • Jumper Wires

If you look at your GPS module it have generally 4 pins: VCC, GND,TX and RX. These modules usually communicate over simple serial connection like RS232 that is the exact protocol which Arduino uses for serial communication, so we will simply use “Serial.being” to read the module data.The module is very simple and it just splits continuously NMEA (National Marine Electronics Association) data strings to the TX pin.

Here, we will first go through reading data from GPS module by just using serial communication and later on look at the dedicated libraries like TinyGPS++ and see how it breaks down the raw GPS data to the one needed  for our projects like latitude, longitude, time, number of satellites and others.

Connection:

Arduino Uno GPS Module
3 RX
4 TX
5V VCC
Gnd GND

 

Code : Getting RAW data from GPS

Ublox NEO-6M GPS Module has build in EEPROM and comes with ceramic antenna. It use Rs232 TTL interface and operates on 3-5V supply with default Baudrate of 9600bps. So, while coding we need to take care of the baudrate of serial communication between the two.

#include <SoftwareSerial.h>
 
static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 9600; //Baudrate of your GPS here
 
// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);
 
void setup()
{
  Serial.begin(115200); // Beginning the serial monitor at Baudrate 115200 and make sure you select same in serial monitor
  ss.begin(GPSBaud);
}
 
void loop()
{
  // Output raw GPS data to the serial monitor
  while (ss.available() > 0){
    Serial.write(ss.read());
  }
}

 

After uploading the above code you will get something similar to this on your serial monitor:

Here, you can see that the data is not in the format we want that is it is a kind of mess. So, we will now use a dedicated library for this and the most popular and precise is TinyGPS++ (Get this library)

Using TinyGPS++ library :

Step 1: First we have to include the TinyGPS++ library in our Arduino IDE. Go to the GitHub link shared above and download it. It’s a zip file, now extract it and copy it and paste to directory of Arduino IDE under the libraries folder.

Step2: Open Arduino IDE and under File navigate to Examples—TinyGPSPlus and upload any of those sample code. Here we are uploading <DeviceExample> code. Once, the code is uploaded open the serial monitor and you will find the data are now more readable like Location: Latitude, Longitude along with Date/Time.

Some things to take care:
  1. It takes for about half a minute or one to read the data by the GPS module initially when you run it, so do not panic for this it’s very usual.
  2. It happens in some case that it is unable to detect the data that might be the issue with antenna, so unplug the antenna( if it is detachable) and attach it again.
  3. If, code says “Check Connection”, then you should definitely check it twice, before giving up. Also, sometimes interchanging the TX and RX pins is preferable and surprisingly works.
So, here are some of the projects you can make now from the knowledge you gained right now.
  • GPS Car tracker
  • GPS Data logger
  • IOT GPS tracker

 

 

 

 

 

0 comment
0
FacebookTwitterGoogle +Pinterest
Alok Shaw

previous post
TV Remote Controlled Bot
next post
 IOT theft Notification Using Blynk : Door Status

Related Posts

Arduino With LCD Full Programming Tutorial

October 22, 2017

Control Relay with Arduino

October 3, 2017

SD Card Module with Arduino : Data Logger

October 3, 2017

Line Follower Robot

September 24, 2017

Reading LDR Value Arduino

September 23, 2017

Universal IR Reciever

September 23, 2017

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

Arduino

  • Arduino projects (14)
  • Basic Electronics (2)
  • Beginners Guide (4)
  • DIY Robots (9)
  • Esp8266 (8)
  • Featured (13)
  • Home Automation (7)
  • IOT (3)
  • IOT Projects (5)
  • Projects (1)
  • Raspberry pi (2)
  • Raspberry pi Basics (6)
  • Raspberry Pi Projects (1)
  • School Projects (1)
  • Sensors/Modules (6)
  • Smartphones (6)
  • Social Networks (7)
  • Starter Guide (7)
  • Uncategorized (4)
  • VR & Future (7)

Rasbperry pi

  • Arduino projects (14)
  • Basic Electronics (2)
  • Beginners Guide (4)
  • DIY Robots (9)
  • Esp8266 (8)
  • Featured (13)
  • Home Automation (7)
  • IOT (3)
  • IOT Projects (5)
  • Projects (1)
  • Raspberry pi (2)
  • Raspberry pi Basics (6)
  • Raspberry Pi Projects (1)
  • School Projects (1)
  • Sensors/Modules (6)
  • Smartphones (6)
  • Social Networks (7)
  • Starter Guide (7)
  • Uncategorized (4)
  • VR & Future (7)

IOT

  • Arduino projects (14)
  • Basic Electronics (2)
  • Beginners Guide (4)
  • DIY Robots (9)
  • Esp8266 (8)
  • Featured (13)
  • Home Automation (7)
  • IOT (3)
  • IOT Projects (5)
  • Projects (1)
  • Raspberry pi (2)
  • Raspberry pi Basics (6)
  • Raspberry Pi Projects (1)
  • School Projects (1)
  • Sensors/Modules (6)
  • Smartphones (6)
  • Social Networks (7)
  • Starter Guide (7)
  • Uncategorized (4)
  • VR & Future (7)

Keep in touch

Facebook Twitter Google + Instagram Pinterest Youtube Snapchat RSS

Recent Posts

  • ESP8266 WiFi Dimmer | Control the Speed of Fan using Smartphone

  • GSM Based Notice Board using Arduino and SIM900A

  • General Magic tried to invent a smartphone in the 1990s. This is why it failed.

  • The expensive education of Mark Zuckerberg and Silicon Valley this year

Categories

  • Arduino (22)
    • Beginners Guide (4)
    • DIY Robots (9)
    • Home Automation (7)
    • Sensors/Modules (6)
  • Basic Electronics (2)
  • Featured (13)
  • IOT (10)
    • Esp8266 (8)
  • Projects (20)
    • Arduino projects (14)
    • IOT Projects (5)
    • Raspberry Pi Projects (1)
    • School Projects (1)
  • Raspberry pi (13)
    • Raspberry pi Basics (6)
    • Starter Guide (7)
  • Smartphones (6)
  • Social Networks (7)
  • Uncategorized (4)
  • VR & Future (7)

IMPORTANT LINKS

  • About Us
  • Advertise with us
  • Disclaimer
  • Contact Us
  • RoboShala
  • Typography
  • Page Full Width
  • Portfolio 3 Columns
  • Portfolio 2 Columns
  • Portfolio with Sidebar
  • About Me
  • Contact
  • Grid 2 Columns
  • Grid 3 Columns
  • Grid with Sidebar
  • Gallery

Tags

Arduino arduino data logging web server arduino gsm control relay Arduino Projects arduino temperature logger wifi arduino wireless temperature sensor project blog esp8266 data logger esp8266 datasheet esp8266 direct connect esp8266 firebase tutorial esp8266 iot projects esp8266 iot server esp8266 mongodb esp8266 nodemcu pinout esp8266 pinout esp8266 send data to server esp8266 send data to thingspeak esp8266 send email esp8266 temperature esp8266 tutorial esp8266 web server graph gsm gsm based home automation abstract gsm based home automation ppt gsm based home automation project pdf gsm based home automation using 8051 microcontroller gsm module Home automation new raspberry pi model3b+ nodemcu arduino nodemcu esp8266 pinout nodemcu pinout NodeMCU projects nodemcu send data to server nodemcu tutorial pi model3b+ specification raspberry pi model 3b+ raspberry pi model 3b+ features sim900a sim900a gsm soledad spiffs technology thingspeak arduino example

Subscrbe Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

  • Facebook
  • Twitter
  • Google +
  • Instagram
  • Linkedin
  • Youtube
  • Snapchat
  • Telegram
RoboShala
  • Home
    • Home #1
      • Infinite Scroll Load More
      • Infinite Load More Posts
      • Home Featured Video
      • Body Boxed Image
      • Body Boxed Color
      • Home with Left Sidebar
      • Home with Sticky Sidebar
      • Standard Layout
      • Classic Layout
    • Home #2
      • Grid Layout
      • Grid with Sidebar
      • Grid 2 Columns Layout
      • List Layout
      • Masonry Layout
      • Masonry with Sidebar
      • Masonry 2 Columns Layout
      • Boxed Layout
      • Overlay Layout
    • Home #3
      • Mixed Layout
      • Mixed Style 2 Layout
      • Photography Layout
      • Magazine Layout 1
      • Magazine Layout 2
      • Magazine Layout 3
      • 1st Overlay Then Grid
      • 1st Overlay Then List
      • 1st Standard Then Grid
    • Home #4
      • 1st Standard Grid Sidebar
      • 1st Standard Then Grid 2
      • 1st Standard Then List
      • 1st Standard Then Boxed
      • 1st Classic Then Grid
      • 1st Classic Grid Sidebar
      • 1st Classic Then Grid 2
      • 1st Classic Then List
      • 1st Classic Then Boxed
  • Sliders
    • Slider #1
      • Home with Slider 1
      • Home with Slider 2
      • Home with Slider 3
      • Home with Slider 4
      • Home with Slider 5
      • Home with Slider 6
      • Home with Slider 7
      • Home with Slider 8
      • Home with Slider 9
    • Slider #2
      • Home with Slider 10
      • Home with Slider 11
      • Home with Slider 12
      • Home with Slider 13
      • Home with Slider 14
      • Home with Slider 15
      • Home with Slider 16
      • Home with Slider 17
      • Home with Slider 18
    • Slider #3
      • Home with Slider 19
      • Home with Slider 20
      • Home with Slider 21
      • Home with Slider 22
      • Home with Slider 23
      • Home with Slider 24
      • Home with Slider 25
      • Home with Slider 26
      • Home with Slider 27
    • Slider #4
      • Home with Slider 28
      • Home with Slider 29
      • Home with Slider 30
      • Home with Slider 35
      • Home with Slider 36
      • Home with Slider 37
      • Home with Slider 38
      • Home Penci Slider 1
      • Home Penci Slider 2
  • Features
    • Post Templates
      • Template Style 1
      • Template Style 2
      • Template Style 3
      • Style 3 with Parallax
      • Template Style 4
      • Style 4 with Parallax
      • Template Style 5
      • Style 5 with Parallax
      • Template Style 6
      • Style 6 with Parallax
      • Template Style 7
      • Style 7 with Parallax
      • Template Style 8
      • Style 8 with Parallax
      • Template Style 9
      • Style 9 with Parallax
      • Template Style 10
      • Style 10 with Parallax
    • Headers
      • Header Style 1
      • Header Style 2
      • Header Style 3
      • Header Style 4 (Centerd)
      • Header Style 5 (Centerd)
      • Header Style 6
      • Header Style 7
      • Header Style 8
      • Header Style 9
    • Menu Item Style 2
    • Real Awesome Gallery
    • Post Formats
      • Standard Post
      • Gallery Post
      • Video Post
        • Youtube Post
        • Vimeo Post
      • Audio Post
        • Soundcloud Audio
        • Self-hosted Audio
      • Quote Post
      • Link Post
    • Pages
      • About me
      • Contact
      • Page Left Sidebar
      • Page Full Width
      • Page 404
    • Typography
  • Tech Update
    • Esp8266

      Sending Data from ESP8266 NodeMCU to Google Drive

      May 10, 2018

      Esp8266

      NodeMCU Pinout

      February 11, 2018

      Esp8266

       IOT theft Notification Using Blynk : Door Status

      October 14, 2017

      Esp8266

      Make NodeMCU ESP Web Server

      September 23, 2017

      Esp8266

      Control NodeMCU using Android App

      September 23, 2017

  • VR & Future
  • Portfolio
    • Masonry 3 Columns
    • Masonry 2 Columns
    • Masonry with Sidebar
    • Grid 3 Columns
    • Grid with Sidebar
    • Grid 2 Columns
    • Single Portfolio
  • Shop

Popular Posts

  • 1

    Wifi Home Automation using NodeMCU

  • 2

     IOT theft Notification Using Blynk : Door Status

  • 3

    ESP8266 WiFi Dimmer | Control the Speed of Fan using Smartphone

  • 4

    Arduino SIM900A Home Automation

  • 5

    GSM Based Notice Board using Arduino and SIM900A

  • 6

    Sending Data from ESP8266 NodeMCU to Google Drive

@2019 - All Right Reserved. Designed and Developed by PenciDesign