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

Picture of Components

components needed:

1. Arduino uno

2. 1Sheeld

3. Android smartphone

4. Usb cable

Step 2: Arduino Sketch

Picture of 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

Picture of 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


Abdul AfnanB (author)2017-07-24

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.

sshah54 (author)2014-10-19

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 >???

mohammed_selim (author)sshah542014-10-19

make sure u switch 1Sheeld to operating mode
use internet packet data and make GPS ON

BadrulH8 (author)mohammed_selim2016-09-11

its not work. why?

pughalv (author)2016-08-15

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!

pughalv (author)pughalv2016-08-15

Sir please reply me now. Urgent!

spetyo (author)2016-06-17

cliffyd (author)2016-05-03

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?

RazanI (author)2016-02-04

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

EnkingE (author)2016-01-27

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

w1bmw (author)2015-05-27

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!


Terry Jack (author)2015-05-18

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.

queenfan66 (author)2014-12-19

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.

sheema.m.babu (author)2014-10-30

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...???

GPS shield doesn't support it currently but in the future this option may be added

krunal2 (author)2014-10-25

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.

mohammed_selim (author)krunal22014-10-26

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

krunal2 (author)mohammed_selim2014-10-26

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 ?

eureka.sci.soc (author)2014-10-25

Go on :-) good luck

sshah54 (author)2014-10-22

ur code aint working bro y so .>?

mohammed_selim (author)sshah542014-10-23

don't use this method ( File menu >> Open )
but Drag the file to arduino window

wilgubeast (author)2014-10-20

This appears to require leaving a phone in the car to know when both the vehicle and mobile device (and 1Sheeld, presumably) have been stolen. I say "appears" because it's hard to tell from your explanation, photos, and video what exactly is going on here.

from step 1: " just leave your smartphone behind 1sheeld in your vehicle and track it anywhere in the world."

That is an excellent non-answer to my non-question.

Thank you for clarifying.

ibenkos (author)2014-10-18

Realy nice! Smart :)

mohammed_selim (author)ibenkos2014-10-19

thank u

Stan1y (author)2014-10-18

I don't see what the Ardurino and the 1sheeld app do other than cost money.
I brought a £30 smart phone and a £3 app disabled all sounds I charge it once a week and leave it concealed in my car if my car goes missing I send it a text and it tells me where it is. If I forget to charge it it sends me a text when the battery reaches 5%

mohammed_selim (author)Stan1y2014-10-19

you r right but this advanced solution VS using GSM module and GPS
you'r welcome :)

sqedan (author)2014-10-19

nice work :) .. i will try it soon :D

MsSweetSatisfaction (author)2014-10-18

That so cool that you can do that! Someday we will be in the "future" where all things are possible. Especially with Arduino. Thanks for sharing!

thank you so much

About This Instructable




More by mohammed_selim:GPS car tracking device using Arduino and smartphone
Add instructable to: