Tuesday, April 23, 2024

Cheapest Digital Altimeter

ashwiniThe altimeter is one of the basic and most essential devices used in-flight systems, drones, space rockets, and submarines to measure the altitude of a location (known as altimetry for land and bathymetry if underwater). It is also one of the most popular devices for para diving and paragliding but most of them are very costly. Therefore, I have decided to make an DIY of the cheapest digital altimeter that can be effectively used for all these purposes. This Altimeter uses the Arduino and BMP280 sensors to get the altitude. 

Altimeter

Bill Of Material 

We need the following components for our device.

Bom

Coding

After collecting all the required components, we can begin with our coding. Open the Arduino IDE and go to Sketch → Library manager → Search. Install the following libraries. 

- Advertisement -
  • BMP280
  • U8g2

Now include both libraries in the code and then create variables that will store the sensor readings. Next, create a setup function and then start the I2C communication with OLED and BMP280. After that, create a loop function through which the sensor data is displayed on an OLED. We are using the library U8g2 to obtain temperature, pressure, and altitude data from sensor for our altimeter device. 

Code
Fig1
Code2
Fig 2
Code for altimeter
Fig 3

Working

Our Altimeter is able to measure the altitude of a place using the readings taken by the air pressure sensor. As we all know, the air pressure of a place varies according to its height with respect to the atmosphere. Air pressure decreases with an increase in height and vice-versa. So it detects the change in air pressure and calculates the altitude from sea level. Generally, all altimeters use the same principle But since they highly rely on the reading from the pressure sensor to measure the altitude, varying seasonal cycles and different weather conditions might affect those readings. That’s why to get accurate and reliable data, we need to continuously update the altimeters with the current environmental conditions. 

Connection

Connect the components as shown below in the circuit diagram.

- Advertisement -

 

digital Altimeter Circuit
Connection

Testing

Now after getting everything ready, power the device, wait for a second and then check the readings of the temperature, pressure and altitude in the OLED display. The altitude that you will see is the normal altitude above the sea level. When you keep moving towards a gradually rising altitude, the reading automatically gets updated and increases with respect to the height from the ground. So our cheapest digital altimeter is ready. We can use this device in paragliding to get the altitude reading.

Applications

We can place this altimeter in an air balloon. Usually a GPS sensor is used in drones to obtain the coordinates of latitude and longitude for precise information about its location. However, it cannot tell us at what height it is located. Thus, here an altimeter is required to measure the altitude and help in navigation.

We can also use an altimeter in lift, elevator and in indoor positioning. As a GPS system can only get the latitude and longitude but not the altitude, an altimeter can assist in locating the height of a lift door, that is, at what floor the lift is currently located at. 

Download Code

Ashwini Sinha
Ashwini Sinha
A tech journalist at EFY, with hands-on expertise in electronics DIY. He has an extraordinary passion for AI, IoT, and electronics. Holder of two design records and two times winner of US-China Makers Award.

8 COMMENTS

SHARE YOUR THOUGHTS & COMMENTS

Unique DIY Projects

Electronics News

Truly Innovative Tech

MOst Popular Videos

Electronics Components

Calculators

×