Home
www.robotshop.com Adafruit GPS Shield User Manual RB-Ada
Contents
1. 4698 83 b o RU IN ik ea 3 R JE T E A Place both LEDs it doesnt matter which color is LED and which is LED but the code examples will assume that LED2 is green bs ana 13 OC ian gt 2 TOP E PA leje LILI ea susupe A u Ab OKA T ILE IER RRR SCR Solder and clip the two LEDs EXTAT HRE Dc MEL 4 2 TAE 26 e Va Le 268 OCD MON OMM s ge ede ee E Nw LJ T 4 EM EE Next we will sol der in the PNP transistor The transistor is in a TO 92 package with a semi cylindrical plastic part and three legs There 1s an other TO 92 part which is the volt age regulator These two parts look very very similar but are completely differ ent so its 1m portant to look carefully and make sure that you are going to solder in the part that says PN2907A ieaz 3 S Lo 9 860 set Insert the transis tor into the loca tion marked Q1 Because of the way the pads are layed out the transistor wont sit flat against the PCB Thats OK it should stick up a little bit Make sure the flat side of the transistor matches the out line on the silk screen Solder and clip the transistor al L a i OT A AO D C e o 0 o e 6 OR 96988888 d orem ON f L A t Now we ll place the 3 3V regula tor IC1 which says 1700 3302E on it Its shaped just like t
2. XXXIII EX a re eur E pm L Pim LVS E H a FT MN ha E i je 44 rr rrr Eta aL K nette A am eror IC Se uab 104 os Laa MI OOOO T 1 se 0500000 E X L eeeeees AA Ji De a 8888 e lt se HIR 0 610 P oe 4 L JOUE i SN gt a Once you are feeling comforta ble with the resis tors lets do the SD card holder The holder is sur face mount there are no wires that go through the board but the spacing is very generous so it wont be difficult The holder has two bumps that snap into place on the PCB Make sure that the bumps are en gaged and the holder is sitting flat LE LEGES EO E The first step to soldering the holder is to tack it in place On the sides are 4 large tabs Heat both the pad and tab together for 3 se conds and solder the tab down Re peat for all 4 tabs When you re done you shouldn t be able to move the holder 6009060000 00 XC toc 37e lh 24 0000020909 000006 6666000 000006 wer h A i Next solder the 7 large leftmost pins of the holder to the correspond ing pads Use a sparing amount of solder so that you wont end up bridging two pins by accident If you aren t skilled at SMT soldering you can simply skip the three smaller pins they re not at all necessary e 9960 99999999 060060000 00000709 4 gt 0600640
3. Once you have built the shield it is time to get your module test and configure it 1 Picking a module 2 Wire it up 3 Connecting directly to computer 4 First Arduino GPS test 5 GPS logging 6 Enclosures 7 Power amp Batteries Modules Overview This shield requires a GPS module sometimes called an engine board or engine module to receive the timecode data from GPS satelites There are dozens of GPS modules on the market each with slightly different specifications The Adafruit GPS shield v1 0 supports 4 popular hobbyist modules and is geared specifically for the EM 406A the required connector is already soldered on and ready to go If you want to use a different module check the parts list for the required connector as they are not included Supported modules Image Name POEM pos PRE MON Tey PES tion tors er Sirf III User chipset Guide USGlob Fod gr with an alSat binary tenna EM 406A S protocol lock indi Softwar cator e Adafruit 6 0 User Guide Ohararp 5 ETek EB 7 85A Datashe 5 ECTS DPCAV 8 Wiring Overview Even after soldering all the parts there is some fly wiring that is required to get the shield to do what you want The reason it was designed that way is so that people with unique requirements could easily customize how they want the shield However we will cover the most common cases Connections There are two parts of the shield
4. This form will import your GPS data file or plain text data tab delimited or CSV and create a KML file that you can view in the Google Earth application rau might also be interested in the Google Maps input form which can create an interactive map that can be viewed in almost any Web browser you can even use KML ME files as input For SVG or JPEG maps use the classic map form To resize and or colorize Google Earth markers based on a particular field use the data form NEW if you already have a KML file for other data and you want to create a USGS aerial USGS topo NRCan or daily satellite overlay for Google Earth check out the KML overlay generator General map parameters show advanced options Upload your GPS data files here 7 Output format N Total size of all files cannot exceed 3 MB File type Uncompressed kml M File 1 G GPSLOGDDT Browse Google Earth doc name fest JH File 2 Browse Track options Pee File 3 ff Browse ale ide made m Draw as waypoints Ne iii Or paste your data here Track opacity M Line width Fi name desc latitude longitude color Colorize by Track recommended N Default color N Waypoint options show advanced aptians Show waypoints In bounds of track plus padding N Altitude mode i Default icon color Default icon R E rce aes towne this types Contact information Or provide the URL of data on the Web Your e mail OP
5. www robotshop com Adafruit GPS Shield User Manual RB Ada 05 GPS Shield DIY locatione dita TOSCO uiii euius evt a dia aa Ga an aa jg aa aa Pe ao Aan a eser oue 2 Make EEN naa r AA ANG KKN A ANAN A aa a an NE ah a NA A BA Napa A NAN aan 4 TAL Dart Ola anandang aaa ag aa aga aaa d Sa aaa aa naa naja ajana UN S E aaa aa M EM aa a a aba da daa aaa naa GO 5 PAN JAS 7 SOET T 14 MSO e 46 Modules 46 bur 48 COn 50 MOGs e 57 SuSE dun aa aa a 60 PO COSU c 69 PONOT sakan aaa ga ao E NUMMUS 71 T 73 Overview GPS Shield DIY location amp data logging hat LE l EMI ejie e o to 9 6 0 ie b d 00000000 dase vw PETIT T TTS ITE GPS shield amp data logger Would you like to use your Arduino to create geo locative art Or make a custom GPS device that can log sensor data along with the precise time and location Perhaps you re looking to make a tracker or want to make your own geocaching hardware You are in luck Here is my design for a Arduino shield that is perfect for any sort of project or
6. YY pp LI Rx S TX IMP HR LIL ITIT 11111 31 035 Remove chip We want the GPS unit to talk to the FT232 chip on the arduino which will let us listen in using USB but the problem is that the Arduino chip ATmega168 is in the way so we must remove it First gently pry the Arduino microcontroller from its socket using a small flat screwdriver or similar Try to make sure the pins dont get bent Put it in a safe place Preferably in an anti static bag Next we will jumper digital i o pin 2 to ground LOW which will make sure the GPS unit is turned on when we connect up Use a spare piece of wire and plug them into the empty socket as shown Triple check to make sure you have the jumper in the proper socket holes QJ mato PA E L E ue aa 6 AL 14 44 DIGITAL h ear wl LLL LE entinintin fil ea a A a d h 4j 4 T di re Arduino M 6 4 o PWR LA LLE RE D 4 D C vell lr A Diecimila m er Le POP E ie Z NG I ONS SB a LN ON T P Ma LA ts a a dn quon Y ah uas Rp fe mW nn w a pm E LJ at g x BAR 9999999 ee 99 ng 4 A i p 7 Wil aif Citi or ae i AL POWER ANALOG IN MB Www Plug in amp power up Plug the shield into the Arduino and plug the GPS module into the little connector 3 ve TORT PA aT r E eo b 2l F IA FL s JE Ne Il Eu SY tam Of 4 ve IL N ok eae E d Rrrr rete tetes 13 ln TTT
7. 1 E HD THEE E iai HIP K UE L Connect up the Arduino again and watch the Serial Monitor This time you will see notification that GPS strings were received and properly written to the card You will need to have a lock from the GPS to get proper location data so stick the Arduino GPS outside for a bit CPSlogqger Writing to GPSLOGCLS THT Dead FISGPRMC 235950 032 0 ceLl006 E 4 LD DHC 235951_ 041 V 20LlL006 2E 4 GEPENC 235952 030 V 281006 FZE ESCPRMDC ZS3595B3 030 V 29510056 2A ESCPRMC Z35954 039 V c9010056 24 4 GCFEMC 235955 _ 035 UT eee ep pee LOUe 2F y Autoscroll 9600 baud You ll see GPRMC and similar NMEA strings Then we see a right afterwards This is feedback from the Arduino saying that a NMEA string was received passed the checksum and properly written Here are all the characters the logger will print as feedback e NMEA string received checksummed and written e NMEA string received but there was no checksum e NMEA string received with checksum but the checksum didnt match e NMEA string received but the data was too big for our buffer e _ NMEA string received but the Arduino is programmed to only save data when there is an active fix so it was ignored The LEDs will also give indication to whats going on If the green LED LED1 is lit that means that we have a location fix If the red LED LED2 is lit that mea
8. GPS tutorial Garmin s GPS tutorial Software If you want to connect the GPS directly to your computer you can use special software that makes it easy to configure the modules SirfDemo v3 82 SirfDemo software tutorial for Sirf chipset GPSes e SirfDemo User guide for Sirf chipset GPSes MiniGPS for ETek EB 85 Other cool GPS things Here are some of the nice projects products that inspired me to build this shield Arduino GPS module from Libellium e OHARARP waterproof GPS logger e Sparkfun GPS logger Downloads Current Code amp Libraries e NewSoftSerial library This code is run by Mikal Hart and you may also want to see if he has any new version It s GPL e GPS test parsing sketch uses NewSoftSerial to communicate with the GPS module e GPS basic logging sketch uses NewSoftSerial to communicate with the GPS module and SD li brary to log data Click on the DOWNLOADS button in the top right corner to download from github All of this example Arduino code is Public Domain Enjoy For information how to use and install libraries see our tutorial Older code e AF SDLog library If you have the Wave Shield library installed you may have to uninstall it re move it from the library folder since it will conflict This has been supplanted by the SD library built into the Arduino IDE The only good thing about it is that it will barely fit and run into a 168 Arduino so if you happen to be st
9. T 2 48 da a gt ieai we tarn saki im r ET 0 a y Der RP LOT d a T F ry G gt p U bh 227 Pa Son Ora Pin Dre RELA Pin Oey Le Now connect the Arduino to your computer via USB The GPS module should light up indicating that its on If the GPS module doesnt turn on check the PWR jumper is connected to digital pin 2 that the socket jumper is correct and that the Arduino is powered C na wa B d If possible try to be near a window or outside If possible place the GPS module so that the antenna the large silver square is outside and pointing upwards This will make it easier for it to get a location fix Connect and watch Lastly we will use the Arduino software to open up the USB serial port and listen in on the GPS Start up the software make sure that the correct Serial Port is selected and click on the Serial Monitor button Select 4800 baud unless you have an EB 86A which may be 38400 by default If you changed the baudrate in some way try all the possibilities until you get a clear output JT File Edit Sketch Tools Help n 5i T IN EIU Serial Monitor Blink m 4 an LED on for one second We use pin 13 because either a built in LED Blink The basic Arduino example Turna on then off for one second and so on depending on your Arduino board it has or a built in resistor so that you need
10. artpiece that requires GPS precision time or location data This shield supports any of four popular GPS modules and stores data on a standard DOS formatted SD flash memory card Simply plug it into your computer when you ve finished your data capture and the plain text files are ready for importing into Google Earth GPSvisualizer or a spreadsheet Power consumption 5V 70mA less if power saving methods are used e Approximate run times 3 hours on a 9V battery and up to 12 hours with a MintyBoost I m still in the process of getting real data Weight of shield card suggested GPS module and Arduino 2 6 oz 75g e Included example sketches show how to parse NMEA sentences and log data to a text file on card More ideas You can build a waterproof GPS logger by putting the shield Arduino and small power supply in an Otter Box W Make it Lets go This is a vey easy kit to make just go through each of these steps to build the kit 1 Tools and preparation 2 Check the parts list 3 Assemble it Preparation Tutorials Learn how to solder with tons of tutorials Don t forget to learn how to use your multimeter too Tools There are a few tools that are required for assembly None of these tools are included If you don t have them now would be a good time to borrow or purchase them They are very very handy whenever assem bling fixing modifying electronic devices I provide links to buy them but of cou
11. is not connected to anything floating but many act kind of strange so suggest always connecting it up Make your wires Cut three pieces of wire two about 1 long and one 2 long Solder the two shorter ones to RX and TX Solder the longer one to PWR TTP m Ht ALL IL E po Sees Jupe A ee Mth Se Cou Now continue to the next step which is testing the GPS module by connecting it to your computer Connect Overview The first thing we will do is test the GPS by connecting it directly to the computer This is useful because sometimes you may want to get geolocative data directly into software You dont need to do this step but it can be helpful to determine if your GPS module is working one less thing to worry about later You can connect with an FTDI cable or use your Arduino Option 1 Wiring using an FTDI cable The easiest way to connect the GPS module to a computer is to remove it from the Arduino and connect the GPSPWR line to ground E Tl e aada xL 4 6 SR Wuni C OM E NM Then plug in an FTDI cable and connect using a serial terminal program or the Arduino IDE see below m0 Coe TZ d 1 600000 Option 2 Wiring using an Arduino Remove the shield from the Arduino Connect the GPS TX line to digital pin 1 and the RX line to digital pin 0 Connect the PWR line to digital pin 2 gital AYU gt x Wigital 1 U S WORK A D j RX a
12. only an LED http uwg arduino cc en Tutorial Blink Fi uinta t ledPin 13 if y li void setup 1 4300 baud GPGGR 211417 565 40427 4415 N 07400_ 4820 1 16 Dre E 4042 4415 N 07400 ee a lt de lt za T 2G E 16 23 91 Z lt lt lt lt m p E P Ly 2 rr H 07400 480s EI pg u FrFrrr rrr eee li l F GS m rr CPPMC 211418 4042_ 4477 N 07400 SPGGA 211419 565 4042 3977 N 07400 4702 GPGSA 4 1 16 22 21 14 GEGEY 3 1 12 16 71 Fr E LE E E J ET J J J NE J ee all 1 m E 13 30 315 24 25 nn Bf 200 Le rm 117 TT T PES ul FC p5npicemrr T GEES L D RT 03 zro a a P Deui ee Dr Renan 32 09 206 07 E 74ud N 07400 4680 KERES go Le A 4042 3932 N 07400 46 4042 4143 N 07400 4699 1A m ra d E P Ly 2 rr EI 16 23 31 GPGGA 2lldzl E amp 1 16 23 CPEMC 2 114 1 LE GPGGA lldee 56 2 GPRHC llde la T zd T T i T T i Dies CHCEL FrFr Ff Fo FW F FW Fo Fo Fo v z84 N 07400 4714 pg u FrFrrr rere eee li 4042_ 4464 NON 5 d U r ec I GEA A 1 16 p pm FGPENC 211422 S T 400 LED run ONCE da W M e MD e 45805 _ W Bt oe TM 06 28 4703 d 0d42 41435 N 07400 463959 4714 W connected to digital pin 13 when the sketch starts Send 7 M 0000 4F JU 0 03 34 roe 2608
13. sketch with the new baud rate Upload it to the Arduino and open up the Serial Monitor at 9600 baud se SD GPSlogger Arduino 0022 CE R File Edit Sketch Tools Help Cig Be iPScanfig h Use pins Z and 3 to talk to the GPS 2 is the TX pin 3 is the HX pin MewSsoftS5erial gpsserial WewSofttSerial 2 3 Set the GPSRATE to the baud rate of the GPS module Most are 45600 7 7 but some are 36400 or other Check the datasheet define GPSRATE 4600 Set the pins used define powerPin 4 define ledlPin 5 detine ledzPin define chipSelect 10 define BUFFSIZE 90 char hnufferrRHITFFATZEI lt Binary sketch size l7 064 bytes fof a 30720 byte maximum E FP como MIE FT O CPSlogger Writing to GPSLOGCLS TRT Reads y Autoscroll 9600 baud You should see the above The logger starts up initializes the SD card and creates a new file called GPSLOG00 TXT That file will be empty because there is no GPS data so dont worry about that The next time it starts the file will be called GPSLOGOI TXT etc If the SD card doesnt initialize check that it is formatted FAT16 32 try another card etc Once you have the SD card working unplug the Arduino Re wire We need to updating the wiring for the LEDs Keep TX connected to pin 2 RX to pin 3 and PWR to pin 4 Then connect the LED1 and LED2 to pin 5 and 6 you can change these later PAPO amp Jin PUD AG NE ISU ea 06600606 2 b Pepenpe noe
14. the GPS module interface and the SD card interface The SD card must be connected to the Arduino digital pins 13 12 11 and 10for it to work and so those pins are taken The GPS module interface does not have to be connected to any particular pin so they are left free for you to jumper with common wire The GPS module interface is as follows e TX this is the transmit pin data that comes from the GPS module with location data e RX this is the receive pin data that goes to the GPS module to configure it e PWR this pin is connected to a transistor that controls power to the GPS When this pin is set to LOW the GPS module turns on and when the pin is set toHIGH the GPS turns off e Li and L2 these are the two red green LEDs on the shield which can be used for indicating whether data is being logged if there is a GPS location lock etc e PPS this is the GPS syncronized pulse clock it pulses exactly once a second e CD this is actually part of the SD card interface its a card detect switch and is connected to ground when a card is in the holder Its not really necessary but is included in case you d like to use it e WP thisis also part of the SD card interface its a write protect switch and is connected to ground when the little latch on the side of the SD card is set to lock Its not really necessary but is included in case you d like to use it The only really important pins are PWR TX and RX Some modules work even when RX
15. to tweak the SD card library to allow to use the same pins as the Uno To do this open up the Sd2Card h file in the ArduinoIDE libraries SD utility folder you ll have to explore the Arduino IDE directory App to find it and then change the define MEGA SOFT SPI 0 tol X Sd2Card h XEmacs TER File Edit View Cmds Tools Options LC Help Sd2Card h sn h Fi include ZdZzPinMap h include SdInfo h Set SCE to max rate of F CEU E See SdzCard setSckRate uinta t const SPI FULL SPEED 0 Set SCE rate to F CPU 4 See SdzCard setSckRate i uinta t const SPI HALF SPEED 1 Set SCE rate to F CPU 8 SdzCard setSckRate uinta t const SPI QUARTER SPEED 2 Define MEGA SOFT SPI non zero to use software SPI on Mega Arduinos Pins used are SS 10 MOSI 11 MISO 12 and SCE 13 on Mega rduinos Software SPI works well with GPS Shield V1 1 NEGA SOFT SPI allows an unmodified Adatruit GPS Shield to be used t but many SD cards will fail with GPS Shield V1 0 ud define MEGA SOFT SPI if LE ai ER O SS DSE SEEDEDE fif MEGA SOFT SPI amp amp defined AVR ATmegal280 defined AVR aTmegaz560 define SOFTWARE SPI endif MEGA SOFT SPI Download amp Install We will be using the SD library in the latest Arduino IDE If you have v21 or higher it will be built in al ready nice Next download the GPSLogger sketch If your GPS module talks at something other than 4800 change the
16. 0 C L 0006009090 00900 000006006 00000 e a e U ES ES m Next we will in stall the three yel low ceramic ca pacitors C1 C2 and C3 Ce ramic capacitors are not polar so they can be in serted either way and will work fi ne C O O Of E Z Nc 4 nh beh LA PS 14 ZONES E i dele KANAAN fe more L 22 Place solder and clip the capaci tors gt FREE C Z O ad DIETE TTT R ee E or eec m TI e Kanaan MOO P Y TIT so E d UTS 1 1 d LE t TOS ne r U KE 80000000 2000085 4 E E Ui 19191599 E53 1 8 HH JER e E e Next are the red and green indica tor LEDs LED stands for Light Emitting Diode and like the zener diode they must E be place correctly or they wont work To make sure the LEDs are installed properly check that there 1s a lead that 1s longer than the other This lead 19 the positive lead Make sure that this lead goes into the hole marked with a on the PCB silk screen as shown T TN c IM e i TOE e MEL A Xd WU S 9 id 10 E POOR ET A i LAN Wa T L 7 3 S s 1 AN TUE Cr L om ODE CD DUS 33 Another way to check 1s that many LEDs have a flat side which marks the nega tive side a a X 6 alts Lee E 2
17. 0 series is a little larger and can hold an Arduino GPS logging shield amp Mintyboost as well as your toothbrush and some trail mix The cases come in clear so you can easily see blinking LEDs Power Overview If you have a GPS module hooked up to your Arduino there s a good chance you re looking to run it on batteries or some other portable power supply Here are some hints on what you can use and how to reduce power You can read my article about batteries and how to pick the best one for your project here Current power test data Please post your own findings to the forums so they can be integrated here e 2 Energizer Alkaline AA w Mintyboost logging 1Hz RMC fix data no sleep 12 hours 2 Energizer Alkaline AA w Mintyboost logging 1Hz RMC fix data 30s sleep 16 5 hours 2 rechargeable AA w Mintyboost logging once a minute with sleep 30 hours Power supplies 20000000 AN Ka 4 9V battery These are easy enough pair it with a battery clip or holder with a 2 1mm barrel jack and you can simply run the entire system off of this Most 9V provide about 400mA hours of current 5 hours of run time Mintyboost A mintyboost will convert 2 AA s 3V to USB 5V You can build it as usual and connect it up via a standard USB cable or wire it up directly as shown above so that it will fit into a smaller case You can use rechargeables or Alkalines Provides about 2000 mA hours of current 20 hrs of run time Hu
18. 08 Wo COTE rU Up U 0 UU di O C ALS z M rrr260608 w 0 COTE rU Up 13 9 M 54 2 M 000041 31 31 09 30 06 47 146 24 298 20 14 231 79 29 03 031 7C Pe e Ee P e l Ls a 34_2 25 7D K t bo a w 0 COTE rU Up 00040 Mox a H La Fr D rr 260608 Wo COTE U U03 so UW KAN 9 M 34 Z 00040 O A pe oe H Fr TT LA m O 03 346 zeneus 15 Face S et ae f 13 9 M 534 M 0000 4F LS cc EVE rrr250608 F16 Fr You should see a whole bunch of strange looking numbers and data all the lines start with SGP Geographical Position These lines are NMEA sentences which indicates that the GPS is functioning properly and is sending data as it should If you are outside or have a clear view of the sky you may be able to get fix data In the sentences above look for the line that saysSGPGRMC 211420 565 A 4042 3932 N 07400 4680 W 260608 19 This line is called the RMC Recommended Minimum sentence and has pretty much all of the most useful data Each chunk of data is seperated by a comma The first part 211420 565 is the current time GMT The first two numbers 21 indicate the hour 2100h otherwise known as 9pm the next two are the minute the next two are the seconds and finally the millseconds So the time when this screenshot was taken is 9 14 pm and 20 seconds The second part is the status code if it is a V that means the da
19. 59 K 8 s i C ha wt i RR Rl whe Place the 2 pin strip in the loca tion marked TAJMP its near the top Make sure the long part of the header is sticking up Finally you will probably want to install the 8 pin female header into the digital breakout location as shown This will let you do a bunch of hacking around while you re figuring out how you want to set up your 1 e NZ SST sdd G2 amp Y P a a xh t C i E u LOC gt 2 gt gt kn l K peer bi O SE TY HUUPREFEF gt ma T 8 6TEELd shield v1 0 g GPS logger Solder them in place You can cut the foam sticky into quarters and peel off one side so that the GPS module will not sit directly on the shield which could short a con nection and dam age the whole thing Dont remove the other side of the tape and perma nently attach the module until you ve done all the tests and con figuration just in case EJ 2 LLL NANA ubt 2 0 0 0 0 8 0 10 e O s L L AT ELJ u a Eat th zt CE 4 Pan L te m 4 patr Place the jumper into the TXJMP jump er location and go onto the user manual where you will learn how to wire up your shield for testing and use Place the jumper into the TXJMP jumper location and go onto the user manual where you will learn how to wire up your shield for testing and Use it
20. TIONAL This is for impromptu tech support MOT a mailing list Cl open in new window Under Upload your GPS data here you should Browse and select the GPSLOGxx TXT you d like to con vert File Upload Look in Removable Disk 3 v C2 E Ej ASPSLOGOO T T GRSLOSOI TAT My Recent Documents hy Documents Mu Computer a File name GPSLOGOO TXT v hu Network Files of type All Files Click Create KML File and then you can download the KML file directly into Google Earth for viewing Home Geocode an address Calculators DRAW A MAP Look up elevations GPSBabel i S d 17 C DRAW A PROFILE Google Earth overlays Help FAQ IA CONVERT A FILE Split a Forerunner file Examples Gongle Earth output our GPS data has been processed Here s your KML or KMZ file 1214525332 14674 70 23 82 167 kml KML If you ve already installed Google Earth clicking the above link should open the application If something doesn t work like you expected it to please contact me and explain the problem E Create a USGS topo map overlay to accompany your KML file for explore more overlay options Customizing the GPSLogger There s a few small things you can do to customize the GPS logger You can turn on and off specific NMEA sentences For example define LOG GSA 0 satelite data indicates that we do not want the GPS to emit satelite data This saves memory card space and red
21. ct to pin 2 RX connects to pin 3 and PWR connects to pin 4 Download amp install libraries We re going to use software serial to communcate with the GPS If you have an NG with a ATmega8 chip you can use the SoftwareSerial library If you have an ATmega168 or 328 download and install the NewSoftSerial library from the download page Install the library as necessary for your IDE Upload test sketch Download the from the download page and upload itto the Arduino Fe d sd Arduino VOUT Alpha E3 File Edit Sketch Tools Help clo GPStest RMC I A sinple sketch ta read GPS data and parse the SGPEHC string ff SER http www ladyada net make dugpsshield for more info include lt AFSottserial h gt AFSoft25erial myserial AFSoftSerial z 31 defCine powerpin 4 define GPSRATE 4800 detine GPSRATE 30400 jf GPS parser for 406a define BUFFS5IZ 90 plenty biu char butffer BUFFSIZz char parseptr P T 4I alee Long E 30 91 Z GE re 223931 000 ig didi 5897 Bo 07400 5 230 3 CI Z 2 i DONI KE 2 30 e OL PUPUSA 5 1829 285 ere E 422 1 U GPBRHC 223331 000 2 5892 N 07400 65188 W 0 34 195 99 260608 1A Time Late Lat Lorg D 0O00 d40d4 E d4 N 07400 L43 0 1 07 1 4 19 3 H 354 H 0000F 683 Lt TOES rCPCSA A S dod Dre 1 4 en EE a Wo 203 52 18 Time Zod Date Lat Lorg zl EI eee 33 000 40d7_578 This time when the GPS m
22. cutters You will be able to perfectly snap the long strip into 2 8 pin strips 3 6 pin strips and 1 2 pin jumper Place the 2x3 pin header into the location marked ICSP Ma ke sure the long part of the header is sticking up If you are plan ning to connect the shield to an FTDI USB TTL cable see the user manual for more infor mation then you should place one 6 pin strip in the header location marked FTDI Solder in the headers You may want to use tape to keep them in place while you solder Gay tcl NI 9S0 WNY ua Se ene errr LCR ER En Em En M ATMEGA168 20PU ie bess exe E ur QMInpAg xi a ED ANTA L LE it Place the 2 6 pin and 2 8 pin head ers into your Ar duino make sure its not powered up when you do this OK e AGLI NI 308 Slip the shield w onto the Arduino 10000000 0 56000 000 as shown The re 8 00000000 60000000 tips of the headers 0 fh MI QOQ 0 should all match TT TILL TRT up and poke THT through the dd shield Solder all of the B header pins RIMBLE TIT LLLI 6T EEZd 11111111 x FL 1 CLI aO as L P 1X 9 9 0 9 0 1100000 Ee Su amp fr 0 T LA ALS 0066606006 mai 0000000 00000000 le lastes lie TI TELLE 1104 a 5 GITEELd TITITITE EI S BL 9 f H EHH 7 Ca is x k TAMAN the JO 20 00000060 12 1 4 d A 4 i 4 t i q 9
23. es we make mistakes so double check everything and email support adafruit com if you need replacements Printed circuit board 3 3V linear voltage regu MCP1700 lator 250mA current 3302E TO PNP transistor EBC PN2907 pinout m 0 luF ceramic capacitor 100uF 6V capacitor Generic Red LED Lite On LTL ICHE or any 3mm LED Generic Green LED Lite On LTL 1CHG or any 3mm LED Generic 3 6V Zener diode If you don t have this part you probably have a v1 1 kit IN5227B 1 4W 5 1 0K resistor Brown Black Red Gold Generic 1 4W 5 4 7K resistor yellow purple red If you don t have this Generic part you probably have a v1 1 kit 1 4W 5 10K resistor Brown Black Orange Gold Generic Tyco SD MMC card holder 1734234 1 6 pin SMT connector for JST EM 406A BMO6B EM 406A Either Horizontal or Ver SRSS tical TB LE SN 6mm tactile switch B3F 1000 l 6 pin ICSP header 8 pin female header 1x8 TXJMP Jumper shunt Generic RESET ICSP 36 pin male header Beste 1x36 Optional parts list These parts are not included in the kit but might be necessary if you re planning to attach different GPS mod ules 8 pin SMT connector for EB 85A Either Horizontal or Verti cal Suh Gut Rene LPPBOA2NFSP pin eader for RC Trimble Trimble GPS M FTSH 111 01 A1035 20 pin SMT header for Ty py D co A1035 D N Digik
24. ey Backup battery holder for BATT GPS modules that do not Kevstone 3000 contain a supercap or bat n tery 12mm 3V Lithium coin cell CR1220 or BALL for battery backup Solder it Instructions for v1 1 These are the instructions for v1 1 ONLY If you have a v1 0 kit DONT use these instructions Check out the v1 0 instructions Go go go Check that you have all of the components for the shield The full parts list wah V OA B Ceti BOM is availa i s EL SE is ble here CX 2 uu dX o RER NN Get ready by placing the PCB in a vise Heat up your sol dering iron to 700deg F clean the tip and make sure your sponge is wet gt AJ K If you are build ing the shield from a kit you ll notice that the small 6 pin JST connector 19 pre soldered If you bought just a PCB or are making your own use surface mount soldering tech iques to solder the connector you are planning to use RARRRRLIEMELLLILLIT 4 P D Li Le Lets go E A aaa H H AN 4 Je r E f M i i Ole The first part we re going to solder is a 1K re sistor The 1 0K resistor 1s striped Brown Black Red Gold Bend the resistor into a sta ple as shown Place the resistor in the location marked R4 Re sistors do not have polarity whi ch means you can put it in either way and it will work just fine Bend the wire legs out so that the res
25. ge battery pack This pack will power the whole setup from the DC jack and last at least 10 longer than a 9V Reducing power requirements There s three things that use up power in the GPS logger the Arduino the GPS module and the SD card e The Arduino chip is always using about 10mA of current maybe a little more if there are LEDs You can reduce this a lot by making it go to sleep The USB chip uses about 10mA as well If you dont have a USB cable plugged in this will save you a bit of power e The GPS module uses between 20mA and 60mA of current depending on whether it is trying to acquire a lock or whether it is merely tracking You can reduce this by using the GPSPWR pin to turn the GPS off between reports e The SD card uses 20mA but only when writing data You can reduce this by sleeping between reports and only logging fix data from the GPS which translates to less data written The log everything all the time configuration draws about 75mA The sleep for 10 seconds between reads but don t turn off the GPS draws about 65mA If you are outside where the GPS can get a fix pretty quickly you can use as little as 10mA on average by logging only once a minute and turning off the GPS between logs Resources NMEA NMEA is the format that pretty much all GPS modules use to communicate Understanding NMEA is essential to working with GPS All about NMEA MTK Packet checksum generator Tutorials GPS FAQ Trimble s
26. he tran sistor and goes in the PCB the same way with the hemisphere matching the silk screen ai LL LL 4 CL A 1 Gisele es ce 3 D A a hm ee iei RRR RR Nn LU 2 AD LO IU A B Tn T 1 8 SS A The next chip IC2 1s the T4AHC125 which is the 3 3V buffer chip that converts the 5V signals from the Arduino to the 3 3V SD card IC s must be placed a certain way or they dont work Make sure you get this right because if the part is in wrong its a real pain to fix On one end of the chip is a round notch In this pho to its on the right gt E 466009070 i eeeoos e t Bs T EA S wm TEN ey 3 didat AIT UC LE 396 3 3 44 6 hd 2 D T we 8 8800006 amp i Gig 02010 613530 Breit te TW Pre C1 Dh Gage s d Make sure this notch matches the silkscreen under neath where there a similar round notch Solder in all the pins of the chip Next 15 the RESET butto n and electrolytic capacitor C4 Electrolytic ca pacitors are polar ized and must be placed correctly Like the LEDs the longer lead of the capacitor 1s the positive lead Make sure this lead 1s placed in the hole marked with a The button is symmetric snap it in place Solder and clip Next break the 36 pin header strip into smaller sections so that the shield can be placed on the Ar duino You can use pliers or diag onal
27. istor sits flat against the PCB Turn the PCB over Using your soldering iron tip press and heat both the pad the silver ring around the hole and lead wire at the same time for 2 or 3 seconds Then poke the end of the wire into cre ate a nice solder Joint Do this for both leads s gt e o 00000 L 2 2 2 xi rd SU TILLIGE 0800060 TRE X 6 1 000068 P L 7 eua se 7 09 888888 4966060609 9 RN 600600 90000006 Using your diag onal cutters cut off the long leads just above the solder joint m 00979 7 II IIN an 00096996 9 TH 006006060666 0000 PTT tie a ATE ee X 2 m B CA RT k 4 e gt e e e a a eg Repeat for the two other IK SiS tors R1 and R2 99999 66666 rini a Col AC Clete Np seers E ed P MA 4 S 7 v vv A Char re 97 Si i Lg Li n Flip over the PCB and solder the 2 resistors G C 0 0 8 R And TT 60 ms 00 28588 8 o a 728 Veg HT LL ore d s nnn K SEDET n 9 e Ode gt vee 8 o L ww IT 1 69881 A un D E O or U 88 soeone i Ue gt l e p7 0886068 UN Next 1s the final resistor this one is a JOK resis tor R3 ir 90 4 Uigit 3 1
28. nd where to buy Handy Hands with Magnifying Glass Not absolutely necessary but will make things go much much faster Check out my recommended basic 3rd hand tool and where to buy PG 0d light More important than you think Parts list Kit parts list for v1 1 Check to make sure your kit comes with the following parts Sometimes we make mistakes so double check everything and email support adafruit com if you need replacements Printed circuit board v1 1 3 3V linear voltage regu MCP1700 lator 250mA current 3302E TO 3 3v level converter for SD card If you don t have this 4AHC125 part you probably have a v1 0 kit POR H PNP transistor EBC PN2907 pinout pec 0 luF ceramic capacitor 100uF 6V capacitor Red LED Lite On LTL 1CHE or any 3mm LED Green LED Lite On LTL 1CHG or any 3mm LED 1 4W 5 1 0K resistor Brown Black Red Gold 1 4W 5 10K resistor Brown Black Orange Gold SD MMC card holder Generic Generic Generic Generic Generic Generic Tyco 2041021 3 6 pin SMT connector for JST EM 406A BMO6B EM 406A Either Horizontal or Ver SRSS tical TB LE SN 6mm tactile switch B3F 1000 l 6 pin ICSP header 8 pin female header 1x8 TXJMP Jumper shunt Generic RESET ICSP 36 pin male header Beste 1x36 Kit parts list for Check to make sure your kit comes with the following parts sometim
29. ns data is being written to the SD card Stopping Once you see the multitudes of LEDs blinking away for a bit and you feel like its time to stop here is the saf est way to turn off the Arduino Just like you wouldnt want to turn off your computer while its in the middle of writing a document you shouldnt cut the power to the logger while its writing to the SD card as there is a risk of data corruption Simply remove the TX jumper when you want to stop logging Wait till the red LED is not lit and then you can safely remove power Reading logged data amp converting formats Now that you have turned off the logger and removed the SD card place it in your computer s SD card reader and open it with a text file reader such as WordPador TextEdit You will see those familiar NMEA sen tences staring back at you You can now import this data into programs like Google Earth Some programs require special formatted data which is quite annoying and since this is such a problem there is a website devoted just to solving this prob lem calle GPSvisualizer Lets go thru how to convert NMEA data to Google Earth since thats very popular You can also convert to other formats The defaults are pretty good I like uncompressed kml data but it doesnt really matter Y a DRAW A PROFILE Google Earth overlays Help FAQ Every Trail com CONWERT A FILE Split a Forerunner file Examples Convert your GPS data for use in Google Earth
30. odule gets a fix it will parse out the data and display it in slightly more useful format If you re planning to make locative projects that don t log to the SD card you can stop now This sketch can provide the backbone of most locative art projects GPS Logging Overview OK finally we get to the part thats interesting where you can log GPS data and possibly other sensor data as well to a memory card For people with Atmegal68 based Arduinos We ve updated our code to make it easier for people with modern arduinos Atmega328 and higher to use the shield with the latest IDE However this means we need to remove support for 168 based Arduinos If you have a 168 Arduino please see our older page for using the unsupported library that works on 168 arduinos You will need a Atmega328 or better Arduino Just what it says this tutorial now only supports using the Atmega328 Its been a few years so upgrade if you still have a 168 Format a SD card You ll need a SD card formatted in FAT16 or FAT32 most SD cards are formatted correctly out of the box You can see the formatting tutorial over at the Wave Shield page Unplug the Arduino remove the GPS module for now and insert the SD card into the holder on the underside of the shield AE Sh CET TRANS TANPO T SU TOPTETTTTI VAs ec Kj we we v W u 31D JI 10 4 AASZARBARBLILLERLULL For MEGA users If you are using a Mega 1280 or 2560 you will have
31. rse you should get them whereever is most convenient inexpensive Many of these parts are available in a place like Radio Shack or other higher quality DIY electronics stores I recommend a basic electronics tool set for this kit which I describe here Soldering iron One with temperature control and a stand is best A conical or small screwdriver tip is good almost all irons come with one of these A low quality ahem 10 model from radioshack iron may cause more problems than its worth Do not use a ColdHeat soldering iron they are not suitable for delicate electronics work and can dam age the kit see here Check out my recommended basic soldering iron and where to buy Solder Rosin core 60 40 Good solder is a good thing Bad solder leads to bridging and cold solder joints which can be tough to find Dont buy a tiny Bn amount you ll run out when you least expect it A ir XT half pound spool is a minimum Le LT etat que 64 e alll im Check out my recommended basic solder and where to buy Multimeter Oscilloscope A meter is helpful to check voltages and continuity Check out my recommended basic multimeter and where to buy Flush diagonal cutters Essential for cutting leads close to the PCB Check out my recommended basic diagonal cutters and where to buy Desoldering tool If you are prone to incorrectly soldering parts Check out my recommended basic desoldering tool a
32. s warm Start and you ll get about 5 no fix data points before a fix is acquired Its an ad vanced power saving feature and may require some experimentation define TURNOFFGPS 1 probably only want to do this if the sleep delay gt 60 or SO Writing to CSV format One other annoying thing about NMEA is that theres no real standard for embedding sensor information into the data So I wrote another sketch that will log RMC sentences split them up into nice comma seperated values CSV and also log analog inputs 0 1 and 2 values Theres pretty much no more space for doing funky sensor processing on the Arduino but with the raw data you can easily manipulate it on a computer by opening it up in a spreadsheet or data analysis program Enclosure Overview if you re planning to take your GPS logger on the road you ll want to protect it Thats especially true if you re planning on a hike or sailing trip Soft cases An easy source of nice cases for your portable project is digital camera cases You can get them at your local camera electronics shop or online Look for ones that measure about 4 x 3 by 1 Waterproof hard cases You can get waterproof and crushproof boxes from Otterbox The 1000 series can hold an Arduino GPS logging shield and 9V battery with a clip perfectly If you use a smaller battery holder and skip the USB connector part of a mintyboost you can stuff all of that in a series 1000 case as well The 200
33. ta is Void invalid If it is an A that means its Active the GPS could get a lock fix The next 4 pieces of data are the geolocation data According to the GPS my location is 4042 3932N Latitude 40 degrees 42 3932 minutes North amp 07400 4680W Longitude 74 degrees 0 4680 minutes West To look at this location in Google maps type 40 42 3932 74 00 4680 into the google maps search box Unfortunately gmaps requires you to use instead of NSWE notaion N and E are postive S and W are negative The next data is not used the one after that is 260608 which is the current date 26th of June 2008 Finally there is the xx data which is used as a data transfer checksum Once you get a fix using your GPS module verify your location with google maps or some other mapping software Remember that GPS is often only accurate to 5 10 meters and worse if you re indoors or surrounded by tall buildings Now may be a good time to read up all about NMEA and how GPS works Test GPS Overview Once you ve tested your GPS its time to add the Arduino back in and show how to read and parse data This step will verify you have both parts working togther Rewire Remove the shield and take out the jumper in the chip socket Re place the Arduino chip making sure that no pins get bent and that the notch in the chip matches the notch in the socket Put the shield back on and re wire it so that the jumpers now look like this TX should conne
34. uces power consumption To turn on GPGSA data simply set it to 1 define LOG GSA 1 satelite data You can also set it to only log data when we have a location fix 0 means log eveything 1 means only log dur ing fix define LOG RMC FIXONLY 0 log only when we get RMC s with fix You can turn WAAS on or off This is an addition to North America where GPS can use ground stations to get up to 3 meter radius precision Set it to O to turn off define USE WAAS 1 useful in US but slower fix You can also save a bunch of power by putting the Arduino and even the GPS module to sleep This doesnt make much sense if you need to log data once a second which is the default But if say you dont mind only grabbing data once every 10 seconds or minute it can reduce power consumption a lof The SLEEPDELAY constant says how long the Arduino should sleep do nothing using no power between reads Setting this to O means it never goes to sleep 10 means sleep for 10 seconds You can use any ff up to 255 seconds 4 1 4 minutes If you have the LOG RMC FIXONLY variable set it will not go to sleep until there 1s a valid fix sentence define SLEEPDELAY 0 how long to sleep before reading another NMEA sen tence If you want to really reduce power consumption you can ask the Arduino to turn off the GPS module while it sleeps You pretty much have to useLOG RMC FIXONLY with this option because the first 5 seconds after the GPS turns on i
35. uck with a 168 and can t upgrade this code may be handy Otherwise please use the newer code above e GPS basic logging sketch saves NMEA data v2 fixes bugs that prevented it from working with 328P arduinos e GPS CSV logging sketch saves RMC sentences in CSV format with data from 3 analog sensors This code is based off of Roland Reigel s SD card code and is also GPL Hardware All files are CC 2 5 Attrib Share Alike e Schematic for v1 1 in EagleCAD format e Layout for v1 1 in EagleCAD format e Schematic for v1 1 in PNG format And older files you likely dont want them but they re here for reference e Schematic for v1 0 in EagleCAD format e Layout for v1 0 in EagleCAD format e Schematic for v1 0 in PNG format
Download Pdf Manuals
Related Search
Related Contents
レスポンシブル・ケア活動報告書 Tube Reverb tube reverb user manual Se ré-inventer et se projeter dans l`avenir grâce à l`art Operating Instructions School Balance LocalUpdater HUD-PUMMAマニュアル MutaCHIP TOXO - bei Immundiagnostik Copyright © All rights reserved.
Failed to retrieve file