GPS Car Tracking Device Using Arduino and Smartphone

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

char callingNumber[]="01112058039"; 
boolean isMessageSent = false;        
float lat ;                           
float lon ;
char charlat [10];
char charlon [10];
char readings [80];
void setup()
void loop() {  
    if(strcmp(Phone.getNumber(),callingNumber) == 0) 
       {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);
         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 to find car's location



    • Fix It! Contest

      Fix It! Contest
    • Metalworking Contest

      Metalworking Contest
    • Tiny Home Contest

      Tiny Home Contest

    32 Discussions

    Hye, How I can print in firebase database in parent and child form that have lat and long (like the picture) that transmitted from 1sheeld? Please help me.

    maxresdefault (1).jpg

    kindly help me out i tryed uploading code

    supp i gave calling number 12345

    sms no 1234

    y it is not sending sms wen i am calling >???

    2 replies

    Sir I can't get the sms. Why sir? I already upload the coding. Which phone number I want to exchange with 01112058039? Exchange with the 1sheeld using phone or which phone number. Please help me!

    1 reply

    Sir please reply me now. Urgent!


    2 years ago

    Nice try boys but a small GPS module cost aaround half what the 1 shield costs and don't have to leave your smart phone in the car. Who wants to leave their phone in the car all night anyway?


    2 years ago

    when I am trying to upload the code an error message appear that there low memory available although iam using arduino uno as you mentioned

    منفضلك ممكن تعطينى رقمك للتواصل للاننى عاوز اعرف السعر وبعض التفاصيل وشكرا

    FYI, just running a Tasker script on the android device will save you the cost of the Arduino and 1sheeld. Otherwise, I must say you've taken a novel approach to the problem. Cheers!


    In case the apparatus (the shield unit) is far from you, would you still
    be able to send sms from your smart phone, for such long distance and
    get back gps coordinates? Because the shield communicates through bluetooth and has a range not more than 30 feet.

    People in the US, you can buy a used EVO 4G on eBay and use FreedomPop phone service to get data, texts, and calls for this for free. I plan on doing it in the near future.

    hi we saw ur work n are interested to do something like this ...only changes we want is instead of the coordinates we want it in a google map...can that be done...???

    1 reply

    haynice work!!

    i want something Chang in this,

    which changes to do in the coding when i dial to emergency' 911' at that time gps location of mobile also send to '911' thorough the sms.

    2 replies

    simply you can change SMS.send("01112058039",readings); to SMS.send("911",readings);
    for calling emergency, use this"911");

    but it is works when call (ringing) is comes to arduino connected phone

    i want "call dialing(arduino connected phone dial to 911)" not "ringing(911 not calling me and i send his my location)" function

    are u understand what i am taking about ?