Why You Should Stop Using The Adafruit BMP280 Library

Поділитися
Вставка
  • Опубліковано 4 лип 2024
  • Most UA-cam videos and website appear to promote the Adafruit BMP280 library for pressure/temperature sensors but I have had many issues with it. Initial setup can be complicated requiring he finding and stating of the I2C address of the sensor. The recovery time is also very slow taking over 10 seconds to drop back to atmospheric pressure.
    I suggest using the Forced BMX280 library by soylentOrange which doesn't have the above issues and is also designed to be more compact such that it can be programmed onto an ATtiny meaning it requires less memory and RAM:
    github.com/soylentOrange/Forc...
    0:00 Intro
    0:14 Adafruit BMP280 Issues
    1:11 Forced BMX280 Replacement
    1:50 Outro

КОМЕНТАРІ • 7

  • @jnfkjbfizbki
    @jnfkjbfizbki 20 днів тому

    I had no idea the adafruit library would not allow the decompression to be accurately represented through time, which is a more than essential point for my onboard flight computer. Thanks for the video!!!

  • @TD-er
    @TD-er 4 місяці тому +5

    The Bosch sensors do have some parameters for setting up an IIR filter.
    This does make the response as slow as you observed.
    You can simply disable it or set it to more responsive (but still filtering) values.
    However when sampling at a higher rate, be aware you are heating up the sensor, so when you try using the sensor to measure temperature (and/or humidity on the BME280) you will get an offset.
    Another reason why you may get to see an offset in measured values is when you don't read all I2C registers in a single I2C command.
    If you don't then you may end up with readings which partially belong to the previous and some belonging to the new reading with iterative intermediate results.
    I have no idea what the Adafruit library actually does, as I'm using my own code for 5+ years now in ESPEasy as back then all implementations I found online did exactly do what I described.

    • @alexkolesen3765
      @alexkolesen3765 3 місяці тому

      Do you think it is possible to use BMP280 for a freefall altimeter? I need to get accurate readings every 100ms or so, but I experience the same delay of pressure reading going down way to slow as shown in the video. Also it never goes back to exact reading before the pressure was changed rapidly. Using BMX280 library did not solve the issue. I would appreciate your input so I can decide if I need to learn how this sensor works and write the code for it instead of using a library or choose another sensor.

  • @qwertyboguss
    @qwertyboguss 4 місяці тому +1

    Thanks for sharing this may be helpful in the future.

  • @dans-designs
    @dans-designs 4 місяці тому

    nice video, thanks for making this!

  • @SmileyFace01
    @SmileyFace01 4 місяці тому +1

    Do you have any explanation for why this happens?
    Adafruit seems to be doing interesting things sometimes.. and I've found that it's often better to just make my own libraries for stuff like neopixels, displays etc.
    Although there are often other very good options.

  • @phenylxeon
    @phenylxeon 4 місяці тому

    I'm bussin