Skg13C Gps With External 3 Meter Antenna Ttl And Rs232 Output
Rs. 978.00 Rs. 1,125.00
- Product Code: GPS
- SKU -
- Availability: In Stock
- Price in reward points: 10
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
PACKAGE INCLUDES:
1 PCS x Skg13C Gps With External 3 Meter Antenna Ttl And Rs232 Output
SAMPLE CODING
#include <LiquidCrystal.h>
LiquidCrystallcd(2,3,4,5,6,7);
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
String inputString = "",MsgNumString = "",MsgString = "",Msgformat="+CMT: ",Msgkey=""; // a string to hold incoming data
booleanstringComplete = false,FlagMsg = false,FlagMsgNum = false; // whether the string is complete
charphone_no[]="8939471015";
/*
This sample sketch demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object.
It requires the use of SoftwareSerial, and assumes that you have a
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/
staticconstintRXPin = 8, TXPin = 9;
staticconst uint32_t GPSBaud = 9600;
// The TinyGPS++ object
TinyGPSPlusgps;
// The serial connection to the GPS device
SoftwareSerialss(RXPin, TXPin);
int count = 0;
char flag = 0;
void setup()
{
lcd.begin(16, 2);
lcd.setCursor(0,0);lcd.print("LCD OK");
delay(2000);
lcd.clear();
ss.begin(GPSBaud);
lcd.setCursor(0,0);lcd.print("GSM OK");
delay(2000);
lcd.clear();
}
void loop()
{
// This sketch displays information every time a new sentence is correctly encoded.
while (ss.available() > 0)
if (gps.encode(ss.read()))
displayInfo();
if (millis() > 5000 &&gps.charsProcessed() < 10)
{
Serial.println(F("No GPS detected: check wiring."));
while(true);
lcd.setCursor(0,0);lcd.print("No GPS detected ");
}
}
voiddisplayInfo()
{
if (gps.location.isValid())
{
lcd.clear();
lcd.setCursor(0,0);lcd.print("LAT : ");lcd.print(gps.location.lat());
lcd.setCursor(0,1);lcd.print("LONG : ");lcd.print(gps.location.lng());
}
else
{
lcd.setCursor(0,0);lcd.print("INVALID ");
}
if (stringComplete)
{
if(FlagMsg)
{
Msgkey=MsgString.substring(MsgString.indexOf('*')+1,MsgString.indexOf('#'));
if(Msgkey.equals("TRACK"))
lcd.setCursor(0,1);lcd.print("Messege Sent....");delay(1000); lcd.clear();
flag = 1;
}
Msgkey="";
MsgString="";
FlagMsg=false;
inputString = "";
stringComplete = false;
}
}
if(flag == 1)
{
count++;
delay(1000);
}
if(count == 60)
{
lcd.setCursor(0,1);lcd.print("Messege Sent....");delay(1000); lcd.clear();
count = 0;
}
}
OUTPUT FOR GPS SKG
15 days