Anda di halaman 1dari 13

7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)

http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 1/13
Arduino Projects | Raspberry Pi | Electronic Circuits | Electronics Reference Design Library | AVR | PIC
| 8051 | Electronic Projects
How to interface GPS with AVR microcontroller
(ATmega16)
Summary
Description
Circuit Diagram
Video
Code
Code2
Components
Reference Design Library by TI
Summary
USER LOGIN
E-mail: *
chittabaral6@gmail.com
Password: *

Log in
Create new account
Request new
password
FEATURED ARDUINO
PROJECTS
Getting Started with
Arduino
LCD Arduino Interfacing
Xbee Arduino
Interfacing
Follow
411k Like

Home Insight EG Labs Articles Invention Stories Forum Knowledge Base Contribute
Advertise Subscribe Contact Us
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 2/13
Developed By: Akshay Daga
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.

Interface GPS with
Arduino
Interface SD Card with
Arduino
Call using Keyboard, GSM
& Arduino
SPI Module of Arduino
... more ardui no proj ects
TI REFERENCE DESIGN
LIBRARY
Featured Design
ELECTRONIC POINT
OF SALE/SERVICE
REFERENCE
DESIGN
Available Files:
Schematic
Diagram, Source
Codes, Design Guide,
etc.
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 3/13
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.

ViewDesign

Search More
Designs

Industrial
Smart Grid
Lighting
Alternative Energy
Automation & Process
Control
Automotive &
Transportation
Comm & Telecom
Computing &
Multimedia
Consumer Electronics
HealthTech
Motor Drive & Control
Safety & Security
Space & Defense
Video & Vision
ACTIVE FORUM
TOPICS
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 4/13
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
common ac neutral
and dc ground
INTERFACING LCD
TO 8051 BY Qurat-ul-
ain
About Password
control door lock
system using
microcontroller 89c51
Interfacing Resistive
Touch Screen to
MicroController
more
FEATURED
RASPBERRY PI
PROJECTS
How to Load Ubuntu on
Raspberry Pi
How to Configure
Raspberry Pi
How to use Alarm Signal
in Raspberry Pi
How to Get GUI on
Raspberry Pi
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 5/13
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).

Circuit Diagram
Playing Snake Game
using Raspberry Pi Game
Pad
How to Use Raspberry Pi
as a Game Server
... more raspberry pi proj ects
RELATED CONTENT
How to Interface GPS
with Arduino
How to Make Arduino as
Standalone GPS
Receiver with 16x2 LCD
Microcontrollers
GPS ( Global Positioning
System )
AVR Microcontroller
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 6/13
Video
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 7/13
Code
This Code is only visible to Registered users. Please Login/Register
Code2
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 8/13
56,514-Reads
203,796-Reads
This Code is only visible to Registered users. Please Login/Register
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
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 9/13
World's
Smallest
GPS/INS
vectornav.com
MEMS GPS Inertial
Navigation System
Low Cost / Size of a
Postage Stamp
75,609-Reads

ATmega16 is an 8-bit high performance microcontroller of Atmels
Mega AVR family with low power consumption. Atmega16 is based on
enha...
Reference Design Library by TI
TI reference design library, powered by EngineersGarage.com
Jump start system design and speed time to market
Comprehensive designs include schematics or block diagrams, BOMs, design files and test reports
Created by experts with deep system and product knowledge
Spans TI's portfolio of analog, embedded processor and connectivity products
Supports a broad range of applications including industrial, automotive, consumer, medical and more
Features Designs
10uA-100mA, 0.05% Error,
High-Side Current Sensing
Solution
Programmable,Multi-Chemistry
Fast Charge designs
Cranking Simulator for
Automotive Applications
10ua-100-ma programmable
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 10/13
This TI Precision Verified Design
provides the theory, component
selection, simulation, complete PCB
schematic and layout, bill of
materials, and measured
performance of a split-supply, high-
side four decade current sensing
solution that can accurately detect
load currents from 10uA-100mA.
The corresponding linear output is
from 10mV to 4.9V which enables
measurement by common 5V ADCs.
This reference design is a
programmable, monolithic IC
solution for fast-charge
management of nickel cadmium
(NiCd), nickel metal-hydride (NiMH),
or lithium-ion (Li-Ion) batteries in
single- or multi-chemistry
applications. It chooses the proper
battery chemistry (either nickel or
lithium) and proceeds with the
optimal charging and termination
algorithms.
This design is a cranking
simulator which generates
three different cranking
pulses to test automotive
systems up to 50W. A
microcontroller sets the
output voltage of a
synchronous buck in the
range of 2-15V accordingly
to the programmed curves.
Output current is in the
range of 3.3-25A. It is a
complete system and all the
information necessary to
build the device is available.
View Design View Design View Design
Search & Download More TI Designs
Industrial
industrial
View All
Smart Grid
View All
Lighting
lighting
View All
Alternative Energy Automation & Process Control Automotive & Transportation
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 11/13
View All View All View All
Communication & Telecom
View All
Computing & Multimedia
View All
Consumer Portable Electronics
View All
HealthTech
View All
Motor Drive & Control
View All
Safety & Security
View All
Space, Avionics & Defense Video & Vision
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 12/13
Tweet
View All View All

View the Important Notice for TI Designs covering authorized use, intellectual property matters
and disclaimers.
41619 reads
World's Smallest GPS/INS
vectornav.com
MEMS GPS Inertial Navigation System Low Cost / Size of a Postage Stamp
Featured Designs - Electronics Reference Design Library
1A Single-Input Single-Cell Li-
Ion Battery Charger Reference
6W USB Charger Reference
Design with Quasi
CC2531 USB Dongle Reference
Design
7/14/2014 GPS Interface | Interfacing GPS with AVR Microcontroller (Atmega16)
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/gps-interface-circuit 13/13
YOU ARE HERE Home
Top
Copyright 2012 EngineersGarage. All rights reserved. Privacy Policy | Refund Policy | About Us

Design Resonant/Flyback Controller

Anda mungkin juga menyukai