Close or Esc Key

Arduino Projects   |   Raspberry Pi   |   Electronic Circuits   |   AVR   |   PIC   |   8051   |   Electronic Projects

GPS and GSM based Vehicle Tracking System Using Arduino

Table of Contents:

  1. GPS and GSM based Vehicle Tracking System Using Arduino
  2. Programming

Description

Comments

There is also the matter of the moon phase. It is a retrograde style moon phase indicator that has the moon moving back and forth versus in one continuous revolution on a disc.Other models have yellow or blue trim coloring as opposed to the red in this watch. To me, the red contrasts the best with the black PVD case and dial, not to mention being the most powerful looking.The new Cartier Masse Secrete Panther Decor watch is executed in a 42mm18K rhodium-plated white gold case, highlighted by the sparkle of diamonds. At 3 o?clock it features a beaded crown, paved with a diamond.

Hello mr Saddam

I have a big problems , line {int Ctrl+z=26;}create error at compiling.

Please help me.

Best regards , Nelu

I have the same problem. 

Just delete {int Ctrl+z=26;} and replace Serial.write(Ctrl+z); with Serial.write (26); in void loop 

 
helo, when is did as u told.
The error occured is - expected constructor, destructor, or type conversion before '.' token
 

plzz help me sir.

 

I did as you said sir, but there is only one error which is showing as

 error: expected constructor, destructor, or type conversion before '.' token

'Serial' does not name a type 

Sir I was change but it show me this error again sir what happen sir

where do i replace this serial .write(26); plz tell explain me this

can you send me the error free code

i have also same prblm

 

Can u plz help me.... I want to receive d latitude nd longitude location only in the phone instead of receiving it in LCD screen and phone!!!!! For this I would remove the LCD program from the coding..... Is it possible to get the location from the GPS and would I receive the message at my phone????
Plz help me within a day...... I have to submit my project on Wednesday......

line {int Ctrl+z=26;}

from this u will remove line {int Ctrl+z=26;}

 

the bolded components u get no errors.........

Nice Concept .. Goodday Im Allan , CpE student .We are going to do this in our Arduino Final Project , Is there any further consideration on that project ?

We will be using GSM Module SIMCOM900D is it ok to use other sim version of GSM module ? 

Thanks , Hope for your Reply sir 

hi 

we r aslo doing the same project . need some help regarding this ,plz help me .
contact mail: sainaveendavu143@gmail.com

sir am making final project . am doing cpe . am using gps and gsm with arduino . send me code without lcd

mumarkhan153@gmail.com

 

Hi sir,why you didnt include gps.h header file,,,i'm new to arduino,explain me sir

Nice Saddam Khan...
You have a creative mind 
Can you help me in My final year project "GPS & GSM base Transport Tracking System" 
Am new and dont know where to start..
I shall be very Thankful to you... 

HEY 
i want know,what changes should i do in below programme.to get seperate lat and long?
for eg.its showing *1858.023007321.0021
but i want
lat:18.5802300
long:73.210021
pls tell me.
 
 
 
 
 
#include<lpc214x.h>                                             /*Header file*/
#include "gsm.h"             //header file
extern unsigned char cmgf[]="AT+CMGF=1";                        //Text format in GSM modem
extern unsigned char cmgs[]="AT+CMGS=\"9952082259\"";           //Mobile number to which the msg is sent
extern unsigned char msg[]="*\0";   //secret code
extern unsigned char readall[]="AT+CMGR=\"REC UNREAD\"\r\n";
static unsigned char lat[10];
static unsigned char lon[11];
extern int blink;
unsigned char content[7];
void txu1(unsigned char data)  //Transmit a byte of data through UART1
{
while(!(U1LSR & 0x20));                         // Wait until UART1 ready to send character  
U1THR = data; 
}
unsigned char rxu1()
{
unsigned char p;
while ((U1LSR&0x01)!=1);
p=U1RBR;
return p;
}
unsigned char rxu0()
{
unsigned char p;
while ((U0LSR&0x01)!=1);
p=U0RBR;
return p;
}
void sendstring(unsigned char *p) //Sends a string of data through UART1
{
while(1)
{
if(*p=='\0') break;
txu1(*p++);
}
}
void delaygsm()  //delay function
{
int i,j;
for(i=0;i<60000;i++)
for(j=0;j<51;j++);
}
void delay2()  //delay function
{
int i,j;
for(i=0;i<60000;i++)
for(j=0;j<200;j++);
}
unsigned char recuart1() //recieves a byte from UART1
{
unsigned char p;
while ((U1LSR&0x01)!=1);
p=U1RBR;
return p;
}
 
  
 
void recgps() //Receive the 70 chrs to fill up info[]
 
{
 
unsigned char p;
int gps=0;
int i;
while(gps==0)
{
p=rxu0();
while(p!='$')
{
p=rxu0();
}
p=rxu0();
if(p=='G')
{
}
else
continue;
p=rxu0();
if(p=='P')
{
}
else
continue;
p=rxu0();
if(p=='G')
{
}
else
continue;
p=rxu0();
if(p=='G')
{
}
else
continue;
p=rxu0();
if(p=='A')
{
while(p!=',')
{
p=rxu0();
}
p=rxu0();
while(p!=',')
{
p=rxu0();
}
for(i=0;i<9;i++)
{
lat[i]=rxu0();
}
p=rxu0();
while(p!=',')
{
p=rxu0();
}
p=rxu0();
while(p!=',')
{
p=rxu0();
}
for(i=0;i<10;i++)
{
lon[i]=rxu0();
}
lat[9]='\0';
lon[10]='\0';
gps=1;
}
else
continue;
}
}
 
