Vehicle Tracking System using GPS and GSM modem







A Brief Description

Required Equipments

How it works?

Block Diagram

Algorithm

Detailed Pin Diagram

Problems Faced






A Brief Description


In this Project we have designed an embedded system which is used for tracking and positioning of any vehicle by using Global Positioning System (GPS) and Global system for mobile communication (GSM).

When the request by user is sent to the number at the modem, the system automatically sends a return reply to that mobile indicating the position of the vehicle.






Required Equipments







How it works?


In this project ATmega16 microcontroller is used for interfacing to various hardware peripherals. The current design is an embedded application, which will report the status of the Vehicle on demand. For doing so an ATmega16 microcontroller is interfaced to a GSM Modem and GPS Receiver. A GSM modem is used to send the position of the vehicle from a remote place. This modem continuously waits for a request SMS. If it is from a valid mobile number(checked with the content of the SMS, which means a password),the GPS modem gets activated and it then continuously gives the data i.e. the latitude and longitude indicating the position of the vehicle. The GPS modem gives many parameters as the output, but only the NMEA data coming out is read. Then only the latitude and longitude is converted to find out the name of the location of the vehicle. The converted data including the location name, time etc. is sent to the mobile at the other end from where the position of the vehicle is demanded.






Block Diagram




                                                                       pin diagram

                                                                                                                                               fig.1 Block Diagram






Algorithm




       1.Start
              2.GSM module's receiver turned on
              3.GPS receiver remains turned off
                     4.GSM waits for an SMS request
                            5.If receives a request
                                   6.If the request is valid
                                          7.Turn off the GSM receiver
                                          8.Turn on GPS receiver
                                          9.Get GPS data
                                          10.Turn off GPS receiver
                                          11.Turn on GSM receiver
                                          12.Parse data and get the Location
                                          13.Send an SMS including position information
                                   14.Else go to (4)
                            15.Else go to (4)
       16.End






Detailed Pin Diagram




                                                                       pin diagram

                                                                                                                             fig.2 Pin Diagram(GSM/GPS details omitted)





                                                                       pin diagram

                                                                                                                           fig.3 Pin Diagram for GPS/GSM module






Problems Faced


  1. The most diffiult problem we had to solve is to manage the data received through the GPS receiver. It receives a lot of data in a very short interval and it was difficult to sort out only the necessary attributes in a very short time.

  2. GPS/GSM Module and some more things to interface them:

  3. We had to observe the strings the GSM module gives in reply of different AT commands. We had to receive every reply carefully otherwise the device's behavior becomes unexpected.

  4. We faced problems with the mux. It was due to transferring lots of data frequently while receiving GPS data.

  5. Power source management was a problem we faced. We needed at least 9v and 1amp. Voltage was not a problem, but ensuring 1amp current was not being possible with batteries as they got discharged quickly. So, we used adapter for power source.





Back to top