PG31 GPS RS232 Dev Board
canon lbp 2410 valona quotazione yaris you raise me up karaoke vizietto pioneer vsx-ax5ai-s il maresciallo rocca. stagione 3. episodio 1 game ayumi hamasaki fotocamera subacquee tivirus ginger rogers bring me o life mini hi-fi rds carowinds theme park north carolina nintendo gameboy advance natascha amal a920 home theater test per il patentino www mitsubishi it d-link 502t yakumo delta 300 gps samsonite zaino microsoft volante mini moto cross install institut navigatore satellitare palmare mio finali uisp piazzetta diabase agriturismi zona ancona pescara kiev biglietti aerei brother all in one hai luli la unica ona je poput djeteta 100 na jednoga ivan delphi la forza invisibile doppio orario ogc michel vieth videos televisori batterie coniglietto di playboy merola francesco sblocco nec e616 moto buell batteria canon bp-535 magliano in toscana harmattan francesi manga com residence ferrara sparkle gf6600 256mb pci-express cherokee pena de muerte materassino gonfiabile da campeggio giochi puzzle on line la mujer mas desnuda mas guapa iscrizione sito motore ricerca adagio di albinoni testo leroy gomez orgoglio. episodio 5 gerusalemme shopping bengali stampante portatile canon concerti natale 2004 chimene badi fotoxxx windows xp media center 2005 dvb t mhp traduttore simultanei on line ea sport vendita memorie ram suzuki wagon 4x4 elezioni organi collegiali genitori cerchiamo trans cazzotti flaminio campo roma yvonne printemps de maria c srl slovenija od kod lepote tvoje italia abruzzo vacanze banbus super cazzoni olimpiadi programma 15 08 testo della canzone di anastasia developer nikon d50 kit 18-55 lexar 2gb juegos de gameboy red hot chilli pepers pozzo le piu belle derbi collari e guinzagli per cani luigi loperfido coralie eichholtz amapola com carmelo zappulla napoli basi giochi avventurosi bombolo mp3 sputtanamento autoradio con ipod schede wireless hentey xxx masterizzatori dvd esterno lacie biscotti a forma umana basebaal nothing like the sun sesso foto disabili lu mercatu hit mania 1995 nichya tatu traduzione my band manuale powerpoint auricolare bluetooth per palmari sexpictuer camparo frasi d amore in russo soluzioni giochi game boy bmw 530 touring tv card magik pci radio telecomando t 4263 c la notte delle spie telefonino tre cemento e additivi pettinature moda rennie, john spugne di mare foto di costantino vitagliano four rooms franck mapo us soluzioni resident evil ps2 samsung digimax i5 prestito capri digitali casio trio inglesina regalo cellulari motorola wd338 oregon scientific cordless o christmas tree cazzo com mst pro evolution soccer 4 scontato a fine mese hd foto wavelenght palmare piccolo hp color laserjet 3500 pino dasti www gov ro finanziamento lucca kennedy space center parle mappa berlino decapitazione americano irak noleggio auto bolzano www diddlmania com garmin gps60 gps figge bomboniera fai te mousepad razer toner tn2000 silent cristmas stampanti laser bianco nero samsung condizionatori interno banda xxi de argentina gruppo torinese trasporti indesit wixxl 106 prendimi di renato zero figurina panino offerte capodanno a amsterdam campione del mondo gatta nera ainett stephens decapitato nick video chat supereva fasciatoio pali cds kensington notebook lock donne esibizioniste lancia y pisa duele el amor de alex cartomanzia cartomante consulto half microsoft windows 2003 syusy blady www yamaha motor it donne che fanno pipi hotel tre stelle venezia socket 370 tirone hoya uv filter schwinger traduzione shakespeare lo straniero di stone city cesare ragazzi giochi generali la collera di dio grande oblo lavatrici e lavasciuga quick grattugie www ten28 com registratore ingresso scart like the deserts miss the rain mp3 bigliettini per la prima comunione {| align=right
|-
|
|}
Description:
Getting information from your project to your computer can be difficult at first. Once you discover how to setup an RS232 connection, it's really just cut-and-paste for future projects.
In this project we demonstrate how to:
- Setup an external power supply
- Setup 3.3V to RS232 circuit
- Complex PG31 GPS footprint
Contents
Power Regulation
First we will start with a simple adjustable voltage regulation circuit:
Please note this is a relatively compact SMD version of the power supply. This can easily be obtained with through-hole components using a breadboard. Here is the schematic:
Now let's discuss what's going on here. The barrel jack (J1) is a basic 5.5mm OD 2.1mm ID type jack. We get an unregulated 9-13V out of the wall wart.
The D3 large diode MBRA140 is for reverse protection. It can handle up to 1A and prevents damage to the board if a center-negative wallwart is attached. This diode will cause a ~0.5V drop from whatever the wall-wart is outputting.
C2 (10uF Tantalum Capacitor in this case) is a basic decoupling cap. 10-100uF is adequate but should be rated for 15-25V.
U1 is the LM317 (or LM1117 in SMD form) adjustable voltage regulator. It will take in some larger voltage and output a set voltage. The output voltage is set with two external resistors. R1 is historically 240 and value for R2 is different for different required output voltages. In our case, we want 3.3V out of the regulator, so R2 is set to 715. The LM317 is good because it is variable, the SOT-223 package is nice becuase it can take a relatively large voltage on the input (25V max I believe?) and has decent heat dissapation.
C1 and C3 are decoupling caps that help clean up the output transcients and noise.
J2 is just a two pin polarized header so that you can either 'steal' 3.3V from the board to power other boards, or have other boards power this board without the need for the external wall wart.
RS232 Interface
So we've got a nice clean output of 3.3V from the regulator, let's look at the RS232 connection:
This shows the DB9 connector (also known as a D-Sub 9-pin connector), serial cable, and MAX3232 IC and charge pump caps (all SMD, again, can be done with PTH components). Here is the schematic:
Now read-up on the MAX232 IC. It could be the most common IC out there, at least for the embdded world. This IC will have many different model names (ICL232 for example) but all do the same thing, and will most likely have identical pin-outs. This IC is used to take low voltage signals from your micro or PIC or ARM or whatever, and converts those low-voltage signals to higher-voltage signals that the computer can understand. The voltage levels on TTL are also inverted for RS232 so the MAX232 takes care of that as well!
The MAX232 takes in TTL signals and sends out RS232 signals. It also takes the RS232 signals from the computer and outputs TTL signals to whatever microcontroller you are using. How does it do this magic? With charge pump capacitors. You'll notice four 0.1uF caps attached to the MAX3232. If you're reading closely, you'll also notice we have a MAX3232 not the MAX232. Difference:
- MAX232 must be powered with 5V and converts 5V TTL<->RS232
- MAX3232 can be powered from 3V to 5V and converts it to RS232
So in this application, the GPS unit is running at 3.3V. If we were to send 5V TTL to it, it would be damaged! So we must use the lower voltage MAX3232 part. No big deal, it's functionally identical to the MAX232. From here on out, I will only refer to the MAX232.
When you first view the MAX232 component, it can be a bit confusing. The pins label T1/T2 are the transmit channels (MAX232 has 2 TX channels and 2 RX channels). T1In/T2In will take *in* TTL and send *out* RS232 out T1Out/T2Out. So for our purposes, we need to connect the GPS unit's serial TX pin to the T1In pin of the MAX232. So when the GPS unit outputs some 3.3V TTL signals, these signals will be converted into RS232 and sent to the computer (TX1Out is connected to pin 2 on the DB9 connector).
Finally, when the computer needs to send info to the GPS unit, it will send RS232 signals down the serial cable, on pin 3 of the serial cable/DB9 connector to R1In of the MAX232. This RS232 signal will be converter to TTL and sent out the R1Out pin. This TTL signal is connected to the RX pin on the GPS unit. Voila.
I can't tell you how many times I've crossed TX and RX on different projects. Sit down, think about it, and once you've got it wired correctly, cut and paste into future projects.
PG31 Footprint
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 why engineers hate to change parts...
Final Layout
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 MAX232 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.
Documents
Footprints:
SFE Footprint Library
FP Name: PG31
Supplier Info:
Spark Fun Electronics part # : Eval-PG31-RS232
Single Piece Price : $29.95
Related Items: