At the bottom of the code there's an adjustment to be made in hPa (/* Adjusted to local forecast! */) - search for a METAR reading in your local area and adjust the hPa value in the code to match this - should give a more accurate "Approx altitude"
IIRC, you can get even more precision by knowing the height above sea level of your exact location to calculate an even more precise hPa adjustment factor.
Muchas gracias por realizar este video, muy claro e instructivo. Por fin pude programar mi BMP 280, pensé que estaba roto. Saludos desde la ciudad de Córdoba, Argentina.
Nice! I'm originally from almost where you are located (always good to see familiar names on the map). As for the altitude: this should be corrected for QNH (so, like you're saying, the weather basically). I've seen tables for that in other sensor manuals; still gotta check this one.
Quick question: on which side should we solder? On the side with the writing or the side with the components? I did the soldering on th side with the writing and I feel like this is why it didn't work. Looks like the copper wiring is on the other side and if the soldering was superficial it didn't make a proper connection.
My BMP280 came without the onboard level shifters. Meaning it runs on 3V3. I have a couple of options... 1) Provide two rails - 5 volts and 3.3 volts - and Include separate level shifters. 2) Is more interesting... Run the Arduino and the display on 3V3, too. Here's how to do it. The Arduino has an auxiliary 5V output pin. This output is after the Arduino's voltage regulator. Simply input (yes, input) 3V3 on this pin and the Arduino will run, happily. Next, use a 3V3 1602 Display. Or, convert a 5V unit. They (mostly) all use a common board which can be configured as either voltage. The 3V3 model uses a L7660 negative (yes, negative) charge pump to lower the 3V3 ground point to a net 5 volts = clever. All the needed vacant pads are already on most 5V PCBs. Just add the L7660 and a couple of caps. HTH.
The Adafruit BMP280 library did not even detect my sensor (which was almost the same model, GY-BM ME/PM280, but it was detected with I2C Detect) so I installed I2C Sensor Lib and they include a BMP280 example that works (and you don't even have to type the 0x76 address in there)! Also, I believe the first variable is the elevation while not detecting small changes (average over time), am I right?
Thank You So much. I didn't knew about that i2c part where we have to add that hex code.. I thought for a moment that I destroyed the sensor or something. This Video saved my money and time too. Thanks for Uploading. :)
Arduino nano is compatible to 5 V, isn't it? Are two level shifters required to be added outside the bmp280 sensor (at scl and sda)? I have done all the steps and only zeros for pressure and temperature are returned. Any ideas?
How & where can I connect an hose to this sensor in order to measure the under water pressure? My aim is to measure the under water pressure & to demonstrate that the pressure increases as the depth/height of water increases (Hydrostatic Law).
The altitude is calculated by the air pressure. And since the air pressure varies, the accuracy is rather low. You could increse it, by taking the current temperature and the air pressure at sea level at your location in consideration. If you want a higher accuracy, than a satelite based sensor, like GPS, would be a better choice.
@@nenioc187 Ah Okay, I see. I'll need to look into GPS sensors and maybe even combining that sensor with the BMP as a backup. My altimiter will need to be correct, 100% of the time
All the serial monitor says for me is the timestamp and "BMP20 test" The I2C detect doesn't detect anything. But it doesn't say to check the wiring, so the sensor must not be defective?
If the I2C scanner doesn't detect any device, it might be because of wrong wiring, wrong supply voltage for the sensor, defective Pins on the I2C bus, or - as you said - defective sensor.
Hi I messed around a few days trying to get it working, have the address in the if statement did the trick. Many thanks and I can confirm it does not work with 5V
Thanks for the video. I'm curious, is this sensor sensitive and fast enough to measure air speed differences when blowing on it through a small tube glued to the hole on the sensor? And also the tube itself will have a small hole to make it possible to blow through, like if when playing a flute. I'd like to use it for MIDI controller, but I'm not sure if it won't be too slow or not enough sensitive (not detecting enough levels of blowing).
I had once the case, that the sensor wasn't recognized. I2C scanner didn't find it either. The solution was: the sensor was defect. Replaced it and it worked fine.
I have connected the sensor using I2C transmission like in the video but nothing. I use some codes to define the I2C port but they don't find it, so I try every port from 1 to 128. I checked every connection 10 times and tryed the with 2 sensor. Ideas?
If the I2Cscanner shows no address, there is still plenty of possible errors.. there could be a wiring problem. Maybe the sensor is broken. Maybe one of the analog pins of the controller is broken (had this once). Maybe the sensor is broken. Have the controller and the sensor a common ground line?
I took a brief look in the datasheet provided by Adafruit. And it seems that you can change the I2C address by either connecting pin SDO to GND or SDO to VCC. So theoretically you should be able to attach up to 3 BMP280 sensors on one I2C bus. Although I haven't tested it - yet ;-)
Oh very good work. I'm really happy fro your video. Currently I'm trying to measure Blood pressure. I'm using resperry pi 3(it can only read digital sensors ) and therefore I like this sensor as it digital output. Could I use this Barometric Pressure Sensor for that purpose? If it does how to connect Air pump and Blood Pressure Cuff with sensor ? Please could you help me?
That sounds like a great project! I'm not sure how much air pressure is reached within the blood pressure cuff. This is the thing you probably want to measure. The sensor can handle up to 1100 hPa.
as far as i know the arduino NANO have 5V logic voltage, does it safe when sda scl connect directly to NANO analog pin? or should i use voltage divider to 3.3V first? thank you
At the bottom of the code there's an adjustment to be made in hPa (/* Adjusted to local forecast! */) - search for a METAR reading in your local area and adjust the hPa value in the code to match this - should give a more accurate "Approx altitude"
Thanks! I'll give it a try!
IIRC, you can get even more precision by knowing the height above sea level of your exact location to calculate an even more precise hPa adjustment factor.
Thank you bro. No other place exlains the address issue. You rock!
You're welcome!
I was there scratching my head thinking what am I missing I even tried using a 3.3 voltage level shift then I watch this video was help full thanks
Thanks, man!! The address fix I have not come across anywhere else.
Muchas gracias por realizar este video, muy claro e instructivo.
Por fin pude programar mi BMP 280, pensé que estaba roto.
Saludos desde la ciudad de Córdoba, Argentina.
Since this board can be soldered on both sides, you could've soldered the headers the other way around so that you can see the markings.
Nice! I'm originally from almost where you are located (always good to see familiar names on the map). As for the altitude: this should be corrected for QNH (so, like you're saying, the weather basically). I've seen tables for that in other sensor manuals; still gotta check this one.
Quick question: on which side should we solder? On the side with the writing or the side with the components? I did the soldering on th side with the writing and I feel like this is why it didn't work. Looks like the copper wiring is on the other side and if the soldering was superficial it didn't make a proper connection.
My BMP280 came without the onboard level shifters. Meaning it runs on 3V3. I have a couple of options... 1) Provide two rails - 5 volts and 3.3 volts - and Include separate level shifters. 2) Is more interesting... Run the Arduino and the display on 3V3, too. Here's how to do it. The Arduino has an auxiliary 5V output pin. This output is after the Arduino's voltage regulator. Simply input (yes, input) 3V3 on this pin and the Arduino will run, happily. Next, use a 3V3 1602 Display. Or, convert a 5V unit. They (mostly) all use a common board which can be configured as either voltage. The 3V3 model uses a L7660 negative (yes, negative) charge pump to lower the 3V3 ground point to a net 5 volts = clever. All the needed vacant pads are already on most 5V PCBs. Just add the L7660 and a couple of caps. HTH.
Thanks. Bought one of these on ebay and didn't have a clue on how to connect it up. Double thank you for the address check on the sensor.
Why did you solder the header with the silkscreen (pin names) on the bottom side? Are the hole not through-holes?
The Adafruit BMP280 library did not even detect my sensor (which was almost the same model, GY-BM ME/PM280, but it was detected with I2C Detect) so I installed I2C Sensor Lib and they include a BMP280 example that works (and you don't even have to type the 0x76 address in there)! Also, I believe the first variable is the elevation while not detecting small changes (average over time), am I right?
Thank You So much. I didn't knew about that i2c part where we have to add that hex code.. I thought for a moment that I destroyed the sensor or something. This Video saved my money and time too.
Thanks for Uploading. :)
My pleasure!
Arduino nano is compatible to 5 V, isn't it? Are two level shifters required to be added outside the bmp280 sensor (at scl and sda)? I have done all the steps and only zeros for pressure and temperature are returned. Any ideas?
How & where can I connect an hose to this sensor in order to measure the under water pressure?
My aim is to measure the under water pressure & to demonstrate that the pressure increases as the depth/height of water increases (Hydrostatic Law).
How can I found the adress for the sensor??
Use chatGPT
So the sensor is just completely inaccurate when it comes to the altitude?
The altitude is calculated by the air pressure. And since the air pressure varies, the accuracy is rather low. You could increse it, by taking the current temperature and the air pressure at sea level at your location in consideration.
If you want a higher accuracy, than a satelite based sensor, like GPS, would be a better choice.
@@nenioc187 Ah Okay, I see. I'll need to look into GPS sensors and maybe even combining that sensor with the BMP as a backup. My altimiter will need to be correct, 100% of the time
All the serial monitor says for me is the timestamp and "BMP20 test"
The I2C detect doesn't detect anything. But it doesn't say to check the wiring, so the sensor must not be defective?
If the I2C scanner doesn't detect any device, it might be because of wrong wiring, wrong supply voltage for the sensor, defective Pins on the I2C bus, or - as you said - defective sensor.
Hi I messed around a few days trying to get it working, have the address in the if statement did the trick. Many thanks and I can confirm it does not work with 5V
i just ordered a few of these without realizing they are 3,3v, bugger
Thanks for the video.
I'm curious, is this sensor sensitive and fast enough to measure air speed differences when blowing on it through a small tube glued to the hole on the sensor? And also the tube itself will have a small hole to make it possible to blow through, like if when playing a flute.
I'd like to use it for MIDI controller, but I'm not sure if it won't be too slow or not enough sensitive (not detecting enough levels of blowing).
That would work! I have a similar use to measure wave height in the ocean (relatively) with it at the end of a tube.
Incoming data appears as "nan". How do I fix this problem?
Temperature = nan *C
Pressure = nan hPa
Approx. Altitude = nan m
Humidity = nan %
like that
NaN stands for "Not a Number". Maybe you are using the wrong I2C address? Or forgot to the VCC connection to the sensor?
Brother you my Hero ! thanks a lot i two days try solve addres problem . 100 % good job ! keep going.
Help! I cannot get this device working. Does it need logic level shifting with an arduino uno? Can't even scan it for an address, nothing. Thanks!
I had once the case, that the sensor wasn't recognized. I2C scanner didn't find it either. The solution was: the sensor was defect. Replaced it and it worked fine.
you can switch the adres for 0x76 put sdo-gnd for 0x77 put sdo to vcc
I have the original Adafruit BMP 280 but when I try to do it it says "Adafruit_Sensor.h: No such file or directory"
Have you installed the BMP 280 library with the Library Manager?
@@nenioc187 Yes I did
3:47 It's what you're looking for.
I have connected the sensor using I2C transmission like in the video but nothing. I use some codes to define the I2C port but they don't find it, so I try every port from 1 to 128. I checked every connection 10 times and tryed the with 2 sensor. Ideas?
Have you tried the i2cscanner?
@@nenioc187 yes
If the I2Cscanner shows no address, there is still plenty of possible errors.. there could be a wiring problem. Maybe the sensor is broken. Maybe one of the analog pins of the controller is broken (had this once). Maybe the sensor is broken. Have the controller and the sensor a common ground line?
@@nenioc187 now the seller have told me the two bmp bought have a problem so he will refund me...
Good video, my friend. Could you describe how you discovered the correct address for I2C?
There is an Arduino sketch, called I2CScanner. You can find it in the examples.
@@nenioc187 Excellent. Thanks! New to Arduino & I2C, learning so much.
Is it possible to use more than one of this sensors at the same time? I think they have the same i2c adress, haven't they?
I took a brief look in the datasheet provided by Adafruit. And it seems that you can change the I2C address by either connecting pin SDO to GND or SDO to VCC. So theoretically you should be able to attach up to 3 BMP280 sensors on one I2C bus.
Although I haven't tested it - yet ;-)
nenioc187 Ok, thank you!
i want to ask that this sensor (BMP280) messure humidity, doesn't it?
The BMP280 measures only temperature and air pressure.
The BME280 measures also humidity.
i have recently read datasheet of them. i understood. Thank you very much!
do you really put the value 0x76 inside the code? im also having the same problem as you
You can use the sketch I2CScanner to determine on which address the device is listening.
@@nenioc187 i already did that and i got 0x77, so whats next? Do i hav to put it in the codes or else? Can tou email me your worked codes
Instead of using bmp.begin(), use bmp.begin(0x77, &Wire) to initialize.
@@nenioc187 ok ill try it thank youu
Thank you for the video. I bought mine for 50 cent!
By the way the it only supports 3.3v, is it safe to work with 5v?
See my post, above, to learn what is needed to run on 3.3 volts.
Do we need to solder bmp 280 with pins headers?
You could also solder wires to it.
can this pressure sensor measure the amount of pressure in the cylinder ?
The sensor is made for weather stations. Not for high pressure you want to create in a cylinder.
I had the same Problem. Thank you that you showed that in your Video!
Oh very good work. I'm really happy fro your video.
Currently I'm trying to measure Blood pressure. I'm using resperry pi 3(it can only read digital sensors ) and therefore I like this sensor as it digital output. Could I use this Barometric Pressure Sensor for that purpose?
If it does how to connect Air pump and Blood Pressure Cuff with sensor ?
Please could you help me?
That sounds like a great project! I'm not sure how much air pressure is reached within the blood pressure cuff. This is the thing you probably want to measure. The sensor can handle up to 1100 hPa.
For me it's not working can you please help me
as far as i know the arduino NANO have 5V logic voltage, does it safe when sda scl connect directly to NANO analog pin? or should i use voltage divider to 3.3V first? thank you
See my post, above to learn how to run on 3.3 volts.
just a small issue, please do not use f word at 4:00, I was watching this video with my son
Sorry. Was the only time I was using it.
🙌 if possible if you've got a mo the sketch file please mate
Didn't write own code. Just used the examples from the Adafruit library.
github.com/adafruit/Adafruit_BMP280_Library
Thanks mate
thank You Bro so much! for the usefull video
Subscribed all the way 😊☺️
pls send me all library thanks
Well done! Thanks!
My pleasure!
3:50 :P
Thanks. Very good!
Can you share code ? Please send me email.
bme280 will more suitable, it can test humility
That's correct! But the BMP280 was more common and cheaper, when I made the video ;-)
Ty 4 help
like good thank's verry much
My pleasure!
cool
did you have to curse? totally unexpected
Made me laugh.
You must be an American?
Fucking legend! Thanks a lot, I finally got it to work I had the same problem