Last week, my son and I launched a two stage sugar rocket to about 25k feet using our flight computer and a backup StratoLogger on the sustainer. On this launch, the GPS data and velocity data indicated much lower altitude than the barometer, so we pulled the data from the StratoLogger, and to our surprise it confirmed a 4K foot difference. We checked our raw pressure data and formulas twice and still couldn't figure out why they would be different. So we put them both in a vacuum chamber, lit it up, and again they were way off at the higher altitudes. So then we put three more commercial altimeters in the vacuum chamber with our board and all three commercial altimeters matched in altitude, but ours was the odd man out at 10-20% higher depending on altitude.
Six months earlier, we had switched to a MS5607 barometer and switched out our libraries. Our MS5607 library is a mix of custom and open source, but we decided to swap our old “standard” pressure-altitude formula in the library for a new one, as it used the “barometric formula”, incorporating temperature. We assumed that formula would be more accurate. Flying at 10K to 12K feet regularly, we didn't see much difference, but at 25K there was a huge difference.
When we switch back to the “standard” pressure-altitude formula, not incorporating temperature, we align perfectly to all the commercial altimeters. Since the sensor is already integrating temperature, I assume our error was integrating temperature a second time in the code using the barometer output. I suppose if we had a primitive sensor that only measured pressure and another only measuring temperature, then our “barometric formula” might work fine.
Is this correct or are we missing something? Excluding integration of velocity and GPS data into pressure data, is there a better formula for calculating altitude based on the pressure/temp data coming out of the sensor?
For reference here is the “standard” pressure-altitude formula we are now using: https://en.wikipedia.org/wiki/Pressure_altitude
And the “barometric formula” we were using: https://en.wikipedia.org/wiki/Barometric_formula
Thanks,
Mike
Vacuum chamber results w/old formula compared to three commercial altimeters.
Six months earlier, we had switched to a MS5607 barometer and switched out our libraries. Our MS5607 library is a mix of custom and open source, but we decided to swap our old “standard” pressure-altitude formula in the library for a new one, as it used the “barometric formula”, incorporating temperature. We assumed that formula would be more accurate. Flying at 10K to 12K feet regularly, we didn't see much difference, but at 25K there was a huge difference.
When we switch back to the “standard” pressure-altitude formula, not incorporating temperature, we align perfectly to all the commercial altimeters. Since the sensor is already integrating temperature, I assume our error was integrating temperature a second time in the code using the barometer output. I suppose if we had a primitive sensor that only measured pressure and another only measuring temperature, then our “barometric formula” might work fine.
Is this correct or are we missing something? Excluding integration of velocity and GPS data into pressure data, is there a better formula for calculating altitude based on the pressure/temp data coming out of the sensor?
For reference here is the “standard” pressure-altitude formula we are now using: https://en.wikipedia.org/wiki/Pressure_altitude
And the “barometric formula” we were using: https://en.wikipedia.org/wiki/Barometric_formula
Thanks,
Mike
Vacuum chamber results w/old formula compared to three commercial altimeters.