Skip to content
  • 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
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

💬 Atmospheric Pressure Sensor

Scheduled Pinned Locked Moved Announcements
pressurebmp085
60 Posts 22 Posters 12.9k 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.
  • James FlosseJ Offline
    James FlosseJ Offline
    James Flosse
    wrote on last edited by
    #21

    The pressure and temperature is incorrect xD. sorry, i have 20°C in my room and the METAR of the near airport say 1016 hPa.

    mfalkviddM 1 Reply Last reply
    0
    • James FlosseJ James Flosse

      The pressure and temperature is incorrect xD. sorry, i have 20°C in my room and the METAR of the near airport say 1016 hPa.

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

      @James-Flosse thanks :)
      Strange problem. Is the bmp getting stable power? Maybe it is defective? You don't happen to have another bmp to compare with?

      1 Reply Last reply
      0
      • James FlosseJ Offline
        James FlosseJ Offline
        James Flosse
        wrote on last edited by
        #23

        Only bmp180 connected to arduino and i have test with 3 other :s

        1 Reply Last reply
        0
        • ghislainG Offline
          ghislainG Offline
          ghislain
          wrote on last edited by ghislain
          #24

          Hi, i'm using this sketch and I had to modify it a little bit. But i'm at work and i haven't it.

          You defined the altitude to 688 meters in you sketch, are you sure, you said you're at 1014mbars. If you're really at 700m you should be near 930mbars not 1014mbars.

          1 Reply Last reply
          0
          • James FlosseJ Offline
            James FlosseJ Offline
            James Flosse
            wrote on last edited by
            #25

            Ok i defined the altitude by my own (225 meters) but i have the same pressure and temperature :S

            1 Reply Last reply
            0
            • ghislainG Offline
              ghislainG Offline
              ghislain
              wrote on last edited by
              #26

              Too bad, can you upload a basic example sketch in the library adafruit to read pressure and temperature, just to be sure there is the same behavior.

              1 Reply Last reply
              0
              • James FlosseJ Offline
                James FlosseJ Offline
                James Flosse
                wrote on last edited by
                #27
                #include <Wire.h>
                #include <Adafruit_Sensor.h>
                #include <Adafruit_BMP085_U.h>
                   
                Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Unified(10085);
                 
                void setup(void) 
                {
                  Serial.begin(9600);
                  Serial.println("Pressure Sensor Test"); Serial.println("");
                  
                  /* Initialise the sensor */
                  if(!bmp.begin())
                  {
                    /* There was a problem detecting the BMP085 ... check your connections */
                    Serial.print("Ooops, no BMP085 detected ... Check your wiring or I2C ADDR!");
                    while(1);
                  }
                }
                 
                void loop(void) 
                {
                  /* Get a new sensor event */ 
                  sensors_event_t event;
                  bmp.getEvent(&event);
                 
                  /* Display the results (barometric pressure is measure in hPa) */
                  if (event.pressure)
                  {
                    /* Display atmospheric pressure in hPa */
                    Serial.print("Pressure: "); Serial.print(event.pressure); Serial.println(" hPa");
                  }
                  else
                  {
                    Serial.println("Sensor error");
                  }
                  delay(250);
                }
                
                Pressure: 756.46 hPa
                Pressure: 756.47 hPa
                Pressure: 756.49 hPa
                Pressure: 756.44 hPa
                Pressure: 756.44 hPa
                Pressure: 756.46 hPa
                Pressure: 756.41 hPa
                Pressure: 756.44 hPa
                Pressure: 756.42 hPa
                Pressure: 756.39 hPa
                Pressure: 756.42 hPa
                Pressure: 756.44 hPa
                Pressure: 756.38 hPa
                Pressure: 756.40 hPa
                Pressure: 756.41 hPa
                Pressure: 756.38 hPa
                Pressure: 756.41 hPa
                Pressure: 756.40 hPa
                Pressure: 756.38 hPa
                Pressure: 756.40 hPa
                Pressure: 756.42 hPa
                Pressure: 756.34 hPa
                Pressure: 756.22 hPa
                Pressure: 756.33 hPa
                Pressure: 756.37 hPa
                Pressure: 756.38 hPa
                
                

                same pressure

                1 Reply Last reply
                0
                • ghislainG Offline
                  ghislainG Offline
                  ghislain
                  wrote on last edited by
                  #28

                  Where did you buy your bmp180 ? you said the 3 you have make the same behavior ? something is wrong with the BMP sensor.

                  1 Reply Last reply
                  0
                  • James FlosseJ Offline
                    James FlosseJ Offline
                    James Flosse
                    wrote on last edited by
                    #29

                    I bought it in banggood, but it work's before...

                    1 Reply Last reply
                    0
                    • ghislainG Offline
                      ghislainG Offline
                      ghislain
                      wrote on last edited by
                      #30

                      It worked for a while and now it doesn't ? no problem of power supply ? 3v3 ?

                      1 Reply Last reply
                      0
                      • James FlosseJ Offline
                        James FlosseJ Offline
                        James Flosse
                        wrote on last edited by
                        #31

                        I supply itwith the 3.3 V output off arduino

                        1 Reply Last reply
                        0
                        • ghislainG Offline
                          ghislainG Offline
                          ghislain
                          wrote on last edited by
                          #32

                          I supply it with 5v, are you sure it's a 3v3 version ?

                          1 Reply Last reply
                          0
                          • James FlosseJ Offline
                            James FlosseJ Offline
                            James Flosse
                            wrote on last edited by James Flosse
                            #33

                            i tested with 3.3V and 5volt but same result
                            http://www.banggood.com/fr/GY-68-BMP180-Digital-Barometric-Pressure-Sensor-Board-Module-p-1059025.html?rmmds=myorder

                            1 Reply Last reply
                            0
                            • ghislainG Offline
                              ghislainG Offline
                              ghislain
                              wrote on last edited by
                              #34

                              OK, i've no further idea to help you. But i think your sensor is dead. DId you try older or newer library to compile your project ?

                              1 Reply Last reply
                              0
                              • James FlosseJ Offline
                                James FlosseJ Offline
                                James Flosse
                                wrote on last edited by
                                #35

                                Have you link for older library? Are you french?

                                1 Reply Last reply
                                0
                                • ghislainG Offline
                                  ghislainG Offline
                                  ghislain
                                  wrote on last edited by
                                  #36

                                  I am and you ? I can give you the sketch which is working for me with library i used.

                                  1 Reply Last reply
                                  0
                                  • James FlosseJ Offline
                                    James FlosseJ Offline
                                    James Flosse
                                    wrote on last edited by
                                    #37

                                    Yes ^^ . can you give me at snyp_thx at hotmail dot fr?

                                    1 Reply Last reply
                                    0
                                    • bgunnarbB Offline
                                      bgunnarbB Offline
                                      bgunnarb
                                      wrote on last edited by
                                      #38

                                      Hi!
                                      I had exactly the same problem until I realised I had compiled for the 8 MHz version of the Arduino Pro Mini instead of the 16 MHz version.
                                      Also, recently building an humidity sensor I realised there are no pull-up resistors on the SDA SDL lines, but that should be built-in if you use a break-out module.

                                      I have never been so busy since I retired!

                                      1 Reply Last reply
                                      2
                                      • HeinzH Offline
                                        HeinzH Offline
                                        Heinz
                                        Hero Member
                                        wrote on last edited by
                                        #39

                                        Which altitude did you enter, or at which sealevel do you live (in meters)?

                                        const float ALTITUDE = 688; // <-- adapt this value to your own location's altitude.
                                        

                                        The pressure of 728 hPa is a bit strange as it should be around 1000 hPa. In my eyes you threw out the code to correct the pressure depending on the sealevel of your home. See the code from my sketch:

                                        float pressure = bmp.seaLevelForAltitude(SEALEVEL, absolutePressure);
                                        

                                        Here you can download the sketch I am using:
                                        https://github.com/windkh/mysensors/blob/master/WeatherStationSensor/WeatherStationSensor.ino

                                        The forecast will be unknown for at least 30minutes, because the sensor needs that time to detect a weather trend.

                                        1 Reply Last reply
                                        0
                                        • James FlosseJ Offline
                                          James FlosseJ Offline
                                          James Flosse
                                          wrote on last edited by
                                          #40

                                          @bgunnarb you are find the problem, i think i have arduino pro mini 3.3V but it's 5V. Thx very much it's work better now :)

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


                                          3

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular