Comments (11)
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.
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.
I am also getting the pressure always below 100,000 Pa. Can you please tell me what is the problem ?
from adafruit_bmp280_library.
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.
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.
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.
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.
I believe that you have to calculate sea level pressure. After this, it's accurate.
from adafruit_bmp280_library.
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.
Here is the calculation formula to find sea level pressure.
https://keisan.casio.com/exec/system/1224575267
from adafruit_bmp280_library.
closing due to lack of activity
from adafruit_bmp280_library.
Related Issues (20)
- Upgraded library to v 1.0.5 has wrong address HOT 2
- Pa or hPa? HOT 6
- Typo correction HOT 3
- Has travis even though it is labeled as not having it in spreadsheet HOT 1
- I can't compile the test code
- BMP 280 for both 0x76 and 0x77 Addresses HOT 1
- Unable to compile in Arduino IDE for WAVGAT UNO R3 HOT 1
- error: 'class Adafruit_BMP280' has no member named 'setI2CAddress' and further errors ... HOT 1
- Min Value swapped with Max Value HOT 3
- Convert to BusIO usage HOT 1
- different chip ID HOT 2
- Overflow error, line 83. HOT 6
- include I2C bitbang HOT 3
- Adafruit_BMP280 does not initialize config structure, can result in erroneous configuration for SPI 3-wire mode HOT 2
- Failing Gracefully? HOT 5
- ESP32 Core panic when using constructor Adafruit_BMP280(&Wire) and using Adafruit_Sensor HOT 6
- Spelling mistake readTemperature method HOT 2
- not found in library: printSensorDetails HOT 1
- Library is missing dependency list (e.g., Adafruit_I2C) HOT 4
- Library doesn't work for ESP32 and ESP8266 in PlatformIO. #include <SPI.h>^~~~~~~ compilation terminated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_bmp280_library.