BMP280 Pressure Sensor Module - Arduino Tutorial

แชร์
ฝัง

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

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

    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).

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

    For people who, like me, ran into problems with the sensor outputting NaN after a while, try connecting it with 3.3V instead of 5V. This is the correct way and the sensor will be more stable.

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

    Can you tell me how to get the readings from 2 BMP280s using one Arduino?
    (I know that I would need a Multiplexer but is there any other solution?)

  • @davidjackowski4336
    @davidjackowski4336 7 ปีที่แล้ว

    You can also use the I2C-SENSOR-LIB library found in the arduino IDE library manager. Great video! Your use of red for gnd bothered me to no end haha.

    • @aidan7548
      @aidan7548  7 ปีที่แล้ว

      David Jackowski Thanks for the tip! Yeah I didn't realise until after I'd uploaded that I had the red wire haha

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

    Very crisp and clear video.

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

    how to read the vacuum using pirani gauge and arduino?

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

    Дай тобі Господь Бог здоров'я, добра людино.

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

    thanx for a good video. to the point and clearly understandable.

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

    Fantastic vid man, thanks a lot for sharing your knowledge!

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

    hey when I click on "ADD.zip library..."I am getting the following error:
    Arduino: 1.8.1 (Windows 7), Board: "Arduino/Genuino Uno"
    Specified folder/zip file does not contain a valid library
    Specified folder/zip file does not contain a valid library
    Specified folder/zip file does not contain a valid library
    please help....

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

    Hi i just tried it but i am getting a negative numper of pressure and nan m for altitude can you help me;

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

    new to arduino ....please.what is the gui used to program the nano??
    perhaps a link to DL . ? thanks

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

    This sensor seems pretty cool. Ill be soldering this in a bit. :P

  • @sairambondili6645
    @sairambondili6645 7 ปีที่แล้ว +1

    hi , can you please provide the resources for using the same device in SPI mode ??

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

    Hi Aidan; I need to have three sensors on the same bus... Any thoughts/suggestions? TY (to subtract differences between temps and pressures)

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

      This sensor can also use the SPI connection, which will allow multiple sensors to share the bus. You can see tutorials on using SPI by Googling for them, and you'll need an SPI library for the Arduino. I believe that on this sensor, SCL=SCLK, SDA=MOSI, SDO=MISO, CSB=SS. You use a different Arduino pin for each sensor's SS line, but the others are common.

  • @geraldschaefer7960
    @geraldschaefer7960 6 ปีที่แล้ว +2

    There is an error in the INO program. I was getting gibberish as an output until I changed your line of code from "Serial.begin(57600); " to "Serial.begin(9600); "then I could read the text but the data is not changing. it just shows 0C, 32F, etc... even if I blow on the sensor, the data isn't moving. I'm using Arduino Uno Mega and the A4 & A5 ports wired as you instruct. Why aren't the other CSB SDO ports used? Sorry I am a newbie to this...

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

      I just discovered it was a problem with my knock off Arduino Mega board. I guess you get what you pay for... all is working fine! Thanks for a great video, just note the Baud rate correction I noted earlier! THANKS!

    • @Craigthepope
      @Craigthepope 6 ปีที่แล้ว +2

      There's nothing wrong with your clone. The issue is that the baud rate wasn't matching the one used on the serial monitor.

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

      Gerald Schaefer I had the same error, plus it stops running after sending this to the serial monitor:
      Starting BME280... result of .begin (): 0x

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

      An "uno mega"?

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

    I want to use this with a small OLED display, which requires pins A4 and A5 as output pins. Is there any way to assign these pins alternately to input and output in the sketch, or can I/must I use different pins for each device?

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

      You can plug up to 255 devices on those 2 pins. As long as they have different addresses, they will all show up. But you will have trouble plugging in 2 of the same screen for example, as they are going to have the same 'unique' address. (This can also be changed by changing a resistor on the screen / peripheral)
      I've personally made several devices using a screen (usually SCL SDA) and the BMP180 (the old version of this altitude chip) also SCL SDA, and it works fine.
      I've had 4 SCL SDA devices running at the same time on an arduino nano before, all off pins A4 and A5.
      The only thing i'd say is be careful how much power you are drawing from the pins overall. But definitely a display and this module will be fine.

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

      @@nataliesilsbury1888 generally speaking you can only have 128 devices, unless you have 10 bit addresses. bit zero is used for read and write. the other 7 bits form the device address.

  • @singingfishok
    @singingfishok 7 ปีที่แล้ว

    @Aidam, is there Humidity option on this sensor? I see in the back it displays Gy-B11e/p 280? does it mean it is both BME and BMP ?

    • @aidan7548
      @aidan7548  7 ปีที่แล้ว +1

      Le Kev Hi Le, if you have the same sensor that I have in this video then it doesn't have humidity detection. As for the labelling I'm really not sure if it's correct or if the manufacturer just put a random one on there

    • @singingfishok
      @singingfishok 7 ปีที่แล้ว

      Aidan thanks, it s really misleading marketing all over ebay. I just reorder bme280, 4x price vs bmp..

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

      the card is the same for bmp and bme, so they use that "e/p" on the stencil. . the sensor itself can be either. also, most of them arent real bosch bmp or bme, theyre just clones that dont necessarily work very well.

  • @Legend813a
    @Legend813a 5 ปีที่แล้ว +32

    3.3 VOLTS ONLY
    5 VOLTS WILL DAMAGE

    • @nxvn4666
      @nxvn4666 4 ปีที่แล้ว +2

      That is correct. Some of these BMP/BME280 breakout boards have a voltage regulator to allow higher input voltages. The board in this video is obviously NOT one of those. 3.3V for this one.

    • @fabricio.ferrari
      @fabricio.ferrari 4 ปีที่แล้ว

      the sensor gets the 3.3V from the arduino board, but the I2C lines operates at which voltage level? Can they damage the sensor? Thanks

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

      @@fabricio.ferrari Not knowing what board you have; I would think it would be the typical I2C 3.3V. If so; no problem.

    • @Zack-xz1ph
      @Zack-xz1ph 4 ปีที่แล้ว

      whew that was close thanks 😳

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

      FUCK

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

    great vid strait to the point good for newbies like me thanks.
    Is there a reason data writers use micro print

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

    Hi Aidan, thanks for taking the time to post this video - very helpful.
    Once I had figured the baud rate issue I finally got data on the Serial Monitor but it was unchanging with a very high altitude and zero pressure/temp. Admittedly, I haven't soldered the connections yet and I am hoping that this might solve the problem (solder is in the post!). I used the Sparkfun Library as per your video but I have BMP280 sensor, the Library seems to be for the BME290 but I don' think this is an issue?
    Am I doing anything fundamentally wrong (I am very much a newbie).
    Best wishes
    Phil

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

      Phil Cox I've found that these cheap eBay chips aren't all that reliable with their namings, but if you've got the same chip as the one I have in the video then the library will work. Don't forget to change the I2CAddress as per the video, and I would definitely recommend soldering the pins on, as I don't believe it will work properly until you've done that. When I buy these sorts of chips off eBay I usually buy 2-3 of them even if I only need one. That way you can test between them to see if one of them are faulty.
      Cheers

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

      Thanks Aidan, I'm hoping it's the solder too. The chip should be ok as I bought it from a recommended UK firm, not ebay. Incidentally, the Sparkfun library was the only one that worked (to a degree) compared to Adafruit and a couple of others I tried.Really appreciate the reply.Best wishes,Phil

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

      Good morning (or evening), I managed to get the sensor to work so thought I would share my experiance.
      I gave up trying to get the thing to work on I2C and wired the Arduino for SPI, changed the two lines of code in the sketch to switch over to SPI:
      //For SPI enable the following and dissable the I2C section
      //mySensor.settings.commInterface = SPI_MODE;
      //mySensor.settings.chipSelectPin = 10;
      And it worked a treat (not forgeting to select the Baud rate to that of the Sketch). I'm convinced this would have worked before soldering but I've soldered anyway to rule this issue out.
      The altitude is reading 243ft on average and I think this may have something to do with the pressure reading at my location so I will do some sums. All this can be accounted for and factored into the results as long as I know what I am dealing with.
      My only grumble is the % relative humidity is reading zero so ssome more research required. Next bit of the project is to add an SD card so I can record the data from the balloon flight.
      Thanks for your help again, much apprecited.
      Best wishes
      Phil

  • @ReflectingMe2024
    @ReflectingMe2024 7 ปีที่แล้ว

    Hi Aidan - great video, thanks for this and greetings from across the broder in South Wales :) ! Quick question if I may... the BMP280 data sheet I've been reading says max V supply is 4.5V, can I ask why you don't sue the 3.3V supply from the Arduino UNO rather than the 5V supply please? I have one of these being delivered tomorrow and will follow your tutorial much closer then! Thanks

    • @aidan7548
      @aidan7548  7 ปีที่แล้ว +1

      Hey John, glad I could help! From what I've read both from Adafruit and from other people's projects, the BMP280 sensor can take both 3.3 and 5V. I've had it running off 5V for a whole day without any problems. I guess it just depends on what projects you're planning on using it with. Let me know how you go!

    • @ReflectingMe2024
      @ReflectingMe2024 7 ปีที่แล้ว

      Hi Aidan - I followed your vid and eventually managed to get my BMP280 working, though the altitude is not correct for where I am. Do you know how this can be calibrated or if it needs some default value in order to show the correct altitude?

    • @aidan7548
      @aidan7548  7 ปีที่แล้ว

      Hi John, how far off is the value you're getting from actual? I was getting around 137m and my sea level altitude for my location is around 143m. I'm not too sure if this sensor will be able to get much more accurate than this.

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

      To get a more accurate altitude, you need to examine the inputs to the calculation. Altitude is determined as an offset from a reference. In most of the libraries, they assume a default sea level air pressure and a default outside temperature (usually 15C). This is enough for general approximation but if you need to be more accurate then find a better sea level pressure reference. For the UK our national measurement institute is the National Physical Laboratory in Teddington, they have an online barometer resource.npl.co.uk/pressure/pressure.html. You then need to give the outside temperature (not the indoor). With those two parameters, you should get a far more accurate reading. Also worth noting, I have had issues with cheaper sensors that are not Bosch BMP/BME280 but Chinese compatibles, the readings are close enough for most uses but have a bias in the pressure readings that means that they drift a lot more than the specification suggests that they will. Hope that helps, thanks for the great video Aidan

  • @farid7032
    @farid7032 7 ปีที่แล้ว

    Aidan Beale I tried this with both 0x76 and 0x77 on arduino uno, but it stuck on Starting BME280... : 0x
    what is wrong?

    • @aidan7548
      @aidan7548  7 ปีที่แล้ว

      Hi Farid, are you sure you've got all the cables connected properly? Do you have another Arduino/BMP280 sensor to test with to see if it one of them was faulty?

    • @farid7032
      @farid7032 7 ปีที่แล้ว

      Aidan Beale all cable are correctly connected to its pin. I have another uno, but no bmp280. I used i2cdetect.ino and MultiSpeedi2cScanner.ino, upload to uno, the result is no i2c device detected. Could it be my BMP280 is broken? But I tested it with voltmeter, everything is fine.

  • @Advil1024
    @Advil1024 7 ปีที่แล้ว

    Does anybody know if anyone has made a video or any kind of tutorial using this sensor and SPI? I don't want to use I2C for my project. Thanks.

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

    VERY USEFULL! THANK YOU!

  • @user-rl2ns9lh1o
    @user-rl2ns9lh1o 6 ปีที่แล้ว

    tnx man, u really helped me

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

    I want a blood pressur sensor module and a blood glucose sensor module PLEASE

  • @cyberpunktechnologies4438
    @cyberpunktechnologies4438 6 ปีที่แล้ว +4

    BMP280 power supply is from 1.71V to 3.6V, which is mentioned in datasheet. I came here to make it clear, BMP280 do not have to withstand 5V at all...
    I thought that arduino tutorials are supposed to explain more. I want to learn about how to acces data to make it work for STM32F1 M3 MCUs. By using Arduino you can not learn much like this, that is why I use Atollic TrueStudio.
    ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP280-DS001-18.pdf PAGE 7 power supply Vdd

  • @khanhtran-zv1mw
    @khanhtran-zv1mw 6 ปีที่แล้ว

    i want measure Humidity by this sensor. How must I do?

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

    Thanks m8

  • @Jemacaza
    @Jemacaza 7 ปีที่แล้ว +1

    nice vid, helpful

    • @aidan7548
      @aidan7548  7 ปีที่แล้ว

      Thanks! Glad I could help

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

    This module should not be used without level converter. The VCC for the sensor is max 3.3V, see www.makerfabs.com/desfile/files/BMP280-3.3-SCH.jpg and www.bosch-sensortec.com/bst/products/all_products/bmp280
    There is no provision for level shifting on the module.
    If you apply 5V you are unduly overstressing the module and reduce its lifetime.
    I love your english accent but the accuracy of the contents leaves to be desired.

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

      thought the same. when finished watching checked datasheet's absolute maximum ratings.

  • @HarborGraphX
    @HarborGraphX 6 ปีที่แล้ว +12

    YES DO NOT Put 5V to these They fry

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

    Weird..... My altitude stays in the same number even thought im lifting it up and down

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

      Its is because when you lift it, the value is slightly changing and because in the serial monitor, they round it off and show you, that's why the number remains the same.
      maybe if you go to the next floor or something, then you might see a change.

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

      @@VANTABL4CK Its my sensor thats broken. It cant read the temp, humidity, pressure, and the altitude

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

      @@DichillDichill does it say that the sensor wasn't identified pls check the wiring?
      I had the same problem I think i didn't solder the pin properly or maybe i burnt it

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

      @@VANTABL4CK I didnt soldered it

    • @Zack-xz1ph
      @Zack-xz1ph 4 ปีที่แล้ว

      @@Dichill use 3.3v for the Vcc

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

    Could you use a smaller font please? Damn !

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

    how u conect it to 5v?????

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

      there are diferrent versions of the board and some can work with 5v

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

      @@IAmRedNez This doesn`t seem to be the 5v board. I think he is connecting 5v to the 3.3v poor board :((

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

      @@sergiourquijo4000 maybe, good thing these boards are dirt cheap

  • @seamonkeys12y
    @seamonkeys12y 6 ปีที่แล้ว +4

    Why does everyone just make the same video using the same libraries? or more importantly, why does everyone use arduino for everything?
    I just want to know how to program it and not install a library.

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

      I'm trying to make a project that uses a BMP280. It's an 8051 based processor and I've made a bit-bang i2c interface but I'm unsure of how to program this sensor, it's more advanced than what I've interfaced with before (DS3231 & EEPROM) and I don't feel like the datasheet clearly expresses the proper steps involved.

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

      why not open one of those libraries and look at the instructions? its not like theyre encrypted or anything, its just c code.

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

    outdated video. code is not similar now

  • @khanhtran-zv1mw
    @khanhtran-zv1mw 6 ปีที่แล้ว

    i want to ask that why the Humidity value is zero.

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

      As Aidan said, he was using the BMP280 which does not have the humidity sensor. The BME280 is identical to the BMP280 but adds an additional humidity sensor

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

    Do you play minecraft.

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

    Too bad its so slow. My Quad runs on 220hz and these baros are all slow af

  • @Geocrafter
    @Geocrafter 6 ปีที่แล้ว +8

    Thanks for breaking my BMP280, it simply fries if you put 5v.

    • @grantsouthey
      @grantsouthey 6 ปีที่แล้ว +7

      There are many different versions of this sensor. If you are using the BMP280-3.3 then you cannot just connect it to the 5V - you need to use an Arduino with 3,3V