Monday, April 28, 2014

Magneto

In order to measure magnetic field strength, we included a magnetometer in the payload. We used Honeywell's HMC5883L triple-axis magnetometer (pictured below), available for about fifteen dollars at the sparkfun website.

We calibrated the sensor using localized, real-time Earth magnetic field data that is made public by the National Geophysical Data Center (NGDC) and National Oceanic and Atmospheric Association (NOAA). To calibrate and test the magnetometer, we took "actual" values from their website which provides accurate magnetic fields vectors by location.  The website is:
http://www.ngdc.noaa.gov/geomag-web
It turns out that the expected 'half a gauss' of magnetic field strength one typically encounters on Earth point primarily in the vertical direction. We calibrated the output corresponding to each (orthogonal and cartesian) magnetometer axis, so that when aligned vertically, it would agree with the actual vertical Earth magnetic field strength obtained from the aforementioned website. Physically and mathematically, we followed the same basic procedure we used to calibrate and test the accelerometer.
We formed a calibration curve for each (x, y, and z) magnetic field direction by interpolating from expected values corresponding to each analogRead output (summarized in the table below) from the sensor.

Actual Magnetic Field Strength (nT)
xRead
yRead
zRead
+50.6
    -382
    -546
    -421
-50.6
479
278
323

For each (x, y, z) direction, two points were used to form the following linear calibration curves which calculate magnetic field strength from the Arduino software's analogRead commands.



               
 


Temperature Sensor Testing


In order to measure atmospheric temperature, we included on our payload a digital temperature sensor, the TM102, which can be purchased using the following link: 
\https://www.sparkfun.com/products/11931
The TMP102 provides temperature measurements by calculating the difference in arrival time of a test signal through a wire exposed to some unknown temperature. This is compared to a standard, constant clock signal which isn't affected by temperature. 
A change in temperature tends to induce predictable changes in a material's electrical conductivity, or resistance. Since most metals exhibit greater resistances with increasing temperatures, the (change in) arrival time of a signal traveling through such a wire can be accurately matched to its temperature. This sensor uses diodes which have particularly large and linear temperature coefficients. Therefore, with a constant operating current, a change in temperature felt by the TMP102 (changing the resistance of the test wire) induces voltage differences read by specific analog inputs on the Arduino microcontroller. 
The manufacturer has published an operating range of -40 C to +125 C but we expected our payload to experience temperatures slightly lower than that. We tested the accuracy of the TMP102 down to -74 C. With the help of Mr. Larkin, we were able to use a freezer in the graduate labs of the Mark J. Science Complex at EMU. 























Seen above is the refrigerator in the lab, showing -74 C. The laptop on the left is connected to an arduino through USB. We wire-wrapped the TMP102 to that arduino using long wires which were thin enough to allow the refrigerator door to close and latch. We protected the sensor from potential condensation in the refrigerator with a small zip-lock bag.
The TMP102 sensor reacted faster than expected, reaching equilibrium with the refrigerator in under fifteen minutes. We defined that point by no reported change in temperature by the TMP102 for a duration of 10 to 15 seconds. By that time the change in temperature with time had settled to 0.01 C per second. 
We then tested the TMP102 in with a less powerful refrigerator in the same lab as well as at room temperature. The following table summarizes those results:

Measured Temperature (C)Actual Temperature (C)%-error
-75.0 -74.0 1.35
-17.9 -17.5 2.29
22.122.9 3.49

"Actual Temperature" was measured using an IR thermometer except in the coldest test, in which the temperature reported by the refrigerator was used.

The results show that we can depend on this temperature sensor to operate as expected, outside the published range with minimal %-error. 

Sunday, April 27, 2014

Flight Video Links

Weathered Warriors Part 1: https://www.youtube.com/watch?v=JPCuhRh7Urw
Weathered Warriors Part 2: https://www.youtube.com/watch?v=X6bR5eZBMv0
Weathered Warriors Part 3: https://www.youtube.com/watch?v=qvIiy5kTSAg
Weathered Warriors Part 4: https://www.youtube.com/watch?v=hOzmXxAkdu8

Pre-Flight Testing

            Before sending our payload out into the atmosphere to receive measurements, we had to make sure our data was going to be able to be sent to us via the Laird Aerocomm Radios, and our position was going to be displayed online via the Micro-Trak GPS System. As you have seen in our earlier posts, we have been successful in having our payload communicate with the computer via Aerocomm while in the lab, but we had yet to ensure all of our data would be sent over a long distance. So we set up our ground station in the yard in front of the Mark Jefferson Science Building, and had one of us walk around with the payload and Micro-Trak, while maintaining line of sight with the ground station. We found to our disappointment that the radios would only communicate within a distance of about thirty feet. The other group was having similar issues with their system, but after consulting with Dr. Pawlowski, we decided the loss in communication was most likely due to interference from all the nearby trees and buildings. We were able to get a satellite lock on the Micro-Trak, but the data wasn't being loaded onto the website. We figured this to be a momentary issue with the website and not with our device. We were also able to use this time to check over and finalize testing for all of our other devices on the payload. While the payload was within thirty feet, we were able to see all our data presented completely and organized, which let us know the data logger was working fine. Also, we saw we had an adequate number of satellites lock onto our GPS sensor in the payload, and all of our sensors were giving accurate measurements for our conditions. After checking all of these devices and concluding what we believed to be the causes of our Aerocomm and Micro-Trak issues, we decided that our payload was ready to be combined with the other balloon components and go for launch.

Accelerometer Sensor Testing

                We tested the ADXL335 accelerometer by first rotating it so that each axis would receive a value of 1g, 0g, and -1g for a given time. We then observed the analog read data saved on the data logger to see what values each axis was giving off, based on the g value they were receiving. Below are the analog read values we found for each g value, for each axis.

x Val
y Val
z Val
0g
339
339
347
+1g
406
402
412
-1g
270
265
279

                From here we then created three linear calibration equations to place into our code so we would receive g values instead of arbitrary analog read ones. The three equations are below.


               
              As you can see, the three linear equations will convert our analog data into multiples of g, which ensures that the data we collect will be accurate and usable for analysis.

Friday, April 25, 2014

Weather Balloon Flight

LAUNCH DAY!

            It’s been a long time coming, but we've finally built a working balloon and were ready to let it fly. This post will discuss the launch day events, launch, tracking, and recovery. The weather was great, not a cloud in the sky. The Weathered Warriors team started a little slow the morning of the launch, but that didn't stop us. The team made its way just South of Coldwater, Michigan where our flight simulation software predicted the best launch site. The team used the following website with our payload specifications and current weather predictions to model a simulated flight of our balloon: UM balloon sim.

            Upon reaching the launch site Adam began setting up the ground communication systems while Jason and Guy prepared the payloads for launch.  A final brief test of payload systems was carried out in the parking lot of an elementary school just south of Coldwater, MI. An initial test of the systems showed good results. The aerocomm was sending the sensor data clearly. A few minutes wait, a GPS lock was attained with about 9 satellites relaying data. The payload was shut off to conserve power until just before launch. Guy and Jason secured the payloads to each other using quick links and nylon string.

The Weathered Warriors’ balloon was the last of four to launch. With preparations made, all payloads were powered on and secured. The Microtrak was being picked up by our ground station and igating perfectly with aprs.fi. The cell tracker was responding with accurate GPS coordinates when prompted and the accutracking website had the location locked. The aerocomm system wasn’t relaying information however. The system had worked great in the parking lot, but not that the balloon was 50 yards away on the lawn of the elementary school the comms system had ceased to function. At this point, our balloon was almost inflated and we had no choice but to launch and hope the problem was just a line of sight issue. This turned out not to be the problem as the aerocomm system did not receive another transmission for the remainder of the day.

Immediately after the launch, we packed up and took off toward the predicted landing site. The cell tracker stopped responding to our texts for GPS coordinates once it lost cellular signal which occurred at about 10,000 ft. The Microtrak however did function and relayed an updated ping to our ground station every minute. Some signals were not received however we never went longer than five minutes at a time without receiving a new message. Below is a screen shot of the flight data which can be found at aprs.fi with the call sign KD8WZP.


The balloon popped somewhere over US-223 and reached a maximum measured altitude of 93,000 feet. The balloon landed on the northern side of Tecumseh, MI a few miles short of the prediction. We believe the parachute was tangle and only partially deployed during the decent. This faster decent caused the balloon to land short of the target area. All parts of the balloon were recovered except for the FTU which had been lost somewhere along the flight.

A final note to make about the recovery would be to say that when the balloon landed we were still a few miles away driving through the town of Tecumseh. Below 800 feet, we stopped receiving messages from the Microtrak. We think that this was due to a lack of line of sight with the Microtrak and our ground station in the car. We knew the general location of the landing site, but not the exact location. However at this point, the cell tracker had regained service and began responding to the several texts which were sent to it while in flight. The cell tracker was used to give us the exact GPS coordinates of the payload after it had landed. We used a google maps app on a cell phone to track down the payload on foot which made recovery a breeze. We found it almost immediately. Luckily the payload landed in an open field not more than 200 yards away from a road.   

Friday, March 28, 2014

Pressure Sensor Testing






We tested the MPX5100A pressure sensor by placing the device in the same room as an analogue barometer and reading both measurements, and by placing the device outside and looking up the barometric pressure of our area online. Our results are below.
Expected
Measured
%-error
Weather.com
100.6 kPa
100.0 kPa
0.6 %
Classroom Barometer
94.8 kPa
98.8 kPa
4.2 %
We feel that the percent difference is higher when compared to the analogue barometer because the analogue barometer is old and probably hasn’t been calibrated in a while. We are still confident in our results to send the sensor up with our payload