Sir, i need a idea and guidance to my project...
my doubt is that "how to code in ARDUINO UNO in this situation:
IF THE SPECIFIC LOCATION IS CAME,, I WANT TO SEND A MSG TO MOBILE"........
Basic idea i cant get it sir,, PLEASE HELP ME SIR,,,,,,,,, plz plz plz,,,, suggest some example coding to help to complete my project sir
It's really hard without seeing any code, but you'll need to define some degree of acceptable error, then you'll probably need to use "abs()" to determine your trigger condition.
#include < softwareserial.h> #include < tinyGPS.h>
long lat, lon;
softwareserial gpsserial (2, 3);
tinyGPS gps;
void setup()
{
serial. begin (9600);
gpsserial. begin (4800);
}
void loop ()
{
while ( gpsserial. available ())
{
if ( gps.get_position (&lat,&lon);
serial.print ("position: ");
serial.print ( " lat: " );
serial.print (lat);
serial.print (" ");
serial.print ("lon: ");
serial.println (lon);
This is our gsm code to send a sms:
here we are using button to send a sms. Instead of button we have to use gps device. Please help me sir
int x=13;
void setup ()
{
serial.begin (9600);
serial.print ("\r");
delay (1000);
pinmode (x, input);
}
void loop ()
{
if ( digitalread (x)==high)
{
serial.print ("AT+CMGF=1\r");
delay (1000);
serial.print (" AT+CMGF="+91xxxxxxxxxx"\r");
delay (1000);
serial.print ("Hi boss someone stolen me, stop me by giving missed call\r");
delay (1000);
serial.write (0×1A);
delay (1000);
}
else
{
serial.print ("AT\r");
}
}