Arduino GPS Datalogger by jonnyboy323
Featured

Step 3: The Software

2011-10-18_01-10-54_347.jpg
I'm assuming if you've read this far you know a bit about the Arduino and how to upload programs using the Arduino IDE, so I will not be covering the basics. Lets walk through some sudo-code

---------------------------------------------------
initialize serial, libraries and variables.
create a text file on SD card with header
pull GPS data
write GPS data in the end of the text file.
flash led
keep looping
------------------------------------------------------

I'm not going to go into my code in to much detail but it's commented enough to understand whats happening.
You will notice I'm using two really awesome libraries written by Mikal Hart, so make sure you have downloaded them! (TinyGPS and NewSoftSerial )
TinyGPS basically makes it easier for us to extract data like longitude and latitude from the slightly complex NMEA sentences that the GPS module spits out.
NewSoftSerial allows us to transform any pins into "serial pins". In this case pins 2 and 3 as previously mentioned.

The Arduino file is attached.
Just upload and it should work! (Leave a comment with the issue if it's not)
 
Remove these adsRemove these ads by Signing Up
adham rabea says: Oct 7, 2012. 1:37 PM
sire
can u upload the full software plz
thanks
jonnyboy323 (author) says: Oct 10, 2012. 4:05 PM
Not sure what you mean by "full software" but I just zipped the file to fix that download issue that people have been having. I added an update to the end of the Instructable too.
manashraja says: Nov 7, 2011. 7:14 PM
Sir, excuse me. The link you have provided is making me download "FADFMAUGTW2B6VB.tmp". I am not getting the required "GPSDataLoggerInstructable.pde" file.
jonnyboy323 (author) says: Nov 7, 2011. 7:32 PM
That's very strange, the link used to work, but I see what you are talking about.
I tried re-uploading but it is still showing up as a .tmp file.

I do have 2 solutions for you however for now, until a moderator gets back to me:
1. Try a different browser. When I tried Internet Explorer it opened as a link and the full text showed. Simple Copy/Paste.
2. Change the filetype to .pde instead of .tmp and it opens just fine.

Thanks for your interest and sorry for the slight incontinence for now!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!