no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | atmel:gpslcd [2009/11/27 17:53] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Introduction ====== | ||
+ | {{ gpslcd.jpg }} | ||
+ | |||
+ | This project details how to connect a [[http:// | ||
+ | |||
+ | [[GpsLcdSource|GPS LCD Source code]] as a {{gpslcd.zip|ZIP file}} | ||
+ | |||
+ | =====What is needed===== | ||
+ | |||
+ | ^ Hardware ^ Description ^ | ||
+ | | {{devbrd.gif}} | **Atmel AVR Microcontroller Development System**\\ | ||
+ | | {{lcd1x16.jpg}} | **1x16 LCD Display** \\ Details of how to wire up a 1x16 display to the development board can be found at http:// | ||
+ | | {{vistapic.gif}} | **GPS Unit** \\ I used an [[http:// | ||
+ | | {{010-10206-00.gif}} | A GPS to RS232 breakout cable. | | ||
+ | | {{avr232cable.gif}} | **AVR board RS232 cable**\\ 4 Pin Molex wired to DB9-F\\ This cable should be supplied with the development board. | | ||
+ | | {{nullmodem.gif}} | **Null MODEM Adapter**\\ DB9-M to DB9-M\\ Wiring details for this adapter are given below | | ||
+ | |||
+ | ====The Software==== | ||
+ | * As the ATMEL AT90S2313 only has 2k of code space the demo version of [[http:// | ||
+ | * Hyperterminal or any suitable terminal emulation package. Useful for making sure that your GPS unit is tranmitted data. | ||
+ | |||
+ | |||
+ | ======GPS to Computer====== | ||
+ | First we make sure that your GPS unit is transmitted NMEA data. | ||
+ | * Connect the GPS-RS232 cable to your GPS unit | ||
+ | * Plug the cable into your computer | ||
+ | * Fire up your terminal emulator and configure to 4800 baud, 8 data bits, No parity, 1 stop bit. 4800-N81 | ||
+ | You should see a stream of communication beginning with the $ sign. The one that we are interested in is [[nmea# | ||
+ | < | ||
+ | $GPRTE, | ||
+ | $GPRMC, | ||
+ | $GPRMB, | ||
+ | $GPGGA, | ||
+ | $GPGSA, | ||
+ | $GPGSV, | ||
+ | $GPGLL, | ||
+ | $GPBOD,, | ||
+ | $GPVTG, | ||
+ | $PGRME, | ||
+ | $PGRMZ, | ||
+ | $PGRMM,WGS 84*06 | ||
+ | $HCHDG, | ||
+ | </ | ||
+ | |||
+ | ======GPS to AVR board====== | ||
+ | The RS232 cable that comes with AVR development board is wired as a DTE, as the GPS unit is also a DTE we need an adapter. | ||
+ | |||
+ | You need to purchase or make a short cable to join the two, this is sometimes called a NULL modem cable and simply swaps pins 2 and 3 over. | ||
+ | |||
+ | Below is a wiring diagram for the 9 pin connectors | ||
+ | {{ db9_null_dumb.png }} | ||
+ | |||
+ | ^ Connector1 ^ Connector2 ^ Function ^ | ||
+ | | 2 | 3 | Rx <- Tx | | ||
+ | | 3 | 2 | Tx -> Rx | | ||
+ | | 5 | 5 | Signal ground | | ||
+ | |||
+ | {{tag> |