Barometer Drift Problem ( Temperature Dependent )

Hi

It's My first question here. So excuse me for any problem in the post.

I have a ms5611 barometer that installed on a GY-86 breakout module.

in order to understand the accuracy of the sensor, I log several minutes reading of it in a fixed place with some fabric casing. casing is because of air flow rejection. using an arduino uno and an ethernet shield for logging.

this is the picture of configuration:

3691326598?profile=original

The library i use, is a library that i download with gy-86 examples. with MS561101BA header and cpp files. it has a default moving average filter with 32 window.

The Problem is that my results show that pressure is changing over temperature and is very sensitive to it. This is the first question. is it right? i know that temperature has a role in the pressure. but maybe it should canceled over calibration calculations.

this is the results of pressure and temperature changes over time.

3691326603?profile=original

3691326545?profile=originalas you can see, the pressure changes is the direct result of slight temperature changes. 

The second stage is altitude calculation.

For altitude calculation, there is no hint in ms5611 datasheet. but i found in other libraries and datasheets two different formulas that both of them are extracted from standard standard atmosphere formulas.

first : 

 h = ((pow((101315 / press), 1/5.257) - 1.0) * (temp + 273.15)) / 0.0065

This formula is the exact reformulation of standard atmosphere formulas in first 11 km of atmosphere.

second:

h= (1.0 - pow(press/101325.0, 0.190295)) * 4433000.0

this formula is suggested from other barometer manufacturers like boch and nxp. although it's a little unclear to me.

Unfortunately both of them show the varying altitude with respect to temperature. See the result:

The first formula result :

3691326673?profile=original

The second formula result :

3691326709?profile=original

As you can see, In both altitude estimations, regardless of altitude values itself, The altitude changes with time clearly because of temperature.

I have another very long data that shows a sudden 20 meter change in altitude because of abrupt 1 degree temperature change. I think one degree is something that can not be avoided in a circuit. So what is your suggestions for stable altitude reading? I do not mean exact altitude, but approximately constant altitude with sub meter variations over slight changes of temperature is something essential for me.  

Thanks a lot.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity

DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
More…