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
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.
@@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.
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?
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
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 ?
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.
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?
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
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.
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 ??
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.
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.
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 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.
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.
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
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
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.
@@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.
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
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.
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.
@@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.
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 ) ??
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
@@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 (
ROBOJAX videos are simply and usefull, recomend
Gasko, thank you.
Best code and video teaching I’ve found .... 🙏
Good to hear that . I am pleased you found it useful.
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
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.
@@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.
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?
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
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 ?
No. Not possible.
Hello,is altitude important in the calculation of pressure? Thank you for your answer
yes. Pressure always depends on height. See this ww2010.atmos.uiuc.edu/(Gh)/guides/mtr/prs/hght.rxml
I'm planning ro use it on a model rocket to deploy a parachute at certain height, hope it can be done
It should work. Good luck
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.
to store data on SD card you need micoSD card module. For voltage yes 3.3V is perfect.
@@robojax Yes I have a micoSD card module, just thinking about the code.....
I don't a tested code and I have no video on MicroSD card. I will post such video in the future.
would I be able to use the code in the video for a datalogger? im not sure how to do it.
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
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?
this is not detecting gas. only temperature and pressure.
@@robojax any idea which sensor will help me detecting gas?
Awesome example. Thanks for sharing!
you are welcome.
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
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.
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 ??
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.
Can this be used as force sensor?
No
hello ..can we use this to sense the blood pressure ?
No we can't.
Robojax is there any sensor can measure blood pressure? if yes can name one please ? thank you
Can I use Arduino DUE instead of Arduino UNO?
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.
does this sensor measure the pressure of gas line?
No
Is BMP180 used for blood pressure measurement?
No.
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 ?
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.
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???
Of course it will not work. SDA and SCL are different see the pins here www.arduino.cc/en/reference/wire
@@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.
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.
Well I tried an i2c scanner and it just came up with no devices connected
then it is dead. I assume you did correct wiring.
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
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
There seems to be a problem with the 'computed altitude' it is always the same as the 'provided altitude' regardless of pressure.
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.
@@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.
With a BMP180 I'm trying to measure pressure in the air so I can predict rain, could that be possible?
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.
How low a pressure can this detect? Near vacuum?
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
Hey dude pls make a lot push notification system which sends push notification to mobile with esp8266 board when it detected motion pls
Interesting. I will put this in "to do" list. Thank you
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.
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.
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.
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.
@@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.
is this water proof
No it is not.
Showing wrong and inaccurate data
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 )
??
And showing regular error value of +,- 1 meters in every counts ??
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
Code not compile ?
@@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 (