Difference between revisions of "PG31 GPS USB Dev Board"

From OpenCircuits
Jump to navigation Jump to search
(Undo revision 12879 by 80.250.210.12 (Talk))
Line 1: Line 1:
[http://carmagaleano.ifrance.com/topic/top-country-song.html top 40 country song] [http://reinaferreri.iespana.es/html/darjeeling-tea.html darjeeling tea] [http://theli.isuisse.com/blog/a-child-guardianship.html a child guardianship legal of] [http://aero-lite.ibelgique.com/dock-floats.html dock float] [http://romonacumberlan.iespana.es/comments/wet-and-messy-party.html wet and messy party] [http://zench.isuisse.com/rondot.html kahlen picture rondot] [http://dtolstoles.isuisse.com/zoo-york-skate.html zoo york skate videos] [http://marlineoreilly.ifrance.com/small/intragastric-ballon.html intragastric ballon] [http://amel-larrieux.lufberry.in/ amel larrieux] [http://traceejeffreys.ifrance.com/topic/xp-sp2-connection.html xp sp2 connection limit] [http://erickacicero.ifrance.com/encargos-trabalhistas.html encargos trabalhistas] [http://inuyashachibi.50webs.com/amvets.html amvets pickup] [http://dakot-ces.isuisse.com/auberge-les.html auberge les bons matins] [http://tucson-arizona.kamahi.in/ tucson arizona homes] [http://pygmalion-activities.lufberry.in/ pygmalion activities] [http://camisetas-mojadas.panterra.in/ camisetas mojadas] [http://traceejeffreys.ifrance.com/topic/mega.html mega] [http://twanagoggin.ifrance.com/web/celica-parts.html toyota celica car part] [http://dillon-sky.ibelgique.com/sbc-telecommunications.html sbc telecommunications inc] [http://erickacicero.ifrance.com/moira.html moira] [http://greta-pier.ibelgique.com/wiki/island-houses.html house in island sale staten] [http://live-beeez.ibelgique.com/necrophilia-porn.html necrophilia porn movies] [http://carmagaleano.ifrance.com/topic/ancient-sparta.html ancient sparta military] [http://marlynbarrios.iespana.es/resources/north-seattle.html north seattle community college foundation] [http://carmagaleano.ifrance.com/topic/low-cost-body-lights.html low cost body lights] [http://cocktaillounge.50webs.com/data/copycat-recipes.html copycat recipes] [http://garething.isuisse.com/new/all-bills-paid.html all bills paid apartment dallas texas] [http://demon-dance.ibelgique.com/web/school-improvement.html school improvement plan for high schools] [http://inuyashachibi.50webs.com/3d-guru-volume.html 3d guru volume 2] [http://carmagaleano.ifrance.com/topic/kelly-monaco.html kelly monaco video] [http://stereotype-australian.mainland.in/ stereotype australian] [http://erickacicero.ifrance.com/adipex-pdr.html adipex pdr] [http://orion-grassroots.explisit.in/ orion grassroots] [http://alltell.explisit.in/ alltell] [http://yasa-shisa.isuisse.com/java-games.html java games] [http://matts-tar.ibelgique.com/lib/daring-bikinis.html daring micro bikini] [http://brynnparkey.ifrance.com/oregon-state-taxes.html oregon state taxes online] [http://live-and-let-die.leonis.in/ live and let die] [http://lucienneespinoz.ifrance.com/comments/trinkle-tinkle.html trinkle tinkle] [http://midsummers-night.holily.in/ midsummers night rave] [http://tangelaflora.we.bs/new-jersey-cellular.html new jersey cellular phone] [http://wireless-alarm-canada.lufberry.in/ wireless alarm canada] [http://vw-bus.leonis.in/ vw bus] [http://marlineoreilly.ifrance.com/small/florida-jobs.html florida jobs] [http://conchitawoolver.iespana.es/tintin-images.html tintin images] [http://erickacicero.ifrance.com/lee-jeans-com.html lee jeans com] [http://conchitawoolver.iespana.es/minnesota-new.html minnesota new stadium] [http://tropical-ceiling.pappas.in/ tropical ceiling fan] [http://reoracer.50webs.com/self-mutilation.html self mutilation child] [http://summerpica.ifrance.com/securing-redhat.html securing redhat linux] [http://traceejeffreys.ifrance.com/topic/mark-mulder.html mark married mulder] [http://ma660.leonis.in/ ma_660] [http://traceejeffreys.ifrance.com/topic/smbumount-must.html smbumount must be installed suid root] [http://inuyashachibi.50webs.com/popup-search.html popup search bar] [http://marlineoreilly.ifrance.com/small/safety-meeting.html safety meeting] [http://manawebster.iespana.es/view/phil-spector.html phil spector trial] [http://summerpica.ifrance.com/cincinnati-airport.html marriott cincinnati airport] [http://solwind.50webs.com/regional-freighter.html regional freighter aircraft] [http://love-relationships.panterra.in/ love relationships] [http://reinaferreri.iespana.es/html/alexis-malone.html alexis malone] [http://twanagoggin.ifrance.com/web/climbing-hydrangea.html climbing hydrangea] [http://carmagaleano.ifrance.com/topic/michesl-jordan.html michesl jordan] [http://cocktaillounge.50webs.com/data/consumer-debt.html consumer debt counseling] [http://demon-dance.ibelgique.com/web/illinois-mortgage.html illinois mortgage rates] [http://brynnparkey.ifrance.com/intercom.html intercom] [http://summerpica.ifrance.com/lynette.html lynette] [http://katricebliss.iespana.es/article/microsoft-word-project.html microsoft project simple word] [http://marlineoreilly.ifrance.com/small/world-poker.html world poker tour commerce] [http://solwind.50webs.com/maui-wedding-packages.html maui wedding packages] [http://luannvicknair.iespana.es/new-haven-city.html city of new haven connecticut] [http://mazda-2600-check.leonis.in/ mazda 2600 check engine light] [http://lucky-absolute.isuisse.com/redheaded-pussies.html redheaded pussies] [http://katricebliss.iespana.es/article/mens-sunglasses.html man oakley sun glasses] [http://twanagoggin.ifrance.com/web/real-estate-boston.html real estate boston] [http://dtolstoles.isuisse.com/tow-behind-cargo.html tow behind cargo trailer for motorcycle] [http://marlynbarrios.iespana.es/resources/in-the-living.html the living years song] [http://theli.isuisse.com/blog/caveat.html caveat daily] [http://acorn-cookie.pappas.in/ acorn cookie cutter] [http://african-dog-hunting.holily.in/ african dog hunting lion] [http://marlineoreilly.ifrance.com/small/lime-scale.html lime-scale] [http://summerpica.ifrance.com/leslies-pool-supplies.html leslies swimming pool supply] [http://karinepiatt.iespana.es/styles/ethernet-card.html wireless ethernet card] [http://twanagoggin.ifrance.com/web/2005-madden-challenge.html 2005 madden challenge] [http://twanagoggin.ifrance.com/web/flair-bottles.html flair bottles] [http://endermologie.lufberry.in/ endermologie] [http://marlynbarrios.iespana.es/resources/florida-waterfront.html florida waterfront real estate] [http://ya-uza.isuisse.com/styles/alignment-front.html alignment front wheel] [http://yasa-shisa.isuisse.com/helicopter-pilot.html helicopter pilot training] [http://reganfeld.we.bs/bluefield-daily.html bluefield daily newspaper telegraph] [http://dillon-sky.ibelgique.com/margret.html margret] [http://anime-download-ecchi.panterra.in/ anime download ecchi futari] [http://katricebliss.iespana.es/article/noran-clinic-mn.html noran clinic mn] [http://dillon-sky.ibelgique.com/us-treasury-currency.html us treasury currency conversion] [http://kimigassett.iespana.es/view/kona-condos.html condo kona sale] [http://solwind.50webs.com/nudist-asian-models.html nudist asian models] [http://carmagaleano.ifrance.com/topic/sein.html sein] [http://1x-0007.ibelgique.com/resources/mini-motor-bike.html bike mini motor] [http://1x-0007.ibelgique.com/resources/internet-marketing.html internet marketing center] [http://home-surveillance.kamahi.in/ home surveillance] [http://imp-r0.isuisse.com/topic/rogue-agent-walk.html rogue agent walk through] [http://demon-dance.ibelgique.com/web/maia-tim.html maia tim] [http://toric-lens.panterra.in/ toric lens] [http://summerpica.ifrance.com/firearm-accessories.html firearm accessory] [http://danakrogman.ifrance.com/wiki/santa-clara-county.html santa clara county sales tax] [http://solwind.50webs.com/rachel-and-tawnee.html rachel and tawnee] [http://pdf-converters.explisit.in/ pdf converters freeware] [http://cocktaillounge.50webs.com/data/renaissance-wedding.html renaissance ring wedding] [http://dillon-sky.ibelgique.com/sanghoee.html sanghoee] [http://reinaferreri.iespana.es/html/len-pasquarelli.html len pasquarelli email] [http://picture-of-sedimentary.leonis.in/ picture of sedimentary rocks] [http://yasa-shisa.isuisse.com/billy-bob-thornton.html billy bob thornton] [http://lucky-absolute.isuisse.com/andys-muscle.html andys muscle goddess.com] [http://20furniture-bathroom.lufberry.in/ 20furniture bathroom] [http://ice-resurfacing.leonis.in/ ice resurfacing machine] [http://the-beatitude.pappas.in/ the beatitude sunday school craft] [http://cocktaillounge.50webs.com/data/sydney-simpson.html sydney simpson] [http://j-oclama.isuisse.com/kim-hines.html kim hines] [http://prin-sabun.ibelgique.com/free-anti-virus.html free anti-virus for nokia 6630] [http://morningmoon.we.bs/web/nude-playgirl.html nude playgirl models] [http://morningmoon.we.bs/web/orange-coast-college.html orange coast college] [http://dakot-ces.isuisse.com/south-florida.html south beach florida hotel] [http://erickacicero.ifrance.com/water-sports-toys.html water sports toys] [http://reoracer.50webs.com/best-treatment.html best treatment for hair loss] [http://emf-plugin-eclipse.mainland.in/ emf plugin eclipse] [http://dakot-ces.isuisse.com/robin.html robin] [http://memphis-real-estate.pappas.in/ memphis real estate agencies] [http://ya-uza.isuisse.com/styles/stylecss.html style.css] [http://manawebster.iespana.es/view/fireplace-inserts.html fireplace inserts] [http://carmagaleano.ifrance.com/topic/drawn-together.html 2 drawn season together] [http://latonyawelling.ifrance.com/lib/wombats.html wombats] [http://zench.isuisse.com/barry-sanders.html barry sanders] [http://amoritization.leonis.in/ amoritization schedule] [http://reganfeld.we.bs/mackenzie-mack.html mackenzie mack] [http://marlineoreilly.ifrance.com/small/swaziland-reed-dance.html swaziland reed dance] [http://greta-pier.ibelgique.com/wiki/septic-system.html septic system problems] [http://marlineoreilly.ifrance.com/small/baquacil.html baquacil] [http://traceejeffreys.ifrance.com/topic/buffiethebody.html buffiethebody video] [http://reoracer.50webs.com/airstream-motorhomes.html airstream motorhomes] [http://erickacicero.ifrance.com/webcamera-chat.html webcamera chat] [http://lucienneespinoz.ifrance.com/comments/african-poem-violet.html african poem violet] [http://traceejeffreys.ifrance.com/topic/curling.html chi curling iron] [http://marlineoreilly.ifrance.com/small/erythromycin.html erythromycin and birth control] [http://danakrogman.ifrance.com/wiki/erotic-contortionists.html erotic contortionists] [http://lucienneespinoz.ifrance.com/comments/point-of-no.html point of no return] [http://j-oclama.isuisse.com/business-cards-design.html best business card design] [http://lucienneespinoz.ifrance.com/comments/ease.html at ease navy man of world war ii] [http://kimigassett.iespana.es/view/pretty-black.html pic of pretty black girl] [http://gambling-addiction.mainland.in/ gambling addiction] [http://twanagoggin.ifrance.com/web/wrestling-shoes.html adidas wrestling shoes] [http://dtolstoles.isuisse.com/now-thats-music.html now thats music com] {| 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]]

Revision as of 12:54, 9 January 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

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

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

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

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

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

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: