Introduction: GPS Car Tracking Device Using Arduino and Smartphone

By the end of 2013, more than 7.2 million motor vehicles worldwide were identified as stolen so it's very important to protect your vehicle from theft .
in this project, we will help you :)
you don't have to buy any expensive components such as GSM module or GPS unit .
just leave your smartphone behind 1sheeld in your vehicle and track it anywhere in the world.
with a very simple arduino code , you will be able to track your vehicle and find its current location
in the 3 next steps you will know to do that .. let's fly :)

Step 1: Components

components needed:

1. Arduino uno

2. 1Sheeld

3. Android smartphone

4. Usb cable

Step 2: Arduino Sketch

1. download Arduino IDE from here

2. download 1sheeld library

3. copy 1sheeld library to arduino libraries folder

4. open arduino ide and connect usb cable to your laptop or pc

5. download arduino sketch code below then press upload button

#include<OneSheeld.h>
char callingNumber[]="01112058039"; 
boolean isMessageSent = false;        
float lat ;                           
float lon ;
char charlat [10];
char charlon [10];
char readings [80];
void setup()
{
  OneSheeld.begin();
}
void loop() {  
 delay(500);                        
 if(Phone.isRinging())
 {
    if(strcmp(Phone.getNumber(),callingNumber) == 0) 
   {
     if(!isMessageSent)  
       {lat = GPS.getLatitude(); lon = GPS.getLongitude(); 
         dtostrf(lat, 7, 3, charlat); dtostrf(lon, 7, 3, charlon); 
         strcat(readings,"GPS Coordinates : \n");               
         strcat(readings,"latitude is : ");   strcat (readings,charlat);  
         strcat(readings,"\nLongitude is : "); strcat (readings,charlon);
         SMS.send("01112058039",readings);                             
         isMessageSent = true;}                                        
   } 
  else {isMessageSent = false;}
 }
 else  {isMessageSent = false;}
}

Step 3: Connect Your Smartphone

Firstly, you can get 1Sheeld app from play store then follow the following instructions

1. open the app

2. scan for 1sheeld

3. select gps, phone and sms shields

4. wait for a call

once you call 1sheeld , sms contains gps coordinates of your car will be sent to you

use http://www.gps-coordinates.net/ to find car's location