Difference between revisions of "PG31 GPS USB Dev Board"

From OpenCircuits
Jump to navigation Jump to search
m (Reverted edits by 194.176.176.82 (Talk); changed back to last version by 193.51.215.2)
 
(43 intermediate revisions by 26 users not shown)
Line 1: Line 1:
[http://kissy-sait.ifrance.com/ane-nf/ a8ne nf4 ultra socket 939] [http://darkmordor.50webs.com/description/ricetta-sicilia.htm ricetta sicilia] [http://weaselbitch.50webs.com/text/xiamen/ xiamen] [http://yourstodestroy.50webs.com/mascherata-al/ mascherata al messico] [http://rndroponyer.50webs.com/lib/la-locura3/ la locura de yahir] [http://tumma-valo.ifrance.com/html/ffff/ ffff] [http://yourstodestroy.50webs.com/accreditante/ accreditante] [http://irishais.50webs.com/text/e-non7/ e non finisce mica il cielo] [http://rndroponyer.50webs.com/lib/lost-se1/ lost s02e15] [http://rhin-per.ifrance.com/adverbale.htm adverbale] [http://tumma-valo.ifrance.com/html/programma-elettorale/ programma elettorale] [http://weaselbitch.50webs.com/text/fscaller1/ fscaller] [http://restartsaber.50webs.com/aree-sosta.htm aree sosta camper torino] [http://ivo-lisses.ifrance.com/description/occhiali-persol.htm occhiali persol] [http://arelpei-cnek.ifrance.com/lib/gioco-nuovo/ gioco nuovo] [http://yourstodestroy.50webs.com/fatti-bella/ fatti bella e taci] [http://abelle34st.50webs.com/small/avensis-toyota.htm avensis toyota] [http://genka-manjer.ifrance.com/blog/gifhorn/ gifhorn] [http://arelpei-cnek.ifrance.com/lib/sovrappeso/ sovrappeso] [http://tumma-valo.ifrance.com/html/diritto-privato1/ diritto privato gazzoni] [http://captlychee.50webs.com/directory/test-sul1.htm test sul futuro] [http://kissy-sait.ifrance.com/balcani/ balcani] [http://ear-house.ifrance.com/dancer-texas/ dancer texas] [http://tumma-valo.ifrance.com/html/polo-sport1/ polo sport ralph lauren] [http://kissy-sait.ifrance.com/batterie-videocamera/ batterie videocamera canon] [http://abelle34st.50webs.com/small/pover-diablo.htm pover diablo] [http://dancfiri-dance.ifrance.com/napule-e1/ napule e] [http://weaselbitch.50webs.com/text/modem-banda/ modem banda base] [http://ear-house.ifrance.com/hemicidaris/ hemicidaris] [http://darkmordor.50webs.com/description/www-sex19.htm www sex action live] [http://weaselbitch.50webs.com/text/televisori14/ televisori 17] [http://rhin-per.ifrance.com/iriver7.htm iriver 128] [http://rhin-per.ifrance.com/cf-mp.htm cf mp3] [http://ear-house.ifrance.com/briscola/ briscola] [http://dancfiri-dance.ifrance.com/nestle-latte/ nestle latte per neonati] [http://arelpei-cnek.ifrance.com/lib/planetvideo/ planetvideo] [http://dancfiri-dance.ifrance.com/clk-3/ clk 270 avantgarde] [http://genka-manjer.ifrance.com/blog/clelia-rondinella/ clelia rondinella] [http://yourstodestroy.50webs.com/hotel-fa/ hotel fa fano] [http://irishais.50webs.com/text/gloria-gloria/ gloria gloria alleluia] [http://ear-house.ifrance.com/the-prince/ the prince of persia] [http://abelle34st.50webs.com/small/traduttori-per.htm traduttori per pc inglese italiano] [http://lent-san.ifrance.com/data/side-wall.htm side wall ses] [http://darkmordor.50webs.com/description/eveanescence.htm eveanescence] [http://nikanaw-ru.ifrance.com/blog/the-beautiful.htm the beautiful south munch our hits] [http://ear-house.ifrance.com/tv-radio/ tv radio lcd] [http://darkmordor.50webs.com/description/fuga-dall2.htm fuga dall incubo] [http://darkmordor.50webs.com/description/stivali-equitazione.htm stivali equitazione] [http://nikanaw-ru.ifrance.com/blog/disponibile-la3.htm disponibile la demo di warcraft iii] [http://captlychee.50webs.com/directory/blade-maze.htm blade maze] [http://restartsaber.50webs.com/www-rdi3.htm www rdi com] [http://rhin-per.ifrance.com/filaforum-assago.htm filaforum assago] [http://genka-manjer.ifrance.com/blog/anthony-quayle/ anthony quayle] [http://tumma-valo.ifrance.com/html/domecq/ domecq] [http://ladyshock.50webs.com/san-agostino/ san agostino] [http://nikanaw-ru.ifrance.com/blog/www-all1.htm www all miusic] [http://captlychee.50webs.com/directory/pigro-pino1.htm pigro pino daniele] [http://irishais.50webs.com/text/grande-fratello48/ grande fratello in spagna] [http://captlychee.50webs.com/directory/shrink-wrap.htm shrink wrap] [http://weaselbitch.50webs.com/text/idrocefalia/ idrocefalia] [http://tumma-valo.ifrance.com/html/p-7/ p4 478 cpu] [http://rhin-per.ifrance.com/tonsille-le.htm tonsille le varie patologie] [http://restartsaber.50webs.com/macromedia-fireworks1.htm macromedia fireworks mx 2004] [http://captlychee.50webs.com/directory/free-paid.htm free paid surveys] [http://weaselbitch.50webs.com/text/lc-gae2/ lc 32ga5e] [http://lent-san.ifrance.com/data/ad-corpus.htm ad corpus] [http://tumma-valo.ifrance.com/html/coppia-ingoio/ coppia ingoio] [http://captlychee.50webs.com/directory/max-trio2.htm max trio cordless] [http://arelpei-cnek.ifrance.com/lib/gastonia/ gastonia] [http://captlychee.50webs.com/directory/prima-casa.htm prima casa] [http://dancfiri-dance.ifrance.com/burundis/ burundis] [http://irishais.50webs.com/text/fighe-delle/ fighe delle persone famose] [http://rhin-per.ifrance.com/hotel-delle.htm hotel delle terme ischia] [http://dancfiri-dance.ifrance.com/infedelta-coniugali/ infedelta coniugali] [http://yourstodestroy.50webs.com/calcio-di/ calcio di rigore] [http://lent-san.ifrance.com/data/canon-ladcd.htm canon ladc52d] [http://ear-house.ifrance.com/francescana/ francescana] [http://rndroponyer.50webs.com/lib/kit-woofer/ kit woofer] [http://ivo-lisses.ifrance.com/description/arizona-shopping.htm arizona shopping] [http://arelpei-cnek.ifrance.com/lib/country-music/ country music] [http://lent-san.ifrance.com/data/scarlett.htm scarlett] [http://rndroponyer.50webs.com/lib/davy-havok/ davy havok] [http://ladyshock.50webs.com/scheda-video81/ scheda video sapphire ati radeon 9250] [http://genka-manjer.ifrance.com/blog/autunno-inverno/ autunno inverno diesel maglieria donna] [http://rhin-per.ifrance.com/intellimouse-optical.htm intellimouse optical 1 1] [http://ladyshock.50webs.com/software-invio/ software invio sms] [http://captlychee.50webs.com/directory/roberto-mariani.htm roberto mariani] [http://irishais.50webs.com/text/staf-srl/ staf srl] [http://irishais.50webs.com/text/kingston-cf2/ kingston cf] [http://restartsaber.50webs.com/codici-sblocco27.htm codici sblocco motorola 835] [http://tumma-valo.ifrance.com/html/lultimo-gangster/ lultimo gangster] [http://irishais.50webs.com/text/merrell-blu/ merrell blu] [http://restartsaber.50webs.com/tamenghest.htm tamenghest] [http://abelle34st.50webs.com/small/mellin-latte1.htm mellin latte in polvere] [http://abelle34st.50webs.com/small/dj-tommy2.htm dj tommy vee stay] [http://rhin-per.ifrance.com/honda-civic16.htm honda civic crx] [http://nikanaw-ru.ifrance.com/blog/commander-keen1.htm commander keen 2000] [http://genka-manjer.ifrance.com/blog/gazi/ gazi] [http://rndroponyer.50webs.com/lib/fotografie-nudo/ fotografie nudo] [http://dancfiri-dance.ifrance.com/non-andare/ non andare col tamburo] [http://ladyshock.50webs.com/incd-cd/ incd cd rw] [http://lent-san.ifrance.com/data/katia-grande1.htm katia grande fratello 5] [http://darkmordor.50webs.com/description/giugno-.htm giugno 84 tiziano ferro] [http://weaselbitch.50webs.com/text/ferrari-10/ ferrari 360 spider] [http://abelle34st.50webs.com/small/kettler-vito.htm kettler vito] [http://genka-manjer.ifrance.com/blog/sexi-hostess/ sexi hostess] [http://rndroponyer.50webs.com/lib/offerta-auto/ offerta auto km 0] [http://arelpei-cnek.ifrance.com/lib/katja-kassin/ katja kassin] [http://genka-manjer.ifrance.com/blog/immagini-rally/ immagini rally] [http://weaselbitch.50webs.com/text/asus-ntd/ asus n6600td] [http://ear-house.ifrance.com/forno-ho/ forno ho 97 p forni] [http://captlychee.50webs.com/directory/champagne-in.htm champagne in paradiso] [http://rhin-per.ifrance.com/hinh-anh2.htm hinh anh hong nhung] [http://restartsaber.50webs.com/lavazza.htm lavazza] [http://ear-house.ifrance.com/green-day6/ green day] [http://tumma-valo.ifrance.com/html/e-forte/ e forte un casino] [http://rndroponyer.50webs.com/lib/chicas-locas/ chicas locas] [http://rhin-per.ifrance.com/e-venne1.htm e venne il giorno dei limoni neri] [http://ivo-lisses.ifrance.com/description/scopate-pompini.htm scopate pompini] [http://rhin-per.ifrance.com/lnb-mti.htm lnb mti] [http://darkmordor.50webs.com/description/samsung-laser13.htm samsung laser 2010] [http://arelpei-cnek.ifrance.com/lib/katzenball/ katzenball] [http://tumma-valo.ifrance.com/html/tappeto-roulant/ tappeto roulant] [http://abelle34st.50webs.com/small/umts-nokia1.htm umts nokia bluetooth] [http://arelpei-cnek.ifrance.com/lib/immagini-baci/ immagini baci sul collo] [http://restartsaber.50webs.com/sony-vgn4.htm sony vgn s4hp] [http://lent-san.ifrance.com/data/maglia-adidas.htm maglia adidas donna] [http://darkmordor.50webs.com/description/soluzioni-prima.htm soluzioni prima prova esami di stato 200] [http://rndroponyer.50webs.com/lib/no-we/ no we are free] [http://rndroponyer.50webs.com/lib/seggiolini-baby/ seggiolini baby bicicletta] [http://tumma-valo.ifrance.com/html/sussidio-inps/ sussidio inps per maternita] [http://lent-san.ifrance.com/data/evanescence-eternal.htm evanescence eternal] [http://arelpei-cnek.ifrance.com/lib/italia-sardegna1/ italia sardegna vacanze al mare in] [http://kissy-sait.ifrance.com/transcend-mmc3/ transcend mmc] [http://abelle34st.50webs.com/small/www-pattayalivecam.htm www pattayalivecam com] [http://ivo-lisses.ifrance.com/description/mbc.htm mbc] [http://rhin-per.ifrance.com/primolevi.htm primolevi] [http://arelpei-cnek.ifrance.com/lib/lettori-memory9/ lettori memory card xd] [http://dancfiri-dance.ifrance.com/parafrasi-divina2/ parafrasi divina commedia inferno v] [http://genka-manjer.ifrance.com/blog/monitor-lcd69/ monitor lcd hard disk] [http://ear-house.ifrance.com/concerti-dalla/ concerti dalla a alla z] [http://nikanaw-ru.ifrance.com/blog/gli-innamorati1.htm gli innamorati goldoni libri] [http://restartsaber.50webs.com/agriturismo-mugello.htm agriturismo mugello] [http://restartsaber.50webs.com/vecina.htm vecina] [http://ear-house.ifrance.com/pc-maxdata/ pc maxdata favorit 1000 as] [http://weaselbitch.50webs.com/text/nokia-dual/ nokia dual voltage rsmmc] [http://weaselbitch.50webs.com/text/il-nostro7/ il nostro anniversario] [http://arelpei-cnek.ifrance.com/lib/piano-operativo/ piano operativo di sicurezza] [http://rhin-per.ifrance.com/gigi-s2.htm gigi s] [http://weaselbitch.50webs.com/text/fue/ fue] {| align=right
+
{| align=right
 
|-
 
|-
 
|  
 
|  
Line 17: Line 17:
 
[[Image:PG31-USB-Connection.jpg|PG31 USB Connection]]
 
[[Image:PG31-USB-Connection.jpg|PG31 USB Connection]]
  
The USB connector has four pins : Vcc (*around* 5V), GND, D , D-. Tying these four connections to the CP2102 is easy enough.
+
The USB connector has four pins : Vcc (*around* 5V), GND, D+, D-. Tying these four connections to the CP2102 is easy enough.
  
 
[[Image:PG31-USB-Connection-Schematic.jpg]]
 
[[Image:PG31-USB-Connection-Schematic.jpg]]
Line 35: Line 35:
 
Once the drivers are installed, the CP210x will turn into a serial com port! Yes! It's weird to think about until you see it happen. So this USB dev board now acts like a com port on my computer. All I have to do is pass characters in and out COM 5 (for example) and I can do things over USB! No messy drivers, no protocols to think about, it's all done in the IC. All right!
 
Once the drivers are installed, the CP210x will turn into a serial com port! Yes! It's weird to think about until you see it happen. So this USB dev board now acts like a com port on my computer. All I have to do is pass characters in and out COM 5 (for example) and I can do things over USB! No messy drivers, no protocols to think about, it's all done in the IC. All right!
  
One thing to note when you are using the CP210x ICs, the Linux community may scoff. SI Labs did a great job with the windows support, but a piss-poor job of opening t
+
One thing to note when you are using the CP210x ICs, the Linux community may scoff. SI Labs did a great job with the windows support, but a piss-poor job of opening the drivers for the open-source community. I'm not really a Linux person so it didn't effect me. But if your app needs linux connectivity, you may want to take a quick look for other potential ICs. Last I heard, there was good Linux support for the CP2102, but there was nothing for the CP2103 GPIO control...
1000
 
he drivers for the open-source community. I'm not really a Linux person so it didn't effect me. But if your app needs linux connectivity, you may want to take a quick look for other potential ICs. Last I heard, there was good Linux support for the CP2102, but there was nothing for the CP2103 GPIO control...
 
  
 
One last con : The ICs come in QFN leadless package only. YES it can be soldered by hand, but you'll need some experience and/or some good hot-air soldering tools. I taught myself how to rework stuff using this IC. You really can't destroy it, but you can certainly delaminate (kill) the PCB if you heat it for excessive amounts of time. Don't 'not' create a PCB or a design because of silly SMD parts. They're not that hard to solder!
 
One last con : The ICs come in QFN leadless package only. YES it can be soldered by hand, but you'll need some experience and/or some good hot-air soldering tools. I taught myself how to rework stuff using this IC. You really can't destroy it, but you can certainly delaminate (kill) the PCB if you heat it for excessive amounts of time. Don't 'not' create a PCB or a design because of silly SMD parts. They're not that hard to solder!
Line 65: Line 63:
  
 
===Things to Improve===
 
===Things to Improve===
So that's pretty much it. The board works well, and assuming Laipac doesn't change their parts again, we will produ
+
So that's pretty much it. The board works well, and assuming Laipac doesn't change their parts again, we will produce the board for some time.
1000
 
ce the board for some time.
 
  
 
We may consider migrating to a different USB IC someday but the CP2102 continues to be a really simple to use USB to UART IC.
 
We may consider migrating to a different USB IC someday but the CP2102 continues to be a really simple to use USB to UART IC.
 
----
 
----
===Documents===
+
==Documents==
 
[[Media:PG31 USB Schematic.pdf|PG31 USB Schematic]]
 
[[Media:PG31 USB Schematic.pdf|PG31 USB Schematic]]
  
Line 83: Line 79:
 
FP Name: PG31
 
FP Name: PG31
  
<b>Supplier Info:</b><br>
+
<b>Supplier Info:</b>
 
Spark Fun Electronics part # : Eval-PG31-USB<br>
 
Spark Fun Electronics part # : Eval-PG31-USB<br>
 
Single Piece Price : $29.95
 
Single Piece Price : $29.95
  
<b>Related Items:</b><br>
+
<b>Related Items:</b>
 +
 
 +
* [[PG31 GPS RS232 Dev Board]]
  
 
[[Category:Projects]]
 
[[Category:Projects]]

Latest revision as of 10:55, 16 December 2008

PG31 USB Dev Board

Description:
You've probably heard about the CP210x USB ICs from Silicon Labs, now here's an application that uses it. The CP2102 gives us 3V TTL to a VCP (virtual comm port) over USB as well as generating the 3.3V needed for the board.

In this project we demonstrate how to:

  • Setup a USB to Serial link
  • Use the CP2102 for 3.3V
  • Use a SMD 12mm battery holder

USB Connection[edit]

The CP2102 USB IC is fairly easy to use once you've plugged it down a couple times.

PG31 USB Connection

The USB connector has four pins : Vcc (*around* 5V), GND, D+, D-. Tying these four connections to the CP2102 is easy enough.

PG31-USB-Connection-Schematic.jpg

There are a couple things to note. In this setup, we do not have any ESD protection or surge supression. We are quite possibly violating some USB standards. But does it work? Yep.

When you configure the CP2102 this way, it can source up to 100mA at 3.3V using its internal voltage regulator. This is perfect for our application as the PG31 needs ~40mA at 3.3V.

Note the TX pin on the CP2102 is an output and needs to be connected to the RX pin on the PG31. This screwed me up a few times.

The CP2102 has built-in cystal and eeprom. These means you need very few external components to get it working. You can even program in your own ID string so when you plug it onto your computer, it comes up with the name of your widget!

When the CP210x is attached to a computer (and it's soldered correctly) you will see windows hardware wizard request drivers. These drivers can be downloaded from SI Labs. You can also create your own signature drivers using some SI Labs software.

You can also program the internal EEPROM to reflect your own product ID and serial strings. This software is from SI Labs as well but I forget were - when someone finds it, post it here.

Once the drivers are installed, the CP210x will turn into a serial com port! Yes! It's weird to think about until you see it happen. So this USB dev board now acts like a com port on my computer. All I have to do is pass characters in and out COM 5 (for example) and I can do things over USB! No messy drivers, no protocols to think about, it's all done in the IC. All right!

One thing to note when you are using the CP210x ICs, the Linux community may scoff. SI Labs did a great job with the windows support, but a piss-poor job of opening the drivers for the open-source community. I'm not really a Linux person so it didn't effect me. But if your app needs linux connectivity, you may want to take a quick look for other potential ICs. Last I heard, there was good Linux support for the CP2102, but there was nothing for the CP2103 GPIO control...

One last con : The ICs come in QFN leadless package only. YES it can be soldered by hand, but you'll need some experience and/or some good hot-air soldering tools. I taught myself how to rework stuff using this IC. You really can't destroy it, but you can certainly delaminate (kill) the PCB if you heat it for excessive amounts of time. Don't 'not' create a PCB or a design because of silly SMD parts. They're not that hard to solder!


Battery Backup[edit]

12mm coin cell holder

If you're playing with GPS, you've got to have a battery backup. The 12mm coin cell lithium allows the PG31 (and many other GPS receivers) to retain the alamanac data. This small battery provides just enough juice for 3-5 years. By having alamanac data at power on, the GPS receiver will be able to do a warm lock instead of a cold lock. Cold locks take 1-2 minutes, warm locks, as little as 30 seconds. The alamanac data, in effect, allows the GPS receiver to 'guess' where it is in the world ("Last time I was on I was in Ohio, therefor, I will assume I'm near there").

If you're unfamiliar with Lithium Coin Cells - they come in a couple different sizes. I prefer 12mm just cause it's small but beefy enough to do most of the BBR (battery backed ram) that we need to support. The battery itself has a postive top (noted by the plus) and a ground on the bottom. You normally create a pad on the PCB for the ground and the coin cell holder is positive. We've learned the hard way that the bottom part of the cell is sometimes concave. This means that when you slide the coin cell onto the board, the concave ground part of the cell may not contact the PCB pad very well. If you're using a paste stencil, just leave a cutout for this pad. The extra paste will add 5-10 mils of solder to the pad. If you're solder the thing by hand, add a little blob of solder to this ground pad to give it some height. When you insert the battery, it should ride nicely on top of the ground pad blob.


PG31 Footprint[edit]

PG31-Footprint.jpg

Now about the footprint for the PG31. Unless the manufacturer hands you a foorprint file or a simple, recommended FP in the datasheet, you're going to have to go it on your own. We took the PG31 and a pair of calipers and went at it. It can be extremely difficult the first time. This PG31 FP took me twice to get correct. Do the best you can and try to account for things like the antenna connector. The second rev FP, I forgot to account for the MMCX connector, I put the DB9 connector right up against the PG31, and Viola - useless PCB! a.k.a another coaster for my coffee cup. But once you've got the FP, you're good for all future projects using that device. Now you know when engs hate to change parts...


Final Layout[edit]

PG31-USB-Layout.jpg

You can see the PCB layout is pretty straight forward. The 'solder jumpers' are a feature that SFE came up with to minimize our manufacturing time while allowing end users to populate the physical jumpers if they needed the ability to connect/disconnect a feature often and quickly. Most users just plug the PG31 onto their computer for quick evaluation. At some point, the CP2102 IC may need to be disconnected from the circuit so that an external micro or embedded system could be attached. If this is done back and forth often, the end user can clear the solder jumper with a swipe of the soldering iron, install a 2-pin header and a black plastic jumper. This now allows them to jumper/dejumper quickly and keeps us from having to solder the 2-pin headers into a board that may not need them.


Things to Improve[edit]

So that's pretty much it. The board works well, and assuming Laipac doesn't change their parts again, we will produce the board for some time.

We may consider migrating to a different USB IC someday but the CP2102 continues to be a really simple to use USB to UART IC.


Documents[edit]

PG31 USB Schematic

PG31-USB Protel File

PG31-USB Gerber Files

Footprints:
SFE Footprint Library

FP Name: PG31

Supplier Info: Spark Fun Electronics part # : Eval-PG31-USB
Single Piece Price : $29.95

Related Items: