Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Announcements
  3. 💬 Atmospheric Pressure Sensor

💬 Atmospheric Pressure Sensor

Scheduled Pinned Locked Moved Announcements
pressurebmp085
60 Posts 22 Posters 13.0k Views 19 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G grumpazoid

    I have now had my delivery of the above ebay sensor. Everything looks good. It is a BME280 and reports temp, humidity and pressure.

    I have used the sketch on the build page and it has worked without any editing. I just had to install the BME280 library as given in the example sketch. Everything is shown nicely in Domoticz.

    Interesting to note that when compiling in arduino IDE I get the following error : Low memory available, stability problems may occur.

    Wonder if there will be enough room to add my battery level monitoring code?

    mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #51

    @grumpazoid If you don't use the forecast feature, remove #define GENERATE_FORECAST. Doing that should give you much less ram usage.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      grumpazoid
      wrote on last edited by
      #52

      @mfalkvidd Thanks for that. This is going to be my outside weather node running off a 12V solar charged battery. I started wi a DHT22 but it failed after a few months.

      Raspberry Pi 3B - Domoticz + Node Red
      Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
      Arduino Mega, RFLink 433Mhz
      Sonoff/ESP8266/Tasmota switches

      1 Reply Last reply
      0
      • G Offline
        G Offline
        grumpazoid
        wrote on last edited by
        #53

        @mfalkvidd I've got it up and running now on the bench complete with measuring voltage. I found that removing all the serial print statements also free up a lot of memory. Thanks to all those involved for the provided code.

        Raspberry Pi 3B - Domoticz + Node Red
        Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
        Arduino Mega, RFLink 433Mhz
        Sonoff/ESP8266/Tasmota switches

        1 Reply Last reply
        1
        • I Offline
          I Offline
          Iliah Borg
          wrote on last edited by
          #54

          When using BME280 breakout https://lowpowerlab.com/shop/product/185 with Embedded Adventures library, life is easier if addrBME280 is set to 0x77 (it is set to 0x76 in BME280_MOD-1022.h)

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Fear na Boinne
            wrote on last edited by
            #55

            Weird question, but has anyone dealt with thermal isolation of the BMPx8x modules?

            To increase the WAF, I have one, together with a BH1750 and an rf-nano in a small, aesthetically pleasing, 3D printed custom housing. However, the temperature is stuck at 26.2°C, which I assume is due to the radiant heat from (mostly) the Arduino and the nRF24L01+

            So I am looking for ways to keep the BMPx8x cooler, so it can correctly measure the temperature (and therefore also the pressure, as the warmer chip means the barometric adjustment will be off)...

            mfalkviddM BearWithBeardB 2 Replies Last reply
            0
            • F Fear na Boinne

              Weird question, but has anyone dealt with thermal isolation of the BMPx8x modules?

              To increase the WAF, I have one, together with a BH1750 and an rf-nano in a small, aesthetically pleasing, 3D printed custom housing. However, the temperature is stuck at 26.2°C, which I assume is due to the radiant heat from (mostly) the Arduino and the nRF24L01+

              So I am looking for ways to keep the BMPx8x cooler, so it can correctly measure the temperature (and therefore also the pressure, as the warmer chip means the barometric adjustment will be off)...

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #56

              @Fear-na-Boinne how about calling sleep() between measurements? That will pus the Arduino and the nrf24 in sleep mode, where they won't generate heat.

              F 1 Reply Last reply
              1
              • mfalkviddM mfalkvidd

                @Fear-na-Boinne how about calling sleep() between measurements? That will pus the Arduino and the nrf24 in sleep mode, where they won't generate heat.

                F Offline
                F Offline
                Fear na Boinne
                wrote on last edited by
                #57

                @mfalkvidd Didn't think of that... I can try changing the delay() to a sleep() and see how much that impacts the temperature...

                (But I still am open to ideas to help insulate the sensor, and am now also wondering whether creating extra vent holes on both sides of the rf-nano might be a good idea, even if it means more dust can come in as well...)

                1 Reply Last reply
                1
                • F Fear na Boinne

                  Weird question, but has anyone dealt with thermal isolation of the BMPx8x modules?

                  To increase the WAF, I have one, together with a BH1750 and an rf-nano in a small, aesthetically pleasing, 3D printed custom housing. However, the temperature is stuck at 26.2°C, which I assume is due to the radiant heat from (mostly) the Arduino and the nRF24L01+

                  So I am looking for ways to keep the BMPx8x cooler, so it can correctly measure the temperature (and therefore also the pressure, as the warmer chip means the barometric adjustment will be off)...

                  BearWithBeardB Offline
                  BearWithBeardB Offline
                  BearWithBeard
                  wrote on last edited by BearWithBeard
                  #58

                  @Fear-na-Boinne I don't know how your device / enclosure is built, but it's good practice to place environmental sensors as close to an opening in the enclosure and keep the dead volume around it as small as possible. Ideally, you'd put it in a separate chamber and move it as far away from other electronics and possible heat sources to minimize their influence to the measurements. If you're worried about dust, you could use thin cloth or something like that around the openings as a dust filter.

                  That being said, the BME/P sensors tend to report too high temperatures (just google for "BME temperature too high" or something like that - you'll find tons of topics), partly due to self-heating depending on how you use it, e.g. with oversampling enabled. IIRC, using forced mode, oversampling at 0 for pressure and 1 for temperature (and humidity) and filter turned off, is the prefered way for simple weather measurements with minimal current draw according to the datasheet.

                  If you have one of those 5V modules, the voltage regulator on board might give off some heat aswell.

                  The "easiest" fix would be to offset the temperature reading in software by a few degrees, if the reported temperature is off by the same value over the whole relevant temperature range (assuming 15 - 30°C for room temperature in your case).

                  1 Reply Last reply
                  1
                  • F Offline
                    F Offline
                    Fear na Boinne
                    wrote on last edited by
                    #59

                    The min temperature has dropped significantly since using sleep(), but still the lowest I have seen is 22.8°C, when the other sensor in the room (The central heating thermostat that speaks OpenTherm) was showing a bigger variance.

                    My sensors are running on the 3.3v the Arduino puts out, so no extra regulators putting out heat (ie other than the one on the Arduino board).

                    I designed openings and stand-offs in the lid of the enclosure for the sensors, and the rf-nano sits at the bottom of the enclosure, but atm they share the same single chamber... Thinking of drilling a few venting holes near the rf-nano to let warm air out and cool air in...

                    IIRC am not oversampling, just doing timed single samples, but I'd have to check that.
                    It's currently sampling once every 10s because the enclosure also has a BH1750 lux sensor I want to sample more frequently, and they obviously run in the same sketch... :P

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      Fear na Boinne
                      wrote on last edited by
                      #60

                      Putting the graphs next to eachother, the graphs looked similar, and after guesstimating the difference and applying that to the sensor as a correction in Domoticz, the graphs are overlapping sufficiently to explain the differences by the difference in location (one is in the center at ~1.7m height, the other on a shelf in a corner at ~2m height) and standard deviation...
                      I'll keep it like this for a while and will reevaluate at a week's interval.

                      FWIW I am actually doing the basic oversampling, while doing the timed single samples.
                      If it remains an issue, I could modify the code to start the sensor with reduced oversampling/accuracy setting, but for now it looks good (enough)...

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      12

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular