editor's blog
Subscribe Now

From Relative to Absolute Altitude

GPS is notoriously inaccurate when it comes to vertical positioning. And it disappears entirely inside buildings. So pressure sensors are used to help calculate vertical positioning.

The thing is, a pressure sensor decides your altitude based on the pressure of the air, so it must be comparing it to some baseline. The problem with that is that there is no firm baseline pressure: weather, as we all know, affects the air pressure.

That means that pressure is, first of all, a moving target. Secondly, we can never really know our absolute altitude, only relative.

I posed these questions in a conversation with the Bosch Sensortec team at the MEMS Executive Congress where they were discussing the upcoming release of their new pressure sensors. They talk about being able to handle absolute altitude, so the obvious question is, what about the weather?

There are two pieces to the answer. The first deals with the fact that the baseline pressure isn’t constant. However, compared to pressure changes due to typical motion, the weather pressure changes extremely slowly. (If it’s changing so fast that it could be confused with you moving around, then navigation error is the least of your problems.) From a signal standpoint, the pressure changes of interest can be extracted with a high-pass filter, at least conceptually. More simply, you can think of it as a differential-mode measurement, with actual weather pressure being a common-mode error that’s subtracted out.

That allows you to get a reasonably accurate measure of relative altitude, but what about absolute altitude? Now you need to compare yourself to a sea-level baseline, and that baseline does depend on the weather. Well, there’s no magic available on this. The Bosch Sensortec software can get the data necessary to correct for the current sea-level pressure from the internet. Given that external sanity check, a pressure sensor can provide absolute altitude.

There are a couple other “faster-twitch” effects that can confuse pressure interpretation. The first is simply the fact that some buildings or rooms may have higher or lower air pressure based on the air conditioning or intentional implementation of things like positive pressure for a clean room. Even just opening a door can send a pressure surge. These effects won’t be eliminated or “de-convoluted” in the same way that weather impacts can be. Instead, the pressure data must be fused with other data to decide whether the pressure change reflects a change in altitude. Specifically, if an inertial sensor shows no vertical motion, then the pressure change can be “ignored” (although now it becomes the new baseline).

Pressure measurements also depend on temperature: a local temperature change can register as a pressure change when in fact the pressure didn’t change. Good temperature compensation is required (which is essentially data fusion between a thermometer and a pressure sensor); a pressure sensor less affected by temperature (as is claimed by Bosch Sensortec for their new BMP280) can also help.

Leave a Reply

featured blogs
Jan 20, 2020
As you probably know, discrete wire component data is quite a bit different than just standard socket and terminal mating relationships. When we look at how Samtec approaches discrete wire products, there are several components involved. We not only sell the assemblies, but w...
Jan 20, 2020
My latest video blog is now available. This time I am looking at operating systems for embedded applications and how you go about selecting one. You can see the video here or here: Future video blogs will continue to look at topics of interest to embedded software developers....
Jan 17, 2020
I once met Steve Wozniak, or he once met me (it's hard to remember the nitty-gritty details)....
Jan 17, 2020
[From the last episode: We saw how virtual memory helps resolve the differences between where a compiler thinks things will go in memory and the real memories in a real system.] We'€™ve talked a lot about memory '€“ different kinds of memory, cache memory, heap memory, vi...

Featured Video

RedFit IDC SKEDD Connector

Sponsored by Wurth Electronics and Mouser Electronics

Why attach a header connector to your PCB when you really don’t need one? If you’re plugging a ribbon cable into your board, particularly for a limited-use function such as provisioning, diagnostics, or testing, it can be costly and clunky to add a header connector to your BOM, and introduce yet another component to pick and place. Wouldn’t it be great if you could plug directly into your board with no connector required on the PCB side? In this episode of Chalk Talk, Amelia Dalton chats with Ben Arden from Wurth Electronics about Redfit, a slick new connector solution that plugs directly into standard via holes on your PCB.

Click here for more information about Wurth Electronics REDFIT IDC SKEDD Connector