How to trace mobile number exact location on map. How to make Cell phone tracker by GSM SIM808

GSM SIM 808 Module. It is possible to do different projects with this GSM SIM808 module. By connecting between this GSM SIM 808 module and Arduino, it is possible to do various projects related to send SMS, receiving SMS, calling and trace mobile number. GPS Location Tracker/trace mobile number  Project can also be done by interfacing between this GSM SIM 808 Module and Arduino. With this GPS Location Tracker Project, if you put this device in your car and if this car is stolen by a thief. Then you can track the location of your car through the phone message of your phone. Today I will show and teach you how to make this system. Let’s not know what components and devices will be needed to do this project or to make this device.

 

  1. Arduino Uno R3 Board.
  2. GSM Sim808 Module.
  3. Jumper wire.
  4. 5v 2Amp Power supply.
  5. SIM.
  6. Mobile Phone.
  7. GPS Antenna.
  8. GSM Antenna.

Below is a Pin Diagram showing how to interface between GSM SIM 808 module and Arduino to do this technology.

 

trace mobile number
trace mobile number

 

Coding Part:

Now I will show you the coding part. See for projecting with GSM above I have shown the pin diagram or connection diagram. You will make the connection according to this diagram. Now for coding you must add two library files to Arduino IDE Software. You can download these two library files from below.

Code:

 #include <DFRobot_sim808.h>  
 #include <SoftwareSerial.h>  
 #include <Wire.h>  
 //#define PHONE_NUMBER "01743175953"   
 #define MESSAGE_LENGTH 160  
 char message[MESSAGE_LENGTH];  
 int messageIndex = 0;  
 //char MESSAGE[300];  
 float la;  
 float lo;  
 //float speedd;   
 float wspeed;  
 String data;  
 #define MESSAGE"data"   
 char gprsBuffer[64];  
 char *s = NULL;  
 char phone[16];  
 char datetime[24];  
 #define PIN_TX 7  
 #define PIN_RX 8  
 SoftwareSerial mySerial(PIN_TX,PIN_RX);  
 DFRobot_SIM808 sim808(&mySerial);//Connect RX,TX,PWR,  
 char b[100];  
 void getGPS();  
 String rmsg;  
 String asish = String("gps");  
 void setup()  
 {  
  mySerial.begin(9600);  
  Serial.begin(9600);  
  //******** Initialize sim808 module *************  
  while(!sim808.init())  
  {  
    Serial.print("Sim808 init error\r\n");  
    delay(1000);  
  }  
  delay(3000);  
  Serial.println("SIM Init success");  
  Serial.println("Init Success, please send SMS message to me!");  
 }  
 void loop()  
 {  
    getGPS();  
    delay(200);  
    readSMS();  
 }  
 void readSMS()  
 {  
  //*********** Detecting unread SMS ************************  
   messageIndex = sim808.isSMSunread();  
   Serial.print("messageIndex: ");  
   Serial.println(messageIndex);  
   //*********** At least, there is one UNREAD SMS ***********  
   if (messageIndex > 0) {   
    sim808.readSMS(messageIndex, message, MESSAGE_LENGTH, phone, datetime);  
     delay(200);  
      rmsg=String(message);  
       if(asish == message)  
      {  
       sim808.sendSMS(phone,b);  
      }         
    //***********In order not to full SIM Memory, is better to delete it**********  
    sim808.deleteSMS(messageIndex);  
    Serial.print("From number: ");  
    Serial.println(phone);   
    Serial.print("Datetime: ");  
    Serial.println(datetime);      
    Serial.print("Recieved Message: ");  
    Serial.println(message);    
   }  
 }  
 void getGPS()  
 {   
  while(!sim808.attachGPS())  
  {  
   Serial.println("Open the GPS power failure");  
   delay(1000);  
  }  
  delay(1000);  
  Serial.println("Open the GPS power success");  
  while(!sim808.getGPS())  
  {  
  }  
  Serial.print(sim808.GPSdata.year);  
  Serial.print("/");  
  Serial.print(sim808.GPSdata.month);  
  Serial.print("/");  
  Serial.print(sim808.GPSdata.day);  
  Serial.print(" ");  
  Serial.print(sim808.GPSdata.hour);  
  Serial.print(":");  
  Serial.print(sim808.GPSdata.minute);  
  Serial.print(":");  
  Serial.print(sim808.GPSdata.second);  
  Serial.print(":");  
  Serial.println(sim808.GPSdata.centisecond);  
  Serial.print("latitude :");  
  Serial.println(sim808.GPSdata.lat);  
  Serial.print("longitude :");  
  Serial.println(sim808.GPSdata.lon);  
  Serial.print("speed_kph :");  
  Serial.println(sim808.GPSdata.speed_kph);  
  Serial.print("heading :");  
  Serial.println(sim808.GPSdata.heading);  
  Serial.println();  
  // speedd = sim808.GPSdata.speed_kph;  
   la = sim808.GPSdata.lat;  
   lo = sim808.GPSdata.lon;  
   wspeed = sim808.GPSdata.speed_kph;  
   // data = ("latitude: " + String(la) + "*C " + " longitude: " + String(lo) + "%" );  
    data = ("latitude: " + String(la) + " longitude: " + String(lo) + "speed_kph :" + String(wspeed) );  
    data.toCharArray(b,100);  
   Serial.println(b);  
    Serial.println(b);  
   Serial.println(data);  
  delay(400);  
 }  

Above I showed the coding. You will upload this coding to the Arduino Board by making the connection according to the connection diagram shown above. Then this device will be created. Now I will tell you how this device will work. After making this device, you can place it anywhere, be it in your car or bike or anywhere.

Now you will send a message to the SIM card that will be in the device. I have written GPS as a message in the coding. You can edit the coding and write anything. Now GPS will send a message from your mobile to the SIM card of that device. Immediately a back message will come to your phone. In this message you will get the latitude and longitude of this device.

Now you have to go to a website www.whatsmygps.com Go to this website and put latitude-longitude from your phone message on this website. latitude-longitude After placing this website, you can see the location of that device on Google Map. In addition, if the device is attached to a car, then the speed of the car, but you can see on Google Maps.

 

 

 

 

100% LikesVS
0% Dislikes

1 thought on “How to trace mobile number exact location on map. How to make Cell phone tracker by GSM SIM808”

Leave a Comment