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 http://www.gps-coordinates.net/ to find car's location

<p>kindly help me out i tryed uploading code </p><p>supp i gave calling number 12345 </p><p>sms no 1234</p><p> y it is not sending sms wen i am calling &gt;???</p>
<p>make sure u switch 1Sheeld to operating mode <br>use internet packet data and make GPS ON </p>
<p>its not work. why?</p>
<p>Sir I <strong>can't get the sms</strong>. Why sir? I already upload the coding. <strong>Which phone number I want to exchange with </strong><strong>01112058039?</strong> Exchange with the <strong>1sheeld using phone or which phone number.</strong> Please help me!</p>
<p>Sir please reply me now. <strong>Urgent</strong>! </p>
<p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/2dnB1kgVJT0" width="500"></iframe></p>
<p>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?</p>
<p>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</p>
<p>https://www.instructables.com/member/mohammed_selim</p><p>منفضلك ممكن تعطينى رقمك للتواصل للاننى عاوز اعرف السعر وبعض التفاصيل وشكرا </p>
<p>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!</p><p>(http://tasker.dinglisch.net/)</p>
<p>In case the apparatus (the shield unit) is far from you, would you still <br> be able to send sms from your smart phone, for such long distance and <br>get back gps coordinates? Because the shield communicates through bluetooth and has a range not more than 30 feet.</p>
<p>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. </p>
<p>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...???</p>
<p>GPS shield doesn't support it currently but in the future this option may be added </p>
<p>haynice work!! </p><p>i want something Chang in this,</p><p>which changes to do in the coding when i dial to emergency no.like' 911' at that time gps location of mobile also send to '911' thorough the sms. </p>
<p>simply you can change SMS.send(&quot;01112058039&quot;,readings); to <strong>SMS.send(&quot;911&quot;,readings);</strong><br>for calling emergency, use this function<strong> </strong><strong>Phone.call(&quot;911&quot;);</strong></p><p></p>
<p>but it is works when call (ringing) is comes to arduino connected phone</p><p>i want <strong>&quot;call dialing(<em>arduino connected phone dial to 911</em>)&quot;</strong> not <strong>&quot;ringing(<em>911 not calling me and i send his my location</em>)&quot;</strong> function</p><p>are u understand what i am taking about ?</p>
Go on :-) good luck
<p>ur code aint working bro y so .&gt;?</p>
<p>don't use this method ( File menu &gt;&gt; Open ) <br>but <strong>Drag the file to arduino window</strong></p>
<p><a href="https://www.instructables.com/files/orig/FX6/Q0OS/I1MQ6J03/FX6Q0OSI1MQ6J03.ino" rel="nofollow"><strong>Code</strong></a></p>
<p>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. </p>
<p>from step 1: &quot; just leave your smartphone behind 1sheeld in your vehicle and track it anywhere in the world.&quot;</p>
<p>That is an excellent non-answer to my non-question. </p><p>Thank you for clarifying. </p>
Realy nice! Smart :)
<p>thank u </p>
<p>I don't see what the Ardurino and the 1sheeld app do other than cost money.<br> I brought a &pound;30 smart phone and a &pound;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%</p>
<p>you r right but this advanced solution VS using GSM module and GPS <br>you'r welcome :) <br></p>
<p>nice work :) .. i will try it soon :D</p>
<p>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!</p>
thank you so much

About This Instructable




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