EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / vehicle tracking system using gsm and gps module

vehicle tracking system using gsm and gps module

|

Projects › Projects › vehicle tracking system using gsm and gps module

  • This topic has 35 replies, 29 voices, and was last updated 8 years, 3 months ago by Anonymous.
Viewing 15 posts - 1 through 15 (of 36 total)
1 2 3 →
  • Author
    Posts
  • December 2, 2011 at 11:05 am #1424
    hm1622
    Participant

    i am in final year of electronics and comm.my final year project is vehicle tracking system using gsm and gps module.
    in which the tracking device is fixed on car and the device continuously(1 hour interval) send google map link on other cell phone.so guys please help me to complete this project

    1st where should i buy GSM and GPS module,which model is best for this kind of trecking application?

    December 4, 2011 at 11:20 am #6907
    Dexter
    Participant

    you have to use rs232 cable ,89c52 kit , sim 300, gps module capable of communication with rs232 and an activated sim cardwysiwyg_imageupload:3310:

    wysiwyg_imageupload:3311:

    December 6, 2011 at 8:31 am #6911
    hm1622
    Participant

    can any one guide about the program??

    because i have no idea about AT commands.

    December 19, 2011 at 4:01 pm #6936
    Syed Aameer
    Participant

    PRODUCT NAME     : GSM MODEM
    HARDWARE      :  SIM 300 MODULE
    COMMUNICATION     : RS232
    COMMANDS    : AT
    INPUT VOLTAGE    : 12VDC / 1AMP   
    *************************************************************************************************************************
    ANTENNA  –  PULL THE ANTENNA OUT IF THE SIGNAL IS WEAK

    HOW TO TEST!!!!

    1. INSERT THE SIMCARD INTO SIM TRAY BACKSIDE
    2. CONNECT THE RS232 CABLE TO THE PC SERIAL PORT –  SERIAL PORT PROPERTIES ( RESTORE DEFAULTS – 9600 BAUD RATE)
    3. OPEN HYPERTERMINAL FROM WINDOWS START>PROGRAMS>ACCESARIES>COMMUNICATIONS>HYPERTERMINAL
    4. SELECT THE COMPORT WITH BAUD RATE 9600
    5. TYPE “AT ” ECHO “OK” IF ECHO IS OK COMMUNICATION IS OK !!!!!!!!!+

    6. CHECK THE LED STATUS ( NETWORK SERCHING , NETWORK CONNECTED, IS SHOWN IN LED STATUS GIVEN BELOW)
    ****************************************************************************************************************************
     Working state of network status indication LED OUTPUT

    State SIM300 function

    Off SIM300 is not running
    64ms On/ 0.8SEC Off SIM300 does not find the network
    64ms On/ 3 SEC Off SIM300 find the network
    64ms On/ 300ms Off GPRS communication
    *****************************************************************************************************************************

    TO CHQ GAIN – AT+CSQ=?
    TO CHK NETWORK – AT+COPS=?

    Examples for send and receive SMS

    For sending SMS in text Mode:

    AT+CMGF=1 press enter
    AT+CMGS=”mobile number” press enter
    Once The AT commands is given’ >’ prompt will be displayed on the screen.
    Type the message to sent via SMS. After this, press ctrl+Z to send the SMS.
    If the SMS sending is successful, “ok” will be displayed along with the message number.

    For reading SMS in the text mode:
    AT+CMGF=1 Press enter
    AT+CMGR= no.
    Number (no.) is the message index number stored in the sim card. For new SMS, URC will be received
    on the screen as +CMTI: SM ‘no’. Use this number in the AT+CMGR number to read the message.
    Voice call
    Initiating outgoing call:
    ATD+ mobile number; press enter
    For disconnecting the active call:
    ATH press enter
    For receiving incoming call:
    ATA press enter

    **************************************************USEFUL AT COMMANDS FOR SETTINGS *****************************************************************

    TO CHANGE BAUDRATE  – AT+IPR=BAUDRATE(Ex 9600) 0-115200 For maore details refer AT commands Document page 33

    TO SAVE THE SETTINGS AT&W

    TO RESTORE FACTORY DEFAULTS TYPE AT&F THEN SAVE IT AT&W

     

    March 21, 2012 at 6:23 am #7317
    yuichi
    Participant

    Are you looking for used car purchase services? Don’t sell your car in pennies, get the true worth of your car today from the most reliable Japanese used car purchase company.

    April 1, 2012 at 7:17 am #7375
    neha sharma
    Participant

     

    hello guys i am facing a problem in sending sms…..
     
    my developed code is here…plz check it out..
     
    thanxx in advance…!!!!
     
     
     
     
     
     
     
     
     
    #include<reg52.h>
    #define lcd_data P2
    #define lcd_cont() ((lcd_en=1),(delay(3)),(lcd_en=0))
    void UART_init();
    void send_to_modem(char*);
    void enter();
    void send(char);
    void ch_send_to_modem(char*);
    void lcd_init(void);    
    void lcdcmd(unsigned char value);
    void lcddata(unsigned char value);
    void msgdisplay(unsigned char b[]);
    void delay(unsigned int value);
    void send_to_modem(char*);
    void enter();
    void send(char);
    void ch_send_to_modem(char*);
    unsigned char str[10],mobilenum[11]={“09887081656”};
     
                               
    unsigned char mobilenum1[10];
    code unsigned char str1[]={“OK”};
    unsigned char l,s,n,a,b,i,count,j,jjj,hb=68;
    sbit temp=P1^3;
    sbit  lcd_rs   =  P1^0;
    sbit  lcd_en   =  P1^2;
     
    void main()
    {
    temp=1;
     lcd_init();
     UART_init();
     lcdcmd(0x84);
     msgdisplay(” welcome ” );
     delay(1000);
     
     
       
     lcdcmd(0x01);   
     msgdisplay(“searching for”);
     lcdcmd(0xc0);
     msgdisplay(“GSM modem”);
     delay(100); 
     send_to_modem(“ate0”);   //to avoid echo signals,
      enter();
       send_to_modem(“at”);
       enter();  // TO CHECKING GSM MODEM…
       send_to_modem(“at”);
       enter();
       send_to_modem(“at”);
       enter();
       send_to_modem(“at”);
       enter();
       send_to_modem(“atr”);
       enter();
       for(mobilenum=0;mobilenum<11;i++);
       for(s=0;s<5;s++)  // Here we are waiting for data whitch is sending by GSM modem  
       {  // to checking wether  the GSM modem  connected to system or
        while(RI==0);  // not.
        str=SBUF;
        RI=0;
       } 
     
          /* str=’’; 
        lcdcmd(0x01); 
        msgdisplay1(str);
        long_delay();
        n=strcmp(str3,str1); 
     
      if(n)
       goto again;  // GSM modem if those are matching then following messages 
      else 
       {*/  // are displaying on LCD.
         lcdcmd(0x01);
         msgdisplay(“SYSTEM”);
         lcdcmd(0xc3); 
         msgdisplay(“CONNECTED”);
         
    //   } 
     
       send_to_modem(“at+cmgf=1”);
       enter();
       send_to_modem(“at+cmgd=1”);
       enter();
       send_to_modem(“at+cmgd=2”);
       enter();
       send_to_modem(“at+cmgd=3”);
       enter();
       send_to_modem(“at+cfcs=”);
       enter();
       send_to_modem(“gsm”);
       enter();
       RI=0;
        
        lcdcmd(0x01);
        msgdisplay(mobilenum);
     
      
      
      st:delay(2500);
     
    while(RI==1)
    {
     RI=0;
     delay(100);
     }
         
         lcdcmd(0x01);
         msgdisplay(“massage “);
         lcdcmd(0xc0); 
         msgdisplay(“start……”);
         
         while(RI==1);
       
     
       
       while(1)
        {
     
      if(temp==0)
           {
        resend:
    lcdcmd(0x01);
             msgdisplay(“over temp”);
             lcdcmd(0xc3); 
             msgdisplay(“sending msg”);
             send_to_modem(“at+cmgs=+918233598587”);
    lcdcmd(0x01);
    msgdisplay(“No. sended”);
    lcdcmd(0xc0);
    msgdisplay(“sending msg….”);
        delay(10);
        enter();
        send_to_modem(“abnormal temerature from room1 “);
        ch_send_to_modem(0x1a);
        enter();
      while(RI==0);
        a=SBUF;
          RI=0;
      while(RI==0);
        b=SBUF;
          RI=0;
     
    if(a==13)
     {
          lcdcmd(0x01);
               msgdisplay(“message sent “);
           goto st;
         }
          else
        {
     delay(2000);
     goto resend;
    }
     }
     
           
     
     
    }
    }
     
     
     void lcd_init(void)
    {
     lcdcmd(0x02);
     lcdcmd(0x02);
     lcdcmd(0x02);
     lcdcmd(0x28);
     lcdcmd(0x28);
     lcdcmd(0x28);
     lcdcmd(0x0c);
     lcdcmd(0x06);
     lcdcmd(0x01);
    }
    void lcdcmd(unsigned char value)   // LCD COMMAND
      {
          lcd_data=value&(0xf0);
          lcd_rs=0;
          lcd_cont();
          lcd_data=((value<<4)&(0xf0));
          lcd_rs=0;
          lcd_cont();
     }
     
                                              
    void lcddata(unsigned char value)
      {  
         lcd_data=value&(0xf0);
         lcd_rs=1;
         lcd_cont();
         delay(3);
         lcd_data=((value<<4)&(0xf0));
         lcd_rs=1;
         lcd_cont();
         delay(3);
      }  
    void msgdisplay(unsigned char b[])
      {
    unsigned char s,count=0;
    for(s=0;b!=’’;s++)
     {
      lcddata(b);
     }
    }
    void delay(unsigned int value)
     {
       unsigned int x,y;
       for(x=0;x<100;x++)
       for(y=0;y<value;y++);
     }
     
    void UART_init()
    {
      SCON = 0x50;
      TMOD = 0x20;
      TH1  = 0xFD;
      TR1  = 1;
    }
     
    void send_to_modem(char*s)
    {
       while(*s != ‘’)
       {
         send(*s);
         s++;
       }
    }
     
    void ch_send_to_modem(char*s)
    {
       while(*s != ‘’)
       {
         send(*s);
         s++;
       }
       send(‘r’);
       send(‘n’);
    }
    void send(char x)
    {
      while(!TI);
      TI = 0;
      SBUF=x;
    }
    void enter()
    {
     
      send(‘r’);
      send(‘n’);
    }
     
    April 13, 2012 at 10:00 am #7434
    Syed Aameer
    Participant

    Type 10 digit mobile number..remove ‘0’ and check for your local number

     

    May 2, 2012 at 6:37 am #7572
    salmanshah
    Participant

    Hello hm1622! hope u enjoy good health…

    I am working on the vehicle tracking system for my semester project!

    plz provide me the circuit diagram and code for help!

    i am really pooooor in programming :(

    July 15, 2012 at 5:23 pm #8259
    man hari dnagol
    Participant

    i am in final year student of electronics and communicatin engineering.My final year project is Advance vehicle secuirity system withtheft control and accident notification using gsm , gps module &PIR sensor.In which gps receiver and gsm modem are placed on car and the device continuously(after certain interval) send longitude ,latitude,time,speed on other stored cell phone.And also the ignition of engine is control by cell phone by sending sms and if any accident is happen to vehicle again it send location of accident .And pir is used to detect the motion of person around the car if it detect the motion then sends sms to owner .

    So  please help me to complete this project by sending the program code and circuit daigram using at89s52 microcontroller as soon as posible

     

    August 16, 2012 at 7:34 am #8472
    Shahid nawaz malik
    Participant

    guys…my project is same as of u with some additions…means i hav to lock/unlock door and ignition on/off…….i hav a lil bit idea about pic programing …kindly plzz help me in code i hav a code and and am able to understand some portion of code…code is given bellow

     

     

     

     

    EMBEDDED C SOURCE CODE:

    #include <16F877A.h>

    #include <gsm.c>

    #include <gps.c>

     

    #use        delay  (clock=20M) //Crystal Oscillator speed 20MHz

    #use        rs232  (baud = 9600, xmit=PIN_B0,rcv=PIN_B1,stream=GSM) //For GSM Modem

    #use        rs232  (baud = 4800, xmit=PIN_A1,rcv=PIN_A0,stream=GPS) //For GPS Receiver

    byte ch = 0;

    int count = 0;

    byte data[150]; //For SMS storage

    byte wru[] = { “wru” };

    byte about[] = {“about”};

    byte help[] = {“help”};

    byte lock[] = {“lock”};

    byte unlock[] = {“unlock”};

    byte num[12];   //for storing phone number

    char lat[12];   //for storing latitude

    char lngtd[12]; //for storing lngtd

    char speed[12]; //for storing speed

    char tdata[12]; //for temprary data

    void main()

    {

       int i = 0;

       int j = 0;

       int flag = 0;

       output_high(PIN_D1);        // send “1” to pinD1

       delay_ms(1000);

       output_low(PIN_D1);

       delay_ms(1000);

       output_high(PIN_D1);

       delay_ms(1000);

       output_low(PIN_D1);

          init_phone();

          while(1)

       {

         output_toggle(PIN_D1);  //GSM Indicator LED

         delay_ms(500);

         count = 0;   //reset data buffer    

         data[count] = 0;                 //data[ ] is for sms storage

        

                            if(!input(PIN_C4)) //Accident Sensor switch.

            {

                //Crash Message Handling

                output_high(PIN_D0); //LED Indicator

                get_GPS_data(lat,lngtd);  //Read GPS data for lat and lngtd

                fprintf(GSM,”AT+CMGS=”%s”rn”,mynum); //Send SMS message to pre-defined number

                fprintf(GSM,”ALERT: Vehicle No.9999 Crashed at Latitude: %s Longitude: %s rn”,lat,lngtd); //Send SMS data

                fputc(0x1A,GSM);  //^Z to send sms

                output_low(PIN_D0);  //LED Indicator

                continue;

            }

         }

         fgets(data,GSM); //Read sms data into data buffer

     

         if(strlen(data) < 14)  //No message in string. returns OK or ERROR. Depends on Modem type

         {     

           continue;

         }

         //Delete the message

         fprintf(GSM,”AT+CMGD=1rn”);  //delete message from SIM card

         delay_ms(2000);       

     

         //Read the available message content

          //extract the phone number from SMS Message

     

          get_phone_number(data,num);  //extract phone number into num variable

         if(strstr(data,wru)) //If the message contains “wru”

         {           

             get_GPS_data(lat,lngtd);

     

             output_high(PIN_D1);

            

             fprintf(GSM,”AT+CMGS=”%s”rn”,num);

             fprintf(GSM,”Hello, I am located at “);

             fprintf(GSM,”Latitude: %s  Longitude: %s “,lat,lngtd);

             fprintf(GSM,”Speed: %s kmph. “,speed);

             fprintf(GSM,”Please use Google Earth to see my location.rn”);        

             fputc(0x1A,GSM);

         }

         else if(strstr(data,about)) //If the message contains “about”

         {        

             output_high(PIN_D1);

             fprintf(GSM,”AT+CMGS=”%s”rn”,num);

             fprintf(GSM,”B.Tech Final Year(2009-2010) Project rn”);

             fprintf(GSM,”GPS & GSM Based Vehicle Theft Control System. rn”);

             fprintf(GSM,”Engineering Final Year Project.rn”);        

             fputc(0x1A,GSM);                 

         }

         else if(strstr(data,unlock))

         {

             output_high(PIN_D1);

             output_low(PIN_D7);

             fprintf(GSM,”AT+CMGS=”%s”rn”,num);

             fprintf(GSM,”Vehicle got unlocked”);

             fputc(0x1A,GSM);        

         }

         else if(strstr(data,lock))

         {           

             get_GPS_data(lat,lngtd);

             output_high(PIN_D1);

             output_high(PIN_D7);

             fprintf(GSM,”AT+CMGS=”%s”rn”,num);

             fprintf(GSM,”Vehicle got locked out at location  “);

             fprintf(GSM,”Latitude: %s  Longitude: %s “,lat,lngtd);

             fprintf(GSM,”Please use Google Earth to see my location.rn”);

             fputc(0x1A,GSM); //^Z

         }

         else if(strstr(data,help))

         {        

             output_high(PIN_D1);

             fprintf(GSM,”AT+CMGS=”%s”rn”,num);

    fprintf(GSM,”Send “wru” to get my location rn”);

             fprintf(GSM,”Send “about” to know about mern”);

             fprintf(GSM,”Send “lock” to Lock the Vehicle Ignition.rn”);

             fprintf(GSM,”Send “unlock” to Unlock.rn”);

             fputc(0x1A,GSM);

         }    

      }

    }

     

    August 21, 2012 at 3:41 pm #8491
    vaibhav
    Participant

    hey plz mail me the circuit and code of the this project my  mail idis [email protected]

    September 2, 2012 at 2:37 pm #8517
    kaushal
    Participant

    Dear all i am also working on a device able to track vehicles and send the lattitude and longitude to the user’s mobile phone.I am using a at89s52 Microcontroller , a GPS module and a GSM module.If possible please send me a error free code and circuit diagram as well 

    My mail id is [email protected]

    September 11, 2012 at 6:18 pm #8567
    jatin patil
    Participant

    i hav bought a SIM300 and GSSM3 seriers GPS module i want to interface it with atmega 128 as it has full duplex UART connectionz…can any one help me in circuit and coding of it????

     

    September 12, 2012 at 6:11 am #8571
    Amit
    Participant

    Can I please get the cost of GSM module, its part no. & from where I can get?

    September 22, 2012 at 7:35 am #8599
    firdous
    Participant

    hey…plz mail me the circuit diagram and code…plz help me…..

     

     

     

    [email protected]

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 36 total)
1 2 3 →
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • compile errors April 22, 2026
  • Quick Tip: Handling CH340 Driver Issues on Uno SMD Clones April 22, 2026
  • My Advanced Realistic Humanoid Robots Project April 22, 2026
  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise