GPS modem is a device which receives signals from satellite and provides information about latitude, longitude, altitude, time etc. The GPS navigator is more famous in mobiles to track the road maps. The GPS modem has an antenna which receives the satellite signals and transfers them to the modem. The modem in turn converts the data into useful information and sends the output in serial RS232 logic level format. The information about latitude, longitude etc is sent continuously and accompanied by an identifier string.
This article shows how to interface the GPS modem with ATmega16 and extract the location (latitude and longitude) from the GPGGA string and display it on LCD.
Description:
The connection of GPS modem with AVR microcontroller (ATmega 16) is shown in the circuit diagram. The ground pin of max 232 and serial o/p of GPS modem is made common. Pin2 of MAX232 is connected to pin 3 of GPS modem and pin 3 of max 232 is connected to pin 2 of modem. This type of connection is called a serial cross cable.
Pin 2 of MAX232 | Pin 3 of GPS Modem |
Pin 3 of MAX232 | Pin 2 of GPS Modem |
Pin 5 Ground Pin of MAX232 | Pin 5 Ground of GPS Modem |
The commonly available GPS modem gives output in serial (RS232) form. The output consists of a series of string.
String format:
The following is an example of the output string from the GPS module with its explanation. This output strings contains information about latitude, longitude, time etc and will always start with $GPGGA. Refer NMEA Standards for more details on string formats.
An example string has been given and explained below:
$GPGGA,100156.000,2650.9416,N,07547.8441,E,1,08,1.0,442.8,M,-42.5,M,,0000*71
1. A string always start from ‘$’ sign
2. GPGGA :Global Positioning System Fix Data
3. ‘,’ Comma indicates the separation between two values
4. 100156.000 : GMT time as 10(hr):01(min):56(sec):000(ms)
5. 2650.9416,N: Latitude 26(degree) 50(minutes) 9416(sec) NORTH
6. 07547.8441,E: Longitude 075(degree) 47(minutes) 8441(sec) EAST
7. 1 : Fix Quantity 0= invalid data, 1= valid data, 2=DGPS fix
8. 08 : Number of satellites currently viewed.
9. 1.0: HDOP
10. 442.8,M : Altitude (Height above sea level in meter)
11. -42.5,M : Geoids height
12. __ , DGPS data
13. 0000 : DGPS data
14. *71 : checksum
The following algorithm is used to extract the latitude and longitude information from the GPS module using $GPGGA string and display it on a LCD:
1. Get data in UDR and check weather that data is equal to $. If the data matches go to step(2) else get a new data.
2. Get data byte by byte and check if the received byte is equal to GPGGA
3. If the step (2) matches completely then go to step (4) else go back to step(1)
4. Leave first comma and wait till second comma (since we not looking for time).
5. Start taking data in an array lati_value[ ] till the next comma.
6. Get latitude direction in lati_dir
7. Do the same for longitude
8. Display the values on LCD and go back to step (1).
Main Components:
MAX232
The MAX232 IC is used to convert the TTL/CMOS logic levels to RS232 logic levels during serial communication of microcontrollers with PC. The controller operates at TTL logic level (0-5V) whereas the serial communication in PC works...
LCD
LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments...
ATmega16
ATmega16 is an 8-bit high performance microcontroller of Atmel’s Mega AVR family with low power consumption. Atmega16 is based on enhanced RISC (Reduced Instruction Set Computing) architecture with 131 powerful instructions. Most of the instructions execute in one machin...
Circuit Diagram:
Click Here For Source Code
Very nice blog...
ReplyDeleteGreat information provided. We also provide AVR Microcontroller Training in Noida. I appreciate your work.
good post...thanks for sharing.... Best software Training institute in Bangalore
ReplyDeleteI have read your blog its very attractive and impressive. I like it your blog.
ReplyDeletePython training in marathahalli bangalore | Best aws training in marathahalli bangalore | Best Devops training in marathahalli bangalore
Useful information.I bookmarked it.FIND YOUR JOBS HERE : Hyseplacements
ReplyDeleteNice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision....
ReplyDeletedata science online training
sas online training
linux online training
aws online training
testing tools online training
devops online training
salesforce online training
Informative blog,thankyou for sharing the information
ReplyDeleteAWS Training in Hyderabad
Digital Marketing Training in Hyderabad
Big Data Hadoop Training in Hyderabad
Digital Marketing Course in Hyderabad
Very Informative, Thanks for Sharing.
ReplyDeleteDigital Marketing Courses in Hyderabad
SEO Training in Hyderabad Ameerpet
SAP ABAP Training Institute in Hyderabad
Salesforce CRM Training in Hyderabad
Learning the ropes of big data and data science will advance your career and have a positive influence on your life, both personally and professionally.
ReplyDeletedata science course in hyderabad
Best stuff you have got and you keep update all of us.
ReplyDeletePython Training in Gurgaon
Python Institute in Gurgaon
Web Designing Course in Gurgaon
Web Designing Institute in Gurgaon
Great Article. Thanks for sharing info.
ReplyDeleteDigital Marketing Course in Hyderabad
Top Digital Marketing Courses with the live projects by a real-time trainer
line Digital Marketing Courses in Hyderabad
SEO Training in Hyderabad
Thank you for sharing such great information very useful to us.
ReplyDeletePython Training in Gurgaon
Great article ...Thanks for your great information....
ReplyDeleteGCP Training
Google Cloud Platform Training
GCP Online Training
Google Cloud Platform Training In Hyderabad
Thanks For Sharing this Post. Interested In Python!! Click here for the Best Python Training Institute in Gurgaon https://www.acil.in/python-training-in-gurgaon/
ReplyDeletevidmate app
ReplyDeleteThanks for Sharing Such an Informative Stuff...
ReplyDeleteaws tutorial videos
We as a team of real-time industrial experience with a lot of knowledge in developing applications in python programming (7+ years) will ensure that we will deliver our best in python training in vijayawada. , and we believe that no one matches us in this context.
ReplyDeleteThank you for your informative article, I have been doing research on this subject, and for three days I keep entering sites that are supposed to have what I am searching for, only to be discouraged with the lack of what I needed. Thank you again.
ReplyDeleteData Science Training in Hyderabad
Hadoop Training in Hyderabad
selenium Online Training in Hyderabad
Devops Online Training in Hyderabad
Informatica Online Training in Hyderabad
Tableau Online Training in Hyderabad
Talend Online Training in Hyderabad
very nice post.........
ReplyDeleter programming training in chennai
internship in bangalore for ece students
inplant training for mechanical engineering students
summer internships in hyderabad for cse students 2019
final year project ideas for information technology
bba internship certificate
internship in bangalore for ece
internship for cse students in hyderabad
summer training for ece students after second year
robotics courses in chennai
good....nice
ReplyDeletecategory/advocate-resume
category/agriculture-forestry-fishing
category/android-developer-resume
category/assistant-professor-resume
category/chartered-accountant-resume
category/database-resume
category/design-engineer-resume
category/developer-resume
category/engineer-resume
category/entrepreneur-and-financial-services-resume
Find my blog post here
ReplyDeletehttp://ttlink.com/bookmark/d3913482-056d-4e38-82e1-baa1036528ba
http://ttlink.com/bookmark/5931d44a-7910-41ec-9bab-f2b3082de030
http://ttlink.com/bookmark/3f596fd1-f173-4b25-ba95-0730a97ab3a8
Best Web Development Tools for Web Developers.
This is so elegant and logical and clearly explained. Brilliantly goes through what could be a complex process and makes it obvious.... big data hadoop training
ReplyDeletevery useful content shared by you. Thanks for sharing
ReplyDeletepython training course in Delhi
python training course in Noida
Your Guidance Helps me solve all my quires...Thanks for your Guidance
ReplyDeleteJava training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery
Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging. After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.
ReplyDeleteSaleforce Training in Gurgaon
Saleforce Developer Training in Gurgaon
Salesforce lightning training in Gurgaon
Salesforce Einstein training in Gurgaon
Salesforce integration training in Gurgaon
Salesforce Marketing Cloud Training in Gurgaon
this Free Gift Cards Codes is really good
ReplyDeletethanks for the information Pubg Codes
ReplyDeleteHello everyone I want to introduce you guys to a group a private investigators who can help you with information you need in any situation in life and they are ready to follow you step by step until your case is cleared just contact +17078685071 and you will happily ever after
ReplyDeletePremiumhackservices@gmail.com
Great post. Thank you for sharing such useful information. Please keep sharing.
ReplyDeleteClick Now
Click Now
Click Now
Click Now
Click Now
Click Now
Click Now
Click Now
Click Now
UVK Ultra Virus Killer Crack allows users to easily remove all kinds of malware, and perform all tasks related to Windows PC optimization,.Uvk Ultra Virus Killer Review
ReplyDelete