3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino GPS Datalogger

Arduino GPS Datalogger
Do you want to log some GPS data onto an SD card using your Arduino? Do you already own a Sparkfun microSD shield and GPS module? Did you try the Adafruit Sheild (although it is awesome and cheap) but it stole all of your pins? Want it to output into a nice, Google Earth friendly format? Well read on...
 
Remove these adsRemove these ads by Signing Up
 

Step 1The Hardware

The Hardware
«
  • 2011-10-18_01-03-51_822.jpg
  • 2011-10-17_22-50-19_701.jpg
  • 2011-10-17_22-51-40_78.jpg
  • 2011-10-17_22-52-28_804.jpg
  • 2011-10-17_22-53-54_492.jpg
You will need:
1. An Arduino (which ever you prefer. I stick to the uno, duemilanove, mega, and this bad boy )
2. A GPS module (I'm using the EM-406 from Sparkfun )
3. A matching way to hook the GPS module to the Arduino (I went with Sparkfun's GPS Shield )
4. And a microSD Sheild (Again from Sparkfun )

Some optional stuff:
5. Indicator LED (ok ok I won't force Sparkfun on you for this guy)
6. A nice hard weatherproof case (I used the Pelican 1010 which fit perfectly)
7. Battery (No point logging GPS data tethered to your computer)
« Previous StepDownload PDFView All StepsNext Step »
17 comments
Dec 10, 2011. 7:39 AMmrdakota says:
Great job on the Instructable!
For a first time, it was well constructed.
Now for my problem,
I'm not getting the log file header unless I have the Arduino connected to my computer USB and it is not logging any gps data.
The only thing I have different is the SD card shield, I'm using the Arduino wireless SD shield. http://arduino.cc/en/Main/ArduinoWirelessShield
At first I tried editing the SdFatConfig.h file to change the CS pin from 10 to 4 for my SD shield and that didn't work.
So I changed it back to pin 10 and modified the shield, ( cut the copper trace from pin 4 and connected it to the unused pin 10) still no luck.....
I really looking forward to getting this to work.
Dec 10, 2011. 8:23 AMmrdakota says:
Well by mistake , I installed a different micro SD card and it works PNY instead of SanDisk.
But still it doesn't work off the power plug only off the USB. I'm puzzled!
Dec 10, 2011. 8:26 AMmrdakota says:
My-BAD- again! It turns out my battery(5v) wasn't enough.
Everything is fine now with a 7.4v Li-Po
Hope this helps someone else in the future!
Mar 31, 2012. 10:35 PMRustie0125 says:
HI Jonny any News on the Accuracy problem in the code? , im buring to get this working
Apr 9, 2012. 5:54 AMRustie0125 says:
HI Jonny any news ?
Mar 26, 2012. 9:51 AMRustie0125 says:
Hi Thank you for sharing your hard work .! i have all the components but non is on the shields they all stand alone breakout boards. when i try and compile your code it gives me Alot of errors can you help ? mainly ones of missing Files or libraries can you please maybe add the links to all libraries needed

thanx
Mar 28, 2012. 9:09 PMRustie0125 says:
Hi Johnny

I got it to work thank you , I wantted to ask if you were aware that your GPS readings is very inaccurate . Iv done some research and it seems where the problem is is where you convert the output to int. instead of keeping them as is and saving them like that . I have media tek gps and the best accuracy I get when using your code is +- 10km range but when using a GPS example from Arduino I get 3 foot accuracy .

Is there a way you code step away from converting the output to int? And just print them as floats . ? Iv tried but I can get it working then

Thanx for the post very helpfull
Mar 28, 2012. 10:19 PMRustie0125 says:
Hi Jonny

Looking forward to your fix , I'm buzy with same setup . Please let me know if you got it fixed .
Mar 26, 2012. 9:59 AMRustie0125 says:
Also something else that I cant get from looking at the code is where or what pins is the Sd card attached to?
Nov 7, 2011. 7:14 PMmanashraja says:
Sir, excuse me. The link you have provided is making me download "FADFMAUGTW2B6VB.tmp". I am not getting the required "GPSDataLoggerInstructable.pde" file.
Oct 19, 2011. 8:45 AMmikeasaurus says:
great project!
Oct 18, 2011. 7:51 AMechovoice says:
nice tutorial, thanks for the code... works perfectly!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
4
Followers
1
Author:jonnyboy323