• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Altitude Changes even when not moved.

Q&A Forum › Altitude Changes even when not moved.
0 Vote Up Vote Down
Robert Gillespie asked 4 years ago
12 Answers
0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Hi:
I’m running the BME680 experiment and I’m using the local sea_level_pressure to try to get altitude.  My readings are not stable.  I’ve got the experiment running in my house and my house is about 12 feet above sea level locally.  Is there any reason that the altitude would change?  Could it be the the atm pressure is changing?  Appreciate any help.  Love working with the BME680.  It is a really neat chip.

0 Vote Up Vote Down
omar alboug answered 4 years ago

Just my thoughts. I do not claim to be very knowledgable in this field.
 
The atmospheric pressure is not fixed. You get hi and low front that is the engine of weather changes.
I read pressure any where from 1010 to 1018, I compare it to the official sites, it usualy compares very well. I have the bme680
When a cell of air get loaded with moisture it falls down and leak to neighboring cells on the surface of earth. in such case the cell went from high to low pressure.
The change in pressure can get significant but there should be a carpet value for sea level and that what is used in the example

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Omar, thanks for this answer.  I’m more concerned about altitude however.  The response from the ESP 32 changes even though the position of the ESP 32 never changes.  It appears to change with the pressure in the room.  I would hope that it would always give me the 12 feet above sea level because that is where it is.  Any thoughts?

0 Vote Up Vote Down
omar alboug answered 4 years ago

0 Vote Up Vote Down
omar alboug answered 4 years ago

it does change but within the datasheet
my house on the coast as well

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Thank you all for your valuable inputs.

The altitude is calculated taking into account the current pressure and sea level pressure at the moment.
There are always fluctuations on the pressure measured from the sensor, hence you’ll have altitude fluctuations.
Additionally, the sea level pressure can also vary. If you use the same sea level pressure reference all the time, you may also have changes in altitude calculations. The reference sea level pressure is hardcoded on the sketch, so it is always the same.
I’m not an expert in these weather topics, but I think this explains the fluctuations.

Regards,
Sara

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Thanks Sara and Omar.  I think to make this work accurately that the sea level pressure would have to be continually input from an external source.  The BME680 appears to be accurate when I compare with what I get from local weather sources with pressure data available.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Yes. I think that would be the solution.
Getting the updated sea level pressure from an external source.
Regards,
Sara

0 Vote Up Vote Down
jdkearney answered 4 years ago

In aviation, when you are leaving an airport you set the altitude of the airport on the altimeter. When you climb higher than 18,000 feet you set the altimeter to 29.92 inches of mercury so that all aircraft are using the same setting. When you are descending through 18,000 feet approaching a new airport you then set the altimeter to the value given to you by the air traffic controller there which should show you the airfield height above sea level when you land. You might be able to get the local barometer setting from a nearby radio or TV station but you would have to update it regularly, or just buy a barometer. Good luck. Doug.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Thanks for sharing that, Doug.
Regards,
Sara

0 Vote Up Vote Down
William Lucid answered 4 years ago

Tech Note 142 – Calibrate a BME280/680 Pressure Sensor or Barometer is a “YouTube” video by G6EJD – David.
Good information to pass along; covers subject very well.  
Could indoor air flow from a heating “duct/register” be causing a change in Barometric Pressure; in turn affecting the altitude reading?  I woulder if altitude changes would occur in a stationary location outdoors. 
 
William
 
 

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Will check it out.  Thanks.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.