GithubHelp home page GithubHelp logo

Comments (11)

robertvandervoort avatar robertvandervoort commented on August 22, 2024 1

ok I lied :)

I am logging every one minute and dashboarding said results.. Part of my project is an ADC (the 1115 chip from adafruit) and I see when the analog lines with no pull-down (and nothing attached) get noisy, I assume from USB noise getting through the ESP-8266 and into the 3v3 vin of the 1115, after a few minutes or less than an hour is when the BMP loses its mind... Oddly, power cycling it doesn't seem to help, I have to power down the entire unit (maybe power is getting in from the i2c pins?) and it comes back to life. If I run the whole unit on battery only, there's harly any noise on the 1115... The BMP seems to do great.. UNTIL... I had it outside and it is like 40 degrees out today.. and it just wouldn't work at all.. I rebooted and it went into a loop because it is waiting on the BMP to initialize.. i removed the loop code to just power past it and when I poll the sensor, all I get is this:

Temperature = 32.00 *F
Pressure = 0.00 Pa
Approx altitude = 145446.73 ft

yeah I'm converting to F and ft because I'm a wuss like that...

Should I assume this sensor is kaput?

from adafruit_bmp280_library.

arantius avatar arantius commented on August 22, 2024

I just set this up on an ESP (via a NodeMCU), and thought I had the same problem (turns out because I was confused by units). I'm now reading 101959.88 which converts to 30.109 inches of mercury, which is quite close to the 30.14 a weather website claims as the current value.

The code I see in this repository seems identical to that in the BMP280 datasheet. Perhaps something else is happening for you?

from adafruit_bmp280_library.

aneek231 avatar aneek231 commented on August 22, 2024

I am also getting the pressure always below 100,000 Pa. Can you please tell me what is the problem ?

from adafruit_bmp280_library.

robertvandervoort avatar robertvandervoort commented on August 22, 2024

Oddly, I had this problem earlier today for about an hour. Pressure went from 101468.6 pa (fluctuating) to 81414.78 stable (my tipoff something was wrong). At the 101 kpa reading it was showing I was about -12m altitude and when it hits 81 kpa said +1800! Good thing I wasn't using the sensor to FLY anything right?!!

I am also using nodeMCU programmed through Arduino IDE and this library. Nothing has changed code wise, and the library remains the same (just began doing this yesterday so library code is unchanged). I'm real curious to see if anyone figures out what is going on.

Seems powering off for a bit and powering back on (ducking...) fixed the readings. The example code provides a number being fed into the getaltitude function which is the hpa of sea level. This NEEDS to be changed (calibrated?) for your location or its just really wrong and Adafruit says so in the code actually but they don't do a great job explaining what it is (I do like a good mystery though). I found this awesome calculator to get hectopascals corrected using temp and pressure and current elevation. http://keisan.casio.com/exec/system/1224575267

from adafruit_bmp280_library.

robertvandervoort avatar robertvandervoort commented on August 22, 2024

last comment.. have the altitude right on by using the right value for the parameter, but I'd suggest a future improvement for these sensors to add a reset function as outlined in the bmp280 datasheet...

4.3.2 Register 0xE0 “reset”
The “reset” register contains the soft reset word reset[7:0]. If the value 0xB6 is written to the
register, the device is reset using the complete power-on-reset procedure. Writing other values
than 0xB6 has no effect. The readout value is always 0x00.

from adafruit_bmp280_library.

ronnicek avatar ronnicek commented on August 22, 2024

Also getting under 1000hPa (wemos d1).. but I have a little meteo station, so I found out that when I calculate pressure from sensor + 40 then I get same result as on meteo station.

from adafruit_bmp280_library.

DavidRTucker avatar DavidRTucker commented on August 22, 2024

What overall value of pullup resistance? Perhaps it is worth checking the waveform on the I2C bus? Also try reading the sensor with SPI instead and see if that has the same issue?

from adafruit_bmp280_library.

andzer avatar andzer commented on August 22, 2024

I believe that you have to calculate sea level pressure. After this, it's accurate.

from adafruit_bmp280_library.

DavidRTucker avatar DavidRTucker commented on August 22, 2024

I have tried reading six sensors together to improve the accuracy two on I2C and four on SPI. Obviously this is an improvement but not stable enough to use for differential altitude with a tolerance of ±100 mm. I am building a couple of twelve channel sensing systems but I am not holding out much hope for any great improvements or achieving my objective with the BMP280.

from adafruit_bmp280_library.

andzer avatar andzer commented on August 22, 2024

Here is the calculation formula to find sea level pressure.
https://keisan.casio.com/exec/system/1224575267

from adafruit_bmp280_library.

ladyada avatar ladyada commented on August 22, 2024

closing due to lack of activity

from adafruit_bmp280_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.