GPS/Datalogger
Prophet
Posts: 6
Does anyone have a sample code where I can have GPS receiver module data save to a Data logger?
I have both GPS and the datta logger. The GPS works; however i don't know to save the longitude and latttude for later use.
one more question: from GPS receiver how to save each longitude and lattitude?
i'm having issues because from the debug only one data show at a time.
Please help!
I have both GPS and the datta logger. The GPS works; however i don't know to save the longitude and latttude for later use.
one more question: from GPS receiver how to save each longitude and lattitude?
i'm having issues because from the debug only one data show at a time.
Please help!
Comments
The datalogger only stores one item at a time, so your program would save the longitude first, then the latitude next.
This sounds like a class project. You're going to have to do the work yourself.
You need to learn how to program the Stamp and what the various statements do. Start with the "What's a Microcontroller?"
tutorial and also read the Basic Stamp Syntax and Reference Manual, both downloadable from Parallax. Go to the main Parallax
webpage and click on the "Resources" tab. You'll get a list of links. Click on the "Download" link and you'll get another list. The
tutorial is under "Stamps in Class Downloads" and the Manual is under "Stamp Documentation". There's other useful information
there as well.
I know Parallax has useful documentations, My problem is time.................PLEASE help if you can...........Thank you in advance.
You might also have a discussion with your professor to make sure he or she knows about your missing project group expertise.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I’m going to go ahead and answer part of your PM here for everyone’s benefit…
For simplicity you want to have fixed length fields of data being written to the Datalogger. What I did was grab the Latitude, Longitude and Altitude and stored them as a comma delimited line of data. Every couple of seconds (you can choose your frequency) the GPS data is read and the data is stored on the memory card. When completed a button press would allow the Datalogger to close the file properly and disable writing additional data so the thumb drive could be removed.
As a note in the original application I needed this to happen automatically, so the prototype was powered by the vehicle’s battery power and the sense line was connected to the ignition. So when the vehicle was started the Datalogger would create a file and start logging coordinates. Once the vehicle was shut off, the file footer data was written and then the Datalogger shut down.
This setup is useful for fleet tracking, logging.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andrew Williams
WBA Consulting
IT / Web / PCB / Audio