user50581: I am thinking about creating a robot that climbs vertically and stops at a certain point. I thought about using an altimiter in order to measure the distance, however, I dont know how to create a code for it. Where would you start with it, can it be done with MATLAB?
Thanks for everything :)

user50436: have fun playing with the Arduino and some sensors! It is a great platform to learn. For your task, look into the Bosch sensor modules BME280 (pressure with temperature and humidity) or BMP280 (just pressure). You can expect maybe +-1 meter of accuracy. Or check the precision version BME388 that could give you +-50cm. Go to the adafruit shop and try a few of the breakout boards. They provide great library and documentation support.
In order to get absolute altitudes, you need to factor in ambient air pressure. A good source for that are METAR reports issued for aircraft. There are many online sources where you can get the so called altimeter setting for an airport close to you. Airplane altimeters actually just show the altitude above a standard pressure plane, so you need to compensate for whatever pressure the current weather gives you.
For higher precision, you pretty soon have to integrate barometric pressure, GPS altitude, and maybe other sensors, with some serious math. This is where MATLAB fits in.

50581: <p>I am thinking about creating a robot that climbs vertically and stops at a certain point. I thought about using an altimiter in order to measure the distance, however, I dont know how to create a code for it. Where would you start with it, can it be done with MATLAB?</p>

<p>Thanks for everything :)</p>
 50436: <p>have fun playing with the Arduino and some sensors! It is a great platform to learn. For your task, look into the Bosch sensor modules <a href="https://cdn-shop.adafruit.com/datasheets/BST-BME280_DS001-10.pdf" rel="nofollow noreferrer">BME280</a> (pressure with temperature and humidity) or <a href="https://cdn-shop.adafruit.com/datasheets/BST-BMP280-DS001-11.pdf" rel="nofollow noreferrer">BMP280</a> (just pressure). You can expect maybe +-1 meter of accuracy. Or check the precision version <a href="https://datasheet.octopart.com/BMP388-Bosch-Tools-datasheet-103686868.pdf" rel="nofollow noreferrer">BME388</a> that could give you +-50cm. Go to the <a href="https://www.adafruit.com/category/114" rel="nofollow noreferrer">adafruit shop</a> and try a few of the breakout boards. They provide great library and documentation support.</p>

<p>In order to get absolute altitudes, you need to factor in ambient air pressure. A good source for that are <a href="https://en.wikipedia.org/wiki/METAR" rel="nofollow noreferrer">METAR</a> reports issued for aircraft. There are many online sources where you can get the so called <em>altimeter setting</em> for an airport close to you. Airplane altimeters actually just show the altitude above a standard pressure plane, so you need to compensate for whatever pressure the current weather gives you.</p>

<p>For higher precision, you pretty soon have to integrate barometric pressure, GPS altitude, and maybe other sensors, with some serious math. This is where MATLAB fits in.</p>
