Hi All,
I am working on tracking project. I am using Arduino uno, SIM 800C GSM module, NEO6M GPS module.
GSM module and GPS module are individually working. But when I combine both the program I didn't get the out put.
please help me with coding.
The combine program I used is as follows:
#include "TinyGPS++.h"
#include "SoftwareSerial.h"
SoftwareSerial serial_connection(10, 11); //RX=10, TX=11
TinyGPSPlus gps;
void setup()
{
Serial.begin(9600);
serial_connection.begin(9600);
Serial.println("GPS Start");
}
void loop()
{
// put your main code here, to run repeatedly:
while (serial_connection.available())
{
gps.encode(serial_connection.read());
}
if (gps.location.isUpdated())
{
Serial.begin(9600);
Serial.print("\r");
delay(1000);
Serial.print("AT+CMGF=1\r");
delay(1000);
Serial.print("AT+CMGS="+919623921669"\r");
delay(1000);
Serial.print("I am Lost please help me");
Serial.print("www.google.com.ph/maps/place/");
Serial.print(gps.location.lat(), 6);
Serial.print(",");
Serial.print(gps.location.lng(), 6);
Serial.print("\r");
delay(1000);
Serial.println((char)26);
delay(1000);
Serial.write(0x1A);
Serial.write(0x0D);
Serial.write(0x0A);
delay(1000);
}
}