TUTORIAL: How to Wire up & Code BMP280 Pressure Sensor - Arduino

แชร์
ฝัง

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

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

    Good that you mentioned the library name. I tried those common ones and failed. You saved me a few hours to figure this myself.
    Thanks!

  • @RoadRunnerMeep
    @RoadRunnerMeep 4 ปีที่แล้ว +3

    Love the idea of using blu-tac for soldering, so much easier

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

    Life saver. Do you know how long I mucked around with this before I found this video? Kept trying to make the default examples work.

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

    Your video help me a lot, thank you.

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

    Hi. Nice job!
    For many years I intend to do something similar but using 3 analog displays for temperature, atmospheric pressure and relative humidity. (like wall vintage barometers)

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

    Anthony, Another great General Info video. Thanks, AdaBill

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

    I followed your instruction, at the begin untill the end. But, why it didn't work for my BMP280? It means it couldn't be read the sensor. Pressure and temperature weren't be displayed on Serial Monitor. Just "BMP280" available on Serial Monitor only. Help me please.

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

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

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

      camelCased hi. It will be quite fast. You'd have to look at the documentation.

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

    Another tuber mentioned a place to find the value for your elevation.... I'll post it when I find it... but you add it in or something and it tells the correct pressure for that time and that location

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

    Hi could anyone help me with a problem that I am having with my bmp280 and esp32
    I am currently using your code from github but would like to add some extra on the bottom, unfortunately I don’t really know what I am doing, so wondered if you would know how to make the esp32 to use the pressure reading from the bmp280 to do something like this: PRESSURE (in PSI rather than hPa)>(any number imputed via WiFi. E.g. 12.5) = YES/NO

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

    Excellent project

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

    Hi Anthony,
    Good video m8.
    Funny, I took delivery of the same sensor about 2 weeks ago and have been playing with it.
    I used the Grove - Barometer Sensor library by Seeed Studio as the Adafruit library wouldn' work.
    The difference for me was that I am using it on D1 Mini Pro ESP8266 board so I can upload data to Thingspeak.
    As altitude (height) is calculated from the air pressure, then on the sketch you would need to put in you local air pressure as an offset somewhere.
    A quick search for you nearest airport pressure will give you your local air pressure. Enter that into the sketch and you should find it is fairly accurate.
    The downside is that every day is different, so in theory you would have to edit the sketch prior to each use.
    We have very high pressure in the UK at the moment as you noted. I saw a change in air pressure from 1020mb at 1am on the 21st June to 1030mb by 2am on the 22nd. (That is equivelent to 82m change in hight!)

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

      Hi! Grove didn't work well for me. Interesting info Martin! Thanks for your comment. :-)

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

      Hi Antony,
      Just noticed my real poor spelling above. Doh!
      I have gathered together a few different sensors over the last month. I want to put them all together with the D1 Mini for an environment monitor with uploads to Thingspeak.
      Most are I2C which makes them easy to connect up.
      I also duplicate measurements to see the differences between the sensors, temperature sensors are all within 1 degree of each other but the light sensors have massive differences which I believe are down to the way the information is processed on chip.
      Currently have:
      DS18B20 - Temperature sensor
      MCP9808 - High Accuracy Temperature sensor
      BMP280 - Temperature & Pressure sensor
      DTH22 - Temperature & Humidity sensor
      TSL2561 - Luminosity sensor
      GY-49 - MAX44009 - Ambient Light sensor
      GY-30 - BH1750FVI - Digital Light Intensity sensor
      GY-VEML6070 - UV Light sensor
      Awaiting delivery of:
      BME280 - Temperature, Pressure & Humidity sensor
      BTE16-12 - Sound Detection sensor (I want to monitor ambient sound levels)
      MQ-135 - Gas Detection sensor
      Hoping to make a home made lightning detector too.
      If you're interested I can keep you updated.
      Also, if you have any ideas for code, please share as I am useless at coding. I spend hours cutting and pasting code hoping it eventually works!
      Cheers
      Martin

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

      Cool! Yes, I'm very interested! That's very interesting. I'll tell you a secret! I wish someone would make a channel like mine so that I could watch their videos... Haha! Some of you guys do some really fun stuff, but I don't get to see it.
      Regarding code... You should find that the standard libraries will work for the basics! :-)

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

      I'm just messing about with things, keep my brain active as old age starts to set in.
      Hope you don't mind me saying but I know your electronic / module knowledge can be a bit hit and miss sometimes but when I watch you write code for something, and the way you explain how your writing the code, I find to be excellent tutorials.
      I watch others set up modules and wire stuff up, but all to often, when it comes to the coding, they always say "oh, I won't bore you with that". Well that's the bit I need. So keep it it up please.
      I've set up another Thingspeak channel for the BMP280 if you or anyone else wishesh to have a look. The data is still filling up though.
      thingspeak.com/channels/534119
      Cheers
      Martin

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

      Martin Ellis Hi Martin! I accept my limitations. It's true! I've been learning electronics for 18 months - I'm still a beginner. However, I'm also professional programmer. I've been programming for 12 years. Although C++ for only 1 year. The thing is though, every day my knowledge expands. This channel forces me to learn. I must learn in order to explain. It's very good for my brain. :D

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

    Thanks for the advice with the library. Now my bmp280 works. Are the maybe fake? Or why they didn't work with adafruit Library? Or wrong adress in the lib?

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

    Wiring up the chip for a second try - now it does not work. Is there any chance I could have ruined the chip by swapping the 3.3V and GND?

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

    Thanks for the video. Worked first try! Why did you use A4 and A5 pins? Are they reserved for SCA and SDA?

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

      Yup! They are. You can find an arduino pin out diagrams that show A4 and A5 reserved for SDA and SCL respectively components101.com/sites/default/files/component_pin/Arduino-Nano-Pinout.png

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

    Your supplying it with 3.3v on the bus, but the i2c data lines are still using 5v logic. Either use a level shifter, or 5k resistors in the data lines otherwise you can potentially damage this unit. Or just use a 3.3v microcontroller.

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

      Hiya! This module is 5v tolerant. You can actually use 5v VCC too! :-)

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

      @@AntonyCartwright you sure about that?

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

    it is showing temp val 187 degree in room how to fix it

  • @AndyDavis-vc1sc
    @AndyDavis-vc1sc ปีที่แล้ว

    Press the solder to the pen point and drip the melted solder into the pin. By touching the soldering pen point to the circuit board, you risk destroying it.

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

    3.3 and 5V versions are around

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

    is there a known "fix" for the height mistake? I keep getting a height of -27 m... I know im not that low, so is there a solution?

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

      Yes, as you see, me also... I don't know the fix, but I've not looked very hard.

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

      @@AntonyCartwright The way these sensors calculate altitude is by sensing the pressure at your current location. In the sketch you have to enter the barometric pressure at sea level. From the 2 readings the controller can extrapolate your altitude. Barometric pressure fluctuates all the time, so does sea level bar pressure, so you always end up with a slightly off altitude. I have not used this sketch but the ones I have used all have an input for the sea level barometric pressure. From Google you can get an altitude for your location. then use this calculator keisan.casio.com/exec/system/1224575267 to calculate sea level pressure. I hope this helps

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

    Good video! Thanks! Not enough views tho😭❤️

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

    I am surprised how you can present something that you don't gather all the information previously, hope in future you will make much more good tutorial, because I was fallowing you for a while and looking at your video

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

      Hey super ADI! :-) Thanks for watching my videos! I can confidently present them without full knowledge because I realise that it is far better to explain things in very simple ways without excessive detail. I believe it's not necessary to know everything in order to achieve. I love to encourage viewers that everyone can do electronics. It is not important to be an expert. This approach works very well for me and the channel because it is encouraging to other beginners that I also make mistakes and that I'm also a beginner myself - I do not know all, yet I can still achieve. In the past, I've made some videos with lots of research and lots of detail, but it does not work! For some reason, people are not attracted to this. I think it is because people don't care about too much detail, they just want it to work. :-)

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

      Appeal to "your" audiences, whom like to have the stupid-simple approach and to "just get it working" without really needing to know "why". I like Antony's videos since he explains what he's doing on screen and I don't have to specifically "watch" the channel to learn what he's doing all the time.

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

      Yes! Exactly... Quick and Simple! It's what people want. I think people don't like to be overwhelmed with information, they just want to see instant progress with minimum theory. In some of my videos, there must be theory and you MUST understand something before continuing... If that is the case, I will add the theory to the start of the video. :-) Antony...

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

    Hey what do i do if my serial monitor is displaying a bunch of gibberish?

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

      Check baud rate

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

    Never observed a person wire up a project with the power on.

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

    First apologise my English i so bad.
    I have a problem in the Serial Monitor it displays characters like this one:
    i⸮⸮⸮⸮m⸮⸮⸮ayi⸮⸮⸮q⸮⸮⸮⸮a⸮⸮⸮xZ⸮
    If you can help me, please I'll be very grateful.

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

      The baud rate isn't right... :-)

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

      Thank I fix it was de SDO it has to be in 3.3v to work if the I2c is 0x77 or GND if it's 0x76.

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

      i got same errror until i set baud rate to 155200. then al sorted out. oh abd also 5v instead of 3.3. cheers!