Terranigmus
Posts: 6
Joined: Mon Jan 21, 2013 7:50 pm

Barometer Calibration? Offset?

Mon Dec 28, 2015 11:49 pm

Hi.
I'm having trouble with the Sense-Hat.

It seems like the barometric pressure is not quite correct.

I haven't been able to determine if it's just an offset or something more complicated but currently the Pi logs pressure at approx. 1023 hPa, however local Weatherstations(really close) show that the pressure is at 1029 hPa.
I haven't been able to get my hands on other recordings for the few days I've been logging, I found a graph and it looks somewhat similar in qualitative changes but not in absolute numbers.
I thought I'd ask you guys.

Does anyone have any experience with this?

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Barometer Calibration? Offset?

Tue Dec 29, 2015 2:11 am

How high above mean sealevel (MSL) are you?

Code: Select all

def msl(pressure,altitude=112.2):
    msl = pressure/pow(1-(altitude/44330.0),5.255)
    return "%4.2f"  % (msl)
update that with your altitude and call it with your local reading.

At a rough estimate you're about 50 metres above MSL.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Zorac
Posts: 25
Joined: Wed Nov 04, 2015 4:04 am

Re: Barometer Calibration? Offset?

Tue Dec 29, 2015 2:53 am

here is the formula i use to get from absolute pressure to sealevel pressure:

http://keisan.casio.com/exec/system/1224575267

Terranigmus
Posts: 6
Joined: Mon Jan 21, 2013 7:50 pm

Re: Barometer Calibration? Offset?

Wed Dec 30, 2015 12:17 pm

Thanks!

That's it!
I've been using the Pi at 0 since I live at a coast but i moved to a different location over the holidays.
Didn't know that I had to do this.

Return to “Astro Pi”