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

SRAM TinyShield Tutorial
SRAM TinyShield Tutorial

by Nick DiVitto July 02, 2018

The SRAM Tinyshield allows you to add memory to your TinyDuino projects that can read and write at a virtually instant rate. Here's...

View full article →

Servo Controller TinyShield Tutorial
Servo Controller TinyShield Tutorial

by Nick DiVitto June 26, 2018

Learn how to control servos with TinyDuino using the Servo Controller TinyShield!

View full article →

Battery Voltage Reading Using the TinyScreen+
Battery Voltage Reading Using the TinyScreen+

by TinyCircuits Staff June 15, 2018

View full article →