Using BMP180 Digital temperature and pressure Sensor with Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ต.ค. 2024

ความคิดเห็น • 75

  • @gasko2762
    @gasko2762 4 ปีที่แล้ว

    ROBOJAX videos are simply and usefull, recomend

    • @robojax
      @robojax  4 ปีที่แล้ว

      Gasko, thank you.

  • @ssnoc
    @ssnoc 5 ปีที่แล้ว

    Best code and video teaching I’ve found .... 🙏

    • @robojax
      @robojax  5 ปีที่แล้ว

      Good to hear that . I am pleased you found it useful.

  • @escher22421
    @escher22421 5 ปีที่แล้ว

    In your tutorial you say connect the VIN to 5V. However you have it connected to 3.3V and it should be connected to 3.3V. 5V can damage the sensor. Otherwise it was a good tutorial. Thanks

    • @robojax
      @robojax  5 ปีที่แล้ว +2

      I mentioned at the beginning that this device has regulator. You can connect it up from 3.3 to 25V and it will work bacause the regulator doesn't allow the higher voltage to reach the sensor.

    • @simonjeppesen9484
      @simonjeppesen9484 5 ปีที่แล้ว

      @@robojax Otherwise the pin would not say 'VIN' but probably VDD instead so yes you can connect it to 5V . Actually connecting to 3.3V might cause a reduced voltage over the regulator and only providing 2.8 ish volt. Good job thanks for tutorial.

  • @Adityajoyal
    @Adityajoyal 4 ปีที่แล้ว

    Great Video, I think you are the only one who explains the sensors and codes with such detail.
    I am looking for a sensor that can measure height difference in the floors of a building. I think that can be done by comparing the absolute pressure reading from the two floors. Is this data given by this sensor accurate enough for such a purpose?

    • @robojax
      @robojax  4 ปีที่แล้ว

      I am glad you found them useful. No it is not accurate for your application. you need to use laser distance module VL53L0X which can measure up to 2000mm or VL53l1X which can measure up to 4000mm. are my videos on distance meter th-cam.com/users/robojaxTVsearch?query=%22distance%20meter%22

  • @omsingharjit
    @omsingharjit 5 ปีที่แล้ว

    Detailed explainetion thanks .
    I have Questions ?
    Is it possible to use BPM 180 sensor to make Blood pressure monitor ? This projects are rare on TH-cam
    Plz tell ?

    • @robojax
      @robojax  5 ปีที่แล้ว

      No. Not possible.

  • @l.a1617
    @l.a1617 5 ปีที่แล้ว

    Hello,is altitude important in the calculation of pressure? Thank you for your answer

    • @robojax
      @robojax  5 ปีที่แล้ว

      yes. Pressure always depends on height. See this ww2010.atmos.uiuc.edu/(Gh)/guides/mtr/prs/hght.rxml

  • @maheshwaranparamasivan5177
    @maheshwaranparamasivan5177 4 ปีที่แล้ว

    I'm planning ro use it on a model rocket to deploy a parachute at certain height, hope it can be done

    • @robojax
      @robojax  4 ปีที่แล้ว

      It should work. Good luck

  • @doctorvox
    @doctorvox 4 ปีที่แล้ว

    Great work, thanks. What would be required to store the values on a micro SD card? I notice that the code says Do Not connect to +5Volts. The BMP180 (with regulator board)does seem to work OK if connected to 3V3.

    • @robojax
      @robojax  4 ปีที่แล้ว

      to store data on SD card you need micoSD card module. For voltage yes 3.3V is perfect.

    • @doctorvox
      @doctorvox 4 ปีที่แล้ว

      @@robojax Yes I have a micoSD card module, just thinking about the code.....

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      I don't a tested code and I have no video on MicroSD card. I will post such video in the future.

  • @timonator9929
    @timonator9929 2 ปีที่แล้ว

    would I be able to use the code in the video for a datalogger? im not sure how to do it.

    • @robojax
      @robojax  2 ปีที่แล้ว

      Yes it is possible using a microSD card module. I will post video on that in a few days but you can search for it on TH-cam

  • @hassannawaz
    @hassannawaz ปีที่แล้ว

    I need to detect if there is any gas in a pipe. Its natural gas in plastic pipe going into geyser. Is it possible with this module? Maybe i can put it between the gas pipe?

    • @robojax
      @robojax  ปีที่แล้ว

      this is not detecting gas. only temperature and pressure.

    • @hassannawaz
      @hassannawaz ปีที่แล้ว

      @@robojax any idea which sensor will help me detecting gas?

  • @FalcuunFalcuunn
    @FalcuunFalcuunn 5 ปีที่แล้ว

    Awesome example. Thanks for sharing!

    • @robojax
      @robojax  5 ปีที่แล้ว

      you are welcome.

  • @voltronicsautomation
    @voltronicsautomation 4 ปีที่แล้ว

    Assalamualaikum Robojax.. i got a question.. can I measure multiple analog value ADC at UNO simultaneously. If can't, what is the way to do it.. or do u have any references that I can refer to? Jazakallah from Malaysia

    • @robojax
      @robojax  4 ปีที่แล้ว

      walaikum salaam, you can read all Analog inputs at the same time. here is example for single input but you can apply the same for multiple. th-cam.com/video/TbLdAQpE4jE/w-d-xo.html you simply read them and they don't needed to be defined as INPUT. just use analogRead(A0); analogRead(A1); analogRead(A2); ....etc.

  • @omsingharjit
    @omsingharjit 5 ปีที่แล้ว

    I checked its datasheet i found that its has 4 mode of operation 0 low power to 4 high power and accuracy mode ? So may be this is the reason why my sensor giving me big error of read +,- 1 meters error reading ?
    So how can i set in code for high accuracy mode ??

    • @robojax
      @robojax  5 ปีที่แล้ว

      the library I used has not function for mode of operation. You may use this library github.com/adafruit/Adafruit_BMP085_Unified and set mode of operation. You can search for mode inside .h file github.com/adafruit/Adafruit_BMP085_Unified/blob/master/Adafruit_BMP085_U.h I won't be able to help you further. Good luck.

  • @jomfawad9255
    @jomfawad9255 5 หลายเดือนก่อน

    Can this be used as force sensor?

    • @robojax
      @robojax  5 หลายเดือนก่อน

      No

  • @mrdard00sh
    @mrdard00sh 5 ปีที่แล้ว

    hello ..can we use this to sense the blood pressure ?

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      No we can't.

    • @mrdard00sh
      @mrdard00sh 5 ปีที่แล้ว

      Robojax is there any sensor can measure blood pressure? if yes can name one please ? thank you

  • @ColloiXGaming
    @ColloiXGaming 7 หลายเดือนก่อน

    Can I use Arduino DUE instead of Arduino UNO?

    • @robojax
      @robojax  7 หลายเดือนก่อน +1

      Yea you can use any arduino as long as you connect hot wires correctly. The SDA and SCL pins light be different. See arduino wire page to see pins of your board.

  • @mhsohan2769
    @mhsohan2769 3 ปีที่แล้ว

    does this sensor measure the pressure of gas line?

  • @shaikabdullathif1158
    @shaikabdullathif1158 5 ปีที่แล้ว

    Is BMP180 used for blood pressure measurement?

  • @olivieroreggia
    @olivieroreggia 4 ปีที่แล้ว

    I am looking for a pressure sensor for arduino that can be used in water.
    Purpose : measuring pressure in water in fonction of deepth. Any idea ?

    • @robojax
      @robojax  4 ปีที่แล้ว

      that would be totally different pressure sensor which I have not worked with due to it is cost. you may search on Amazon or eBay to find it.

  • @timonator9929
    @timonator9929 2 ปีที่แล้ว

    hi robojax i resentally got a bmp180 sencor and have been having alot of problems with it. i connected vin to 3v3 pin, gnd to gnd scl to pin 5 and sda to pin 4. (on the arduino nano). i tryed to use an i2c scanner to find its adress. but it said that no devices were connected. they i tried your code (and library) and it again said no devices were connected. but before when i was playing with the i2c scanner i did connect it to the 5v pin. (because i wasnt sure if it was getting enuth power). im not really sure what to do. did i just get a faulty board???

    • @robojax
      @robojax  2 ปีที่แล้ว

      Of course it will not work. SDA and SCL are different see the pins here www.arduino.cc/en/reference/wire

    • @timonator9929
      @timonator9929 2 ปีที่แล้ว

      @@robojax on the arduino nano the my sda pin is on pin 4 and scl is on pin 5 like the arduino uno. And I think I have connected it properly because I connected a mpu 6050 to the same pins (it used i2c) and it worked fine. And I got got to say in my last comment but I really liked your video, and it helped me understand other aspects of the sencor.

    • @robojax
      @robojax  2 ปีที่แล้ว

      then the sensor is dead if wiring is correct. Try I2C scanner to see if you can get the I2C address. if not, then the module is dead. Search my channel or robojax.com for the I2C scanner code.

    • @timonator9929
      @timonator9929 2 ปีที่แล้ว

      Well I tried an i2c scanner and it just came up with no devices connected

    • @robojax
      @robojax  2 ปีที่แล้ว

      then it is dead. I assume you did correct wiring.

  • @MrSantod
    @MrSantod 4 ปีที่แล้ว

    I'm getting the following error message:
    Arduino: 1.8.13 (Mac OS X), Board: "Arduino Uno"
    Robojax_BMP180:79:10: fatal error: SFE_BMP180.h: No such file or directory
    #include
    ^~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    SFE_BMP180.h: No such file or directory
    Specified folder/zip file does not contain a valid library
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    I thought I downloaded file and unzipped it. What am I missing? I'm working on a Mac

    • @robojax
      @robojax  4 ปีที่แล้ว

      unzipped it to where? you have not included the library. or you can do this click on Sketch->Include Libraary->Add .zip library and then select zip file

  • @JohnWells-vp9hq
    @JohnWells-vp9hq 4 ปีที่แล้ว

    There seems to be a problem with the 'computed altitude' it is always the same as the 'provided altitude' regardless of pressure.

    • @robojax
      @robojax  4 ปีที่แล้ว

      I don't have the device but you should be getting approximate value if you enter your altitude. Make sure to start with fresh code if you have updated it.

    • @JohnWells-vp9hq
      @JohnWells-vp9hq 4 ปีที่แล้ว

      @@robojax as in your demo, whatever is entered for your ALTITUDE figure, it is simply displayed in the computed altitude, not affected by actual air pressure.

  • @redkal06
    @redkal06 4 ปีที่แล้ว

    With a BMP180 I'm trying to measure pressure in the air so I can predict rain, could that be possible?

    • @robojax
      @robojax  4 ปีที่แล้ว

      you can measure the pressure for sure. but I have no knowledge of how you predict rain. But if pressure is useful for that , sure this is can do it.

  • @GAment_11
    @GAment_11 5 ปีที่แล้ว

    How low a pressure can this detect? Near vacuum?

    • @robojax
      @robojax  5 ปีที่แล้ว

      I just updated the page where I provided the code. I fixed the link to the manufacturer website and added the datasheet. the pressure range is from 300 to 1100 hPa

  • @bhoopathyg2416
    @bhoopathyg2416 6 ปีที่แล้ว

    Hey dude pls make a lot push notification system which sends push notification to mobile with esp8266 board when it detected motion pls

    • @robojax
      @robojax  6 ปีที่แล้ว +1

      Interesting. I will put this in "to do" list. Thank you

  • @DataLog
    @DataLog 4 ปีที่แล้ว

    Please explain the code... Nobody shows how to change pins for analog inputs. Every tutorial is A4 and A5. I can't fit everything I need on the board.

    • @robojax
      @robojax  4 ปีที่แล้ว

      I have explained it. A4 and A5 are SDA and SCL pins I2C pins and they are internally used for I2C. After pin 13 you should have SDA and SCL pins.

  • @tristunalekzander5608
    @tristunalekzander5608 5 ปีที่แล้ว

    Caused me lots of confusion. The baseline reading NEEDS to be in setup, otherwise your baseline pressure will change with the absolute pressure, making it appear as there is no altitude change. The code from the video needs to be completely rewritten to fix this.

    • @robojax
      @robojax  5 ปีที่แล้ว

      Hi, as I explained in the video, your sea level matters and also the pressure changes in different time of day. you would have to compare it to lab device. Remember this is a proximate no absolute correct. This is used in mobile devices and other person item not for scientific devices. Please subscribe.

    • @tristunalekzander5608
      @tristunalekzander5608 5 ปีที่แล้ว

      @@robojax I will subscribe and it was a great video otherwise :) However, it is important to understand that the baseline pressure needs to be established in the setup. No matter what time of the year it is, it will calculate sea level based off your current pressure and your given altitude. If the baseline is updating _with_ the absolute pressure, it will read no change in altitude no matter how high you go with it, it literally thinks that sea level is _moving with you._ You have to establish a baseline that _does not change_ during the time it is on. That is why the example in the library you chose does this. When doing this, the BMP180 is accurate within about 2 feet, which is extremely accurate. Your code displays the same altitude no matter how high or low you take it.
      It's probably fine because it seems like nobody is using it for an altimeter anyway, they just want to make temperature displays or something. But I need it for model rockets so without the altimeter it is pointless. If I were you, I would just pin a comment explaining this for the few who are watching it for the altimeter and tell them just to use the example code.

  • @BubbleBassBackShots
    @BubbleBassBackShots 6 ปีที่แล้ว

    is this water proof

    • @robojax
      @robojax  6 ปีที่แล้ว

      No it is not.

  • @omsingharjit
    @omsingharjit 5 ปีที่แล้ว

    Showing wrong and inaccurate data

    • @omsingharjit
      @omsingharjit 5 ปีที่แล้ว

      I am using lib example
      It showing two value 1 is Altitude = 72 met
      2nd is real altitude = 86.72 Meter
      What is the difference between both ?
      And Google showing my area Altitude 128 meters ???
      And showing pressure at sea lev calculated = 100456pa
      ( And in code 101325pa )
      ??

    • @omsingharjit
      @omsingharjit 5 ปีที่แล้ว

      And showing regular error value of +,- 1 meters in every counts ??

    • @robojax
      @robojax  5 ปีที่แล้ว

      You can't use it as altitude meter. it is approximate value. Please visit this page to see if manufacturer says it shows altitude. www.bosch-sensortec.com/bst/products/all_products/bmp180

    • @omsingharjit
      @omsingharjit 5 ปีที่แล้ว

      Code not compile ?

    • @omsingharjit
      @omsingharjit 5 ปีที่แล้ว

      @@robojax i found this -
      Applications
      - Indoor navigation
      - GPS-enhancement for dead-reckoning, slope detection, etc.
      - Sport devices, e.g. altitude profile
      - Weather forecast
      - Vertical velocity indication (