void uart1_irq() __irq  //ISR if anything is recieved in UART1, the same is transmitted through UART0
{
unsigned char p;
p=U1RBR;
if(p=='a')
{
sendmsg();
}
VICVectAddr=0;
}
void sendmsg(void)
{
recgps();
sendstring(cmgf);
txu1(0x0d); // equivalent of 
txu1(0x0a); // enter key
delaygsm();
sendstring(cmgs);
txu1(0x0d);
txu1(0x0a);
delaygsm();
sendstring(msg);
sendstring(lat);
sendstring(lon);
txu1(0x1a);
delay2();
txu1(0x1a);
}
void initgsm() //Initialization of UART0,UART1 and ISR
{
U0LCR=0x83;
U0DLL=0x61;
U0DLM=0x00;
U0LCR=0x03;
U1LCR=0x83;
U1DLL=0x61;
U1DLM=0x00;
U1LCR=0x03;
U1IER=0x01;
U1FCR=0x07;
VICIntSelect&=0xffffff7f;
VICVectAddr2=(unsigned int)uart1_irq;
VICIntEnable|=0x00000080;
VICVectCntl2=0x20|7;  
}
void gsmperform(void)
{
PINSEL0|=0x00050005;
PINSEL1|=0x00000000;
PINSEL2|=0x00000000;
initgsm();
sendstring("ATe0\r\n");
delaygsm();
sendstring("AT+CMGD=1,4\r\n");
delaygsm();
sendstring("AT+CNMI=1,0,0,0\r\n");
delaygsm();
}

where to enter the mobile no to which it send the latitude and longitude

 

extern unsigned char cmgs[]="AT+CMGS=\"9952082259<--HERE, LINE 4>\"";           //Mobile number to which the msg is sent

Can we enter more then one recipent number

 

How will I get the source code for sending data to cell phone and receiving the same from the GPS receiver?

Dear Saddam,

avesom effort........... but the circuit is not complete kindly share all the info in your circuit diagram along with the battery rattings plus the circuit if we want to connect it with car battery thanks.... i am also curious about the cell no to which we send the msg thanks.. any 1 can reply plz

 

Good day Sir,

What if i didnt include the lcd and remove lcd part in code, will it still send the longtitude and latidude?

 

did you use some trigger for the device to send an sms? or it send location every 20sec?

 

i am new user. hope you can help me. thankyou in advance :)

hi

I want to include a triggger or button to receive the gps location thru sms can u please help me with source code i dont want to use lcd display i want to use arduino and gps and gsm only 

pls help me 

 

Sir their is no error in the code but message is not sent to me from gsm.I am using sim900 instead of sim300.plz help me sir?

thanks

Hello, Saddam.

Can we extend this project to track the number of vehicles approaching a traffic signal and correspondingly changing the signal duration?

Requesting a quick reply as this is my final year project and I'm due submission in two weeks.

Regards,

Vishal.

Where is the connection between the arduino board and the vehicle????? And how would I read the location when the vehicle is stolen????

R u kidding me...There will b no connection between car and arduino...Just place/mount all hardwares somewhere in your car...the GSM module will send lattitude-longitude(location) periodically to given mobile number...

hello

myself mihna 

pls send me the program for gps and gsm 

seperately

dear suddam.. please explain detailed operation and working of this system. ..is it continuesly send messages such as latitude and longitude to mobile phone when the vehicle contain this system moving... plzz replay ...me or give me your mail id or whatsapp number

Please explain the exact process of coding gsm and gps using ardino

 

black book of this project please

i'm using arduino uno and skylab gps receiver this code showing error can i have the another code its  urgent to me plz do respond 

Did you get the output??? Can you please share the code in case you got outpu.. Please its urgent

CAI I USE SIM 900

 

Want to develop a system to function over 1,5km2 to monitor numerous small vehicles within a site. Will GPS co-ordinates be specific enough to accurately place vehicles?

the accuracy depends upon your GPS MODULE...there are many varients available in market...

The refresh rate in the given program is 20 sec.

I know it can be changed according to our requirement in the program.

Can the shield handle a refresh rate of 0.5 sec???

And also can anyone please tell me what is the least time in which the next location can be traced from the sattelite??

 

hello sir, 

i want to add vehicle speed detector in which the speed of vehicle does not exceeds the limitsd speed if it exceeds the speed limit the it msgs the car no nd the csrs speed... 

how to add ? plz help me

 

Hi, ,mine didn't compile can anyone please assist me ksmphahlele@gmail.com

Hi everyone , I m sending message from mobile ....... but not getting response on the mobile from the GSM module i.e the value of " lat" . and "long"....please help me out

Hello saddam,

i am doing the same project. I have some questions. What is your email sir? my email : mybestfart123@gmail.com

Hello All,

I am 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 modem and a GSM modem.
If possible please send me a "error free code" and circuit diagram as possible as soon plz..

My mail id is : 
er_akhilesh15@yahoo.com

Thank You in Advancesmiley

 

How to program GSM and gps with Arduino uno

Hello sir,

Can We attach Any Other Message with the lattitude and longitude?

hello sir,

i am doing same project.which gsm and gps modules are used in this project

sir compiling error in int ctrl+z=26; please help me,plese reply

Pages

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Search Engines will index and follow ONLY links to allowed domains.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.