Knowing one's altitude, height above sea level, is useful for many applications. Airplane pilots use it so they don't run into the ground or each other. Hikers and mountain climbers use it to know where they are and how far to the summit. Etc.

There are various ways to determine altitude. Pressure based altitude computation is a common method and Adafruit sells numerous pressure sensors that can report an altitude. But to get an accurate value for altitude from pressure, there are a few important details to consider. In this guide we will go over the specifics of how pressure is used to compute altitude and learn about those important details.

To help illustrate things in a real world application, we will use an Adafruit CLUE board and CircuitPython to create a simple little altimeter and take it into the mountains.

Put your yodelin' hat on and let's get started!


Animated GIF showing CLUE board  displaying data from the many on-board sensors.
Do you feel like you just don't have a CLUE? Well, we can help with that - get a CLUE here at Adafruit by picking up this sensor-packed development board. We wanted to build some...
In Stock
Angled shot of a rectangular lipo battery with a 2-pin JST connector. The battery specs are listed on the body: 3.7V 250mAh.
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This...
Out of Stock
USB cable - USB A to Micro-B - 3 foot long
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or...
In Stock

This guide was first published on Jul 28, 2020. It was last updated on Jun 19, 2024.

This page (Overview) was last updated on Mar 08, 2024.

Text editor powered by tinymce.