Surilli
Published © GPL3+

Integration of NEO 6M UBLOX GPS Module with Surilli GSM

Get the latitude and longitude of any location by using NEO 6M UBLOX GPS Module and Surilli GSM.

BeginnerFull instructions provided15 minutes250
Integration of NEO 6M UBLOX GPS Module with Surilli GSM

Things used in this project

Hardware components

Surilli GSM
Surilli GSM
×1
NEO 6M GPS Module
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Surilli GSM with GPS Module

Code

GPS_with_Surilli_GSM

C/C++
#include <TinyGPS++.h>
#include <SoftwareSerial.h>

TinyGPSPlus gps;
SoftwareSerial serialgps(10,11);      //pin 10 Tx  GPS -- pin 11 Rx  GPS

void setup()
{
   Serial.begin(9600);
   Serial.println("GPS6MV2");
   Serial.println(" ---TEST CODE--- ");
   Serial.println("");
   
   serialgps.begin(9600);
   delay(200);
}

void loop()
{
       Serial.begin(9600);
       serialgps.begin(9600);
   
      while(serialgps.available())
   {
    int c = serialgps.read();
    if(gps.encode(c))
    {
     float latitude, longitude;
      latitude = (gps.location.lat());
      longitude = (gps.location.lng());
      Serial.print("Latitude/Longitude: ");
      Serial.print(latitude,5);
      Serial.print(", ");
      Serial.println(longitude,5);
      delay(100);
      Serial.println();
    }
  }
}

Credits

Surilli

Surilli

196 projects • 45 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments