General GPS project notes: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
I currently have three OEM GPS modules to play with. The Trimbles are 8 channel. (There is a pin compatible Lassen iQ that has 12 channels, might try one of those later).
Add links to project pages here.
 
== Equipment hoard ==
 
Handhelds - I have a Garmin [[eMap]], in my messenger bag most of the time.
 
Hockey puck - Emtac BTGPS III connected to this laptop at the moment
 
Modules
* Garmin [[GPS 25-LVC]] module (fired it up and then back in the box)
* Trimble [[Ace II]] (have not fired it up yet) 8 channel, $10 on eBay
* Trimble [[Lassen SQ]] currently connected to an SFE USB eval board
8 channel but really small! IQ is 12 channel. There is a new one out now too.
 
Base stations - [[Magnavox GPS reference station]].
 
== Modules ==


The Garmin is 12 channel. The Trimbles are interesting because they can generate
The Garmin is 12 channel. The Trimbles are interesting because they can generate
Line 7: Line 23:
I have external antennas for all three. All three are similar in that they produce a datastream on a TTY signal level serial port, so I need to interface to that. My intention is to do things in 2 stages; first build a generic board to take serial data out to an RS232 port connected to a computer then to build a PIC based datalogger/interface to manage the GPS and talk to a handheld device.
I have external antennas for all three. All three are similar in that they produce a datastream on a TTY signal level serial port, so I need to interface to that. My intention is to do things in 2 stages; first build a generic board to take serial data out to an RS232 port connected to a computer then to build a PIC based datalogger/interface to manage the GPS and talk to a handheld device.


At the PIC stage I want to use a Bluetooth module on the serial port so that my Dell Axim can talk to it without having any clumsy cable connection.


== Garmin ==
== Serial interfaces ==
 
 


== Trimble ==
===Serial TTY to USB===


=== Lassen ===
The [[Lassen SQ]] eval board has a [http://www.silabs.com/ Silicon Labs] CP2102 USB-to-UART chip on it. Silicon Labs has a bunch of interesting evaluation kits for sale at $11 - $30. For example, their ethernet kit has light and temperature sensors on it, so you can connect it to your network and program it to send emails with the readings in the message. They have a digital compass+accelerometer for $72. But I digress...


=== Lassen SQ ===
The CP2102 has a 100 ma 3.3 voltage regulator on board; the Lassen SQ board uses it to power the SQ from USB power. Since the SQ uses about 100 ma there is nothing left to power the Bluetooth stamp so I need to go to a separate regulator when running in Bluetooth mode.


== Serial interfaces ==


===Serial TTY to RS232===


===Serial TTY to Bluetooth===
===Serial TTY to Bluetooth===


===Serial TTY to USB===
I am going to try using the Bluetooth stamp from [http://www.SparkFun.com/ SparkFun]. The stamp requires a 3.3v supply, and responds to special AT commands (similar to a modem). It comes up 9600 8n1, so I had to connect a 3.3v TTL to RS232 converter to it and reprogram it to do 9600 8-odd-1 to work with my SQ.
 
The 3 pin regulators I got only do 100 ma as well. Should have ordered so
beefier ones. I can always just use TWO. :-) I have one on the Bluestamp and one on the Lassen SQ. It's working though it's a bit out of spec for the Bluestamp.
 
I should look at the STM LD1117 which does 800ma and costs about 75 cents.
 
===Bluetooth with ArcPad===
 
To get it working you have to power on the bluetooth GPS receiver, then go into the Bluetooth Manager in the PocketPC and set up the connection. Then you have to configure ArcPad to use the correct bluetooth COM port.
 
Each time you restart the GPS receiver you pretty much have to reboot the PDA and reconnect in the Bluetooth Manager and then start ArcPad again.
 
This is an ArcPad problem. (ArcPad 7 is what I am testing with.) I have since tested the Dell with [http://visualgps.net VisualGPS] products and it is able to handle disconnections without resorting to rebooting the Dell. Insert unkind words about ESRI here.
 
===Bluetooth with GPSd (and Linux)===
 
To get bluetooth into my laptop I am using a $15 adapter from SFE. It is bright orange and plugs into a USB port. I followed instructions from
[http://gpsd.berlios.de/bt.html the GPSd bluetooth page] with appropriate modifications for Ubuntu. It works like a charm.
 
Ubuntu Linux found the USB dongle, and it is already set up to support bluetooth.
I had to create the /etc/bluetooth/ entry with the ID of the [[Emtac BTGPS III]], add a line to my /etc/default/gpsd file and restart gpsd. That and wait for the BTGPS to get satellite lock.
 
== Wifi + GPS ==
 
There is now a wireless network in downtown Corvallis. [http://www.Alyrica.net/ Alyrica] is providing it. (Update, it appears to be useless) There are also numerous open access points around town.
 
I want to map them.
 
Easiest way to do this is with the Trimble / USB receiver and a data logger.
The logger needs to have mass storage and USB... or at least a TTY serial port.
 
== PIC datalogger ==
 
The idea here is to interface one of the GPS receivers to a PIC processor and have it log output to EEPROM for later analysis.


Should I get tired of how easy the RS232 and Bluetooth options can be,
First pass: Accept NMEA data
I might want to try USB.


===PIC datalogger===
Later: Accept TSIP data


===Power supply===
== Power supplies ==


High efficiency switching voltage regulators
7805 and friends turn too much energy into heat... sure are easy to use though.
[http://www.national.com/pf/LM/LM2597.html National LM2597] 3.3 and 5.0 "Simple Switcher"
The 78SR05 is a switcher disguised as a 3-pin replacement
8-DIP $3.78 Digikey


The National "Simple switcher" is efficient but not that simple. I bought a couple anyway to experiment. [http://www.national.com/pf/LM/LM2597.html National LM2597] 3.3 and 5.0 "Simple Switcher" are available in 8-DIP for $3.78 Digikey
Requires 1N5817 Schottky diode and 100 uH inductor (M9799-ND) and the usual handful of caps.
Requires 1N5817 Schottky diode and 100 uH inductor (M9799-ND) and the usual handful of caps.


Backup / standby power: Button cell batteries - CR2032
Instead of using several cells and a step-down regulator, another option is to use a step-up regulator. The Maxim MAX1674/MAX1675/MAX1676 is one. They are about $5 from Digikey. Using one of these allows generating 3.3v or 5v from a single cell (or two or three cells for more run time.)


Backup / standby power
I need to get some 22uH inductors and 47uF caps to use the 1674
Button cell batteries - CR2032


<pre>
For a few cents more there is also the MAX1774 ($5.43) which is a cool chip that has high efficiency, step-down for connection to a car battery, and single cell battery backup, It even has two regulators so you can have two output levels. It is really the bee's knees but once again, too complicated for my simple requirements. I just want a unit that runs on batteries for a long, long time.


Quantity  Part Number  Description  Customer Reference  Backorder Quantity  Unit Price
See app note [http://www.maxim-ic.com/appnotes.cfm/appnote_number/2018 Protection  From Blackouts: Dirt Cheap to Fully Integrated]
USD Extended Price
USD
1 4 H2053-ND CONN HEADER 10POS 2MM PCB TIN   0 0.76000 $3.04
2 10 P189-ND BATTERY LITHIUM COIN 3V 20MM   0 0.27000 $2.70
3 10 BA2032-ND HOLDER COIN CELL CR2032 EJECT   0 0.70000 $7.00
4 10 497-1442-5-ND IC POSITIVE REG 5V TO-220FP   0 0.64800 $6.48
5 10 CP-002AH-ND CONN PWR JACK 2.1X5.5MM HIGH CUR   0 0.36400 $3.64
6 10 CP-004A-ND CONN 2.1MM FEMALE PLUG 5.5MM OUT   0 0.55900 $5.59
7 4 AD22105AR-ND IC THERMOSTATIC SWITCH SS 8-SOIC   0 3.08000 $12.32
8 2 LM2597N-3.3-ND IC REG SIMPLE SWITCHER 8-DIP   0 3.78000 $7.56
9 2 LM2597N-5.0-ND IC REG SIMPLE SWITCHER 8-DIP   0 3.78000 $7.56
10 10 1N5817DICT-ND DIODE SCHOTTKY 20V 1A DO-41   0 0.30000 $3.00
11 2 P151-ND BATT 3V LITH CAMERA - BULK PKG   0 2.63000 $5.26


</pre>
[[Parts orders]]

Latest revision as of 20:28, 2 February 2007

Add links to project pages here.

Equipment hoard

Handhelds - I have a Garmin eMap, in my messenger bag most of the time.

Hockey puck - Emtac BTGPS III connected to this laptop at the moment

Modules

  • Garmin GPS 25-LVC module (fired it up and then back in the box)
  • Trimble Ace II (have not fired it up yet) 8 channel, $10 on eBay
  • Trimble Lassen SQ currently connected to an SFE USB eval board

8 channel but really small! IQ is 12 channel. There is a new one out now too.

Base stations - Magnavox GPS reference station.

Modules

The Garmin is 12 channel. The Trimbles are interesting because they can generate TSIP output which I can post-process in Pathfinder Office. The Garmin is interesting because I can try collecting RINEX data and postprocess that.

I have external antennas for all three. All three are similar in that they produce a datastream on a TTY signal level serial port, so I need to interface to that. My intention is to do things in 2 stages; first build a generic board to take serial data out to an RS232 port connected to a computer then to build a PIC based datalogger/interface to manage the GPS and talk to a handheld device.


Serial interfaces

Serial TTY to USB

The Lassen SQ eval board has a Silicon Labs CP2102 USB-to-UART chip on it. Silicon Labs has a bunch of interesting evaluation kits for sale at $11 - $30. For example, their ethernet kit has light and temperature sensors on it, so you can connect it to your network and program it to send emails with the readings in the message. They have a digital compass+accelerometer for $72. But I digress...

The CP2102 has a 100 ma 3.3 voltage regulator on board; the Lassen SQ board uses it to power the SQ from USB power. Since the SQ uses about 100 ma there is nothing left to power the Bluetooth stamp so I need to go to a separate regulator when running in Bluetooth mode.


Serial TTY to Bluetooth

I am going to try using the Bluetooth stamp from SparkFun. The stamp requires a 3.3v supply, and responds to special AT commands (similar to a modem). It comes up 9600 8n1, so I had to connect a 3.3v TTL to RS232 converter to it and reprogram it to do 9600 8-odd-1 to work with my SQ.

The 3 pin regulators I got only do 100 ma as well. Should have ordered so beefier ones. I can always just use TWO. :-) I have one on the Bluestamp and one on the Lassen SQ. It's working though it's a bit out of spec for the Bluestamp.

I should look at the STM LD1117 which does 800ma and costs about 75 cents.

Bluetooth with ArcPad

To get it working you have to power on the bluetooth GPS receiver, then go into the Bluetooth Manager in the PocketPC and set up the connection. Then you have to configure ArcPad to use the correct bluetooth COM port.

Each time you restart the GPS receiver you pretty much have to reboot the PDA and reconnect in the Bluetooth Manager and then start ArcPad again.

This is an ArcPad problem. (ArcPad 7 is what I am testing with.) I have since tested the Dell with VisualGPS products and it is able to handle disconnections without resorting to rebooting the Dell. Insert unkind words about ESRI here.

Bluetooth with GPSd (and Linux)

To get bluetooth into my laptop I am using a $15 adapter from SFE. It is bright orange and plugs into a USB port. I followed instructions from the GPSd bluetooth page with appropriate modifications for Ubuntu. It works like a charm.

Ubuntu Linux found the USB dongle, and it is already set up to support bluetooth. I had to create the /etc/bluetooth/ entry with the ID of the Emtac BTGPS III, add a line to my /etc/default/gpsd file and restart gpsd. That and wait for the BTGPS to get satellite lock.

Wifi + GPS

There is now a wireless network in downtown Corvallis. Alyrica is providing it. (Update, it appears to be useless) There are also numerous open access points around town.

I want to map them.

Easiest way to do this is with the Trimble / USB receiver and a data logger. The logger needs to have mass storage and USB... or at least a TTY serial port.

PIC datalogger

The idea here is to interface one of the GPS receivers to a PIC processor and have it log output to EEPROM for later analysis.

First pass: Accept NMEA data

Later: Accept TSIP data

Power supplies

7805 and friends turn too much energy into heat... sure are easy to use though. The 78SR05 is a switcher disguised as a 3-pin replacement

The National "Simple switcher" is efficient but not that simple. I bought a couple anyway to experiment. National LM2597 3.3 and 5.0 "Simple Switcher" are available in 8-DIP for $3.78 Digikey Requires 1N5817 Schottky diode and 100 uH inductor (M9799-ND) and the usual handful of caps.

Backup / standby power: Button cell batteries - CR2032

Instead of using several cells and a step-down regulator, another option is to use a step-up regulator. The Maxim MAX1674/MAX1675/MAX1676 is one. They are about $5 from Digikey. Using one of these allows generating 3.3v or 5v from a single cell (or two or three cells for more run time.)

I need to get some 22uH inductors and 47uF caps to use the 1674

For a few cents more there is also the MAX1774 ($5.43) which is a cool chip that has high efficiency, step-down for connection to a car battery, and single cell battery backup, It even has two regulators so you can have two output levels. It is really the bee's knees but once again, too complicated for my simple requirements. I just want a unit that runs on batteries for a long, long time.

See app note Protection From Blackouts: Dirt Cheap to Fully Integrated

Parts orders