Rocket Altimeter Logger

by TinyCircuits Staff March 07, 2016

Rocket Altimeter Logger

Using the microSD card and pressure sensor shields, we will create a data logger that tracks the altitude of an object like a model rocket! If you want to see footage of our rocket launches, check out the video here!

Step One: Materials

In order to charge your Lithium Ion battery, connect the TinyDuino to the USB TinyShield and plug in the USB chord. A yellow LED will turn on showing that the battery is charging and when the LED turns off, the battery is fully charged. The USB TinyShield does not need to be connected after programming in order for the data logger to work.

Drivers:

Before starting, the proper drivers must be installed to detect the COM ports. These drivers must be installed before downloading any codes from the codebender plugin. The drivers needed can be found here.


Step Two: Programming the TinyDuino

The program below can be downloaded to your computer or directly uploaded to your TinyDuino processor. The sensor used for the barometric pressure shield is the BMP280 from Bosch. The first sample of code shows the data coming from the sensor in the COM port while the second code logs the data to the microSD card. In order for the data to be logged, the SD card must be inserted before the TinyDuino is switched on. When the device logs a data point, a green LED on the processor will flash on and off. The code is setup to export the data points as a .csv file so it can be opened directly into Microsoft Excel. If you wish to change the file format, locate the DataFile[] character array and change "csv" to your desired format.


Step Three: Testing the Data Logger

To test the code, the device was dropped off of the fire escape to see how fast data could be recorded. The initial height is 922.84 feet above sea level and the final height is 882.86 feet above sea level. The device was dropped between data points 13 and 44.


Step Four: Installing the Logger

  

For our rockets, the nosecones were large enough to hold the altimeter comfortably. Every rocket is different, so get creative with its placement! (just make sure to keep it safe from the ejection charge!)

Step Five: Rocket Data

Here you can see the graphed data from each of the launches. Launches one and two are the data sets taken from the rocket shown in the previous step while sets three and four were taken from another rocket which did not survive the second landing. During the first two launches the parachute did not deploy completely causing the rocket to "tumble" as it fell causing the bumpy descent.



TinyCircuits Staff
TinyCircuits Staff

Author



Also in Learn

Tiny Arcade Assembly Instructions
Tiny Arcade Assembly Instructions

by TinyCircuits Staff September 18, 2016

Learn how to assemble your Tiny Arcade. You can read the step by step guide, or there's a video tutorial...

View full article →

Tiny Arcade Menu Update
Tiny Arcade Menu Update

by TinyCircuits Staff May 18, 2016

Update your Tiny Arcade software to the latest version from your computer.

View full article →

TinyScreen+ Windows 7/8 Driver Installation
TinyScreen+ Windows 7/8 Driver Installation

by TinyCircuits Staff May 18, 2016

Install the required drivers to use TinyScreen+ with Windows 7 and Windows 8.

View full article →