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.

How To Build A Lightweight GPS Datalogger For Model Rocket Applications

How To Build A Lightweight GPS Datalogger For Model Rocket Applications
February 2009

Overview

I have been dreaming of building a flight computer that will not only control the flight sequence, but also log data aboard a model rocket. But I do need to walk before I can run, so I started with a simple GPS data logger (GPSDL) that is just a piece of my future flight computer idea. This GPSDL will sit in a payload bay or nosecone of a rocket during flight.
My finished GPSDL weighs 62 grams with the power supply and has a 1.5 inch W x 3 inch L x 1 inch D footprint. The weight of the data logger can be further reduced by .25 to .75 oz. by using a simpler GPS antennae than the one I used. Cost can run from $100 to $200 depending on how careful a shopper you are. My cost was $200 for the parts used in this article.
The design is simple consisting of three major parts: a 5.5g accelerometer switch, a BS2p microcontoller and a GPS receiver. A parts list, pictures, source code and a schematic are included in this article.
The GPSDL records the date, time, latitude, longitude, altitude, speed, heading in degrees and number of satellites that are in communication with the receiver every second for a total of 5 minutes. The source code provided will record two 5 minute flights before you have to download the data. This is completely customizable for any number of flights or a single 12 minute flight. The comments in the source code explain not only how to make this flight time change, but also what the program is doing throughout its runtime. The source code was split into two programs to maximize the amount of data that could be stored, negating the need for a separate EEPROM. The first program parses the GPRMC and GPGGA GPS sentences for the data points and writes them to memory. Post flight, the second program is downloaded to read the data points stored in memory and prints them to your PC screen. The data points are finally copied/pasted into a spreadsheet for conversions and graphing.
 
Remove these adsRemove these ads by Signing Up
 

Step 1

My first step was to familiarize myself with the parts chosen to work with by reading the data sheet for the GPS antennae and spending some time online learning how to use the free IDE that Parallax provides to develop and download code from my PC to the BS2p microcontroller via a serial port. This is quite simple and you can learn how to do this in an evening. If you want to just cut and paste my code onto your microcontroller that is about all you need to know code-wise to get the circuit running. If you want to customize my code or roll your own, PBASIC, which is the language that the BS2p runs on, is probably the easiest language to learn. There are multiple online forums catering to the Basic Stamp where help is available if you need it.
« Previous StepDownload PDFView All StepsNext Step »
17 comments
Apr 27, 2010. 9:45 AMdare4351 says:
 hi, 
I am doing similar project. Just The GPS data logger part.
i am using a garmin 15l receiver and a GA25mcx antenna and Atmega32 micro controller.. I have developed code for for displaying the values[data] from GPS onto a LCD display.. but am not able to code for logging part onto a SD/MMC card. So cud pls help me with the source code for this.. Thanks in advance..
u can also mail me at dare4351 @ gmail . com
Jul 22, 2009. 6:13 AMexpelleior says:
Hi, Did you have a successful launch, where can I find more updates on your project/experiments ? Very interesting what you are doing. Thanks for posting the article.
Jul 3, 2009. 2:05 AMblazeboy says:
Hello. I am a student, I have a small project, I want a simple GPS: Is the type of programmable Has the ability to determine the location and the receiving and sending data. Contains a link USB. Include the presentation CD Drive to the computer. q1to1@yahoo.com Cheers
Mar 8, 2009. 10:19 PMhughhalf says:
Nice work :)

May want to take a look at TeleMetrum - http://www.altusmetrum.org/TeleMetrum I believe the intent is to integrate GPS in the future, serial port is already there IIRC.
Jul 3, 2009. 2:05 AMblazeboy says:
Hello. I am a student, I have a small project, I want a simple GPS: Is the type of programmable Has the ability to determine the location and the receiving and sending data. Contains a link USB. Include the presentation CD Drive to the computer. q1to1@yahoo.com Cheers
Mar 23, 2009. 9:57 PMmetal-matt says:
i cant wait to see this thing fly'n! the big rocket sounds good too :D
Mar 8, 2009. 8:29 PMS1L3N7 SWAT says:
Sweet! Can't wait to see the data from this thing. Good job!
Mar 12, 2009. 1:02 PMS1L3N7 SWAT says:
Thanks!
Mar 10, 2009. 10:40 AMkurf says:
When you start running with this project....I would switch to a 20 Channel MN5010HS GPS Receiver. It's very tiny, can be run on 3.3v (coin cell battery) and can use a smt chip antenna. It should use the same commands as your EM-406 and will be just as sensitive too. I have a built a project very similar to yours for my graduating senior design project and am continuing to improve it as well. I have also designed PCBs. If you need any advice you can email me. Great work!!
Mar 11, 2009. 8:30 PMkurf says:
Your right there is no antenna on the actual receiver. It's a surface mount component. You'll need to make PCB for it. The antenna will connect to the receiver via a trace on the PCB, just like a surface mount resistor or cap would. I do have a lot of experience with surface mount components and have built a few antennas. If you want small you'll need to go with surface mount. I have worked with helical, ceramic and surface mount type antennas. All of them should do well in keeping a lock for you. Here's an example of a surface mount chip antenna. http://www.geocities.com/rdh82000/APRS/images/TinyGPS.jpg

Pressure sensor sounds great. This one is a SPI interface and has temperature reading as well. http://www.vti.fi/en/products/pressure-sensors/pressure_sensors/

Keep looking out there I'm sure you can find something cheap. Let me know if you have any specific questions.

kurf
Mar 8, 2009. 4:50 PMNachoMahma says:
. Good job. Keep us updated. . You forgot "hole reinforcements for wire labels" in the parts list. :)
Mar 10, 2009. 9:15 AM4tex says:
it will be good if you can list all of your components for your data-logger. from what i seen in the figure, i'm not so sure on the "Antenna" and the specific u-controller that you are using.
Mar 9, 2009. 3:24 PMhg341 says:
wow a reason to use my old rocket againit has no fins (I broke them off hum....)

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!
2
Followers
1
Author:wwgd
Embedded programmer that doesn't have the time to go to work.--I have too many important projects to work on!