BMP280 Barometric pressure and temperature sensor with Arduino

  Рет қаралды 34,136

Robojax

Robojax

Күн бұрын

Пікірлер: 84
@surfrb
@surfrb 2 жыл бұрын
Hi Robojax, today was my birthday, and I was stuck up on this sensor for the past three days, but you helped me by setting the variable to x076, thank you! you made my day!
@robojax
@robojax 2 жыл бұрын
Happy birthday!
@rand0mc1tyz3n8
@rand0mc1tyz3n8 4 жыл бұрын
Thanks I was going crazy because my sensor didn't work... The wiring and address were wrong. After your video I managed to fix it. Thanks a lot
@robojax
@robojax 4 жыл бұрын
you are welcome. I am glad you were able to resolve the issue. Thank you for not skipping the ads and keep watching them. This will help me a lot.
@Phughy
@Phughy 5 жыл бұрын
Kelvin conversion should be +273.15, other than that very nice tutorial! Will try to incorporate this in my current master thesis project! Thank you very much!
@robojax
@robojax 5 жыл бұрын
Thank you. I just checked the code and it has not been mentioned. Did I mention it in video?
@Phughy
@Phughy 5 жыл бұрын
@@robojax yes, near the end where you talk about Farenheit and Kelvin conversion :)
@Brian4120
@Brian4120 2 жыл бұрын
Thanks for posting this! I found in the current version of the Adafruit BMP280 library they have added a commented out line status = bmp.begin(BMP280_ADDRESS_ALT, BMP280_CHIPID); BMP280_ADDRESS_ALT is referenced right below where you made the change in the .h file. I tried commenting out the original bmp.begin() and uncommenting the above line, sure enough it worked perfectly without editing the .h file. I also tried replacing BMP280_ADDRESS_ALT with 0x76 as that was the ID that worked for me as well. Sure enough works just as well as the variable. Hopefully this helps someone else with the newer library.
@wallaceshackleton1889
@wallaceshackleton1889 4 жыл бұрын
Interesting and informative. I noticed mention on the PCB of BME280 and BMP280, may be there's a solder jumper there, anyway I thought I'd find of the difference between the two and..."BMP280 and BME280 measure temperature in centi °C and pressure in Pa. BME280 can also measure relative humidity in %." Now I can sleep better at nights :)
@robojax
@robojax 4 жыл бұрын
Thanks.Sweet dreams.
@rodrigobarbosapinto1163
@rodrigobarbosapinto1163 4 жыл бұрын
You made an excellent tutorial. However, the correct K constant to conversion is 273.15
@robojax
@robojax 4 жыл бұрын
Thank you for pointing the mistake.
@rodrigobarbosapinto1163
@rodrigobarbosapinto1163 4 жыл бұрын
No problem. Thanks so much!
@Sinilkollam
@Sinilkollam 4 жыл бұрын
Thank you very much sir 💕 for better information
@robojax
@robojax 4 жыл бұрын
Always welcome
@whitefields5595
@whitefields5595 3 жыл бұрын
Thanks for pointing out the need to change the default I2C address. Why don't they writers of libraries just leave it blank and ask the user to enter the value in SetUp? This would save a lot of fault-finding and make the libraries easier to understand ....... OR why can't SetUp just overwrite what was in the .h file?
@robojax
@robojax 3 жыл бұрын
Interesting wish. But there are so many ways people would want them.
@H2ON_MEA
@H2ON_MEA 2 жыл бұрын
Asalamo Aleecom Mr. Ahmed I have the honor to be one of your followers who they are benefit greatly from all informations you share . God bless you Bro.. Please I want to know : (Can I use the ports {SDA/SCL} for 2 modules . Example (( BMP280 + DS3231 )). Thanks...
@robojax
@robojax 2 жыл бұрын
walaikums alaam, shukran. yes you can. you can use up to 128 devices. make sure to set or select the right I2C address. I have videos showing two I2C module . just search my channel.
@navid1759
@navid1759 4 жыл бұрын
thanks for your useful tut
@robojax
@robojax 4 жыл бұрын
You are welcome. Thank you for not skipping the ads and keep watching them. This will help me a lot.
@quaggas21
@quaggas21 3 жыл бұрын
I have a question, does soldering those pins tips is important? Mine are not, and IDE cant detect the sensor. Can this be the problem? Thanks in advance
@robojax
@robojax 3 жыл бұрын
Hello, I am not sure which soldering you are referring to but any pin inserted to PCB must be soldered otherwise it will not have firm connection and will be disconnected at they moment. My full course with wiring diagram and 100 of lefties starts here kzbin.info/aero/PLHvJ4bw0xno4Z3FC2W07I4D2UP14bOaT2
@TikOLoRd
@TikOLoRd 3 жыл бұрын
I'm very new to electronics, do I need to solder the pins to make this work?
@robojax
@robojax 3 жыл бұрын
then how do you expect this to work? by holding the wires into the hole? either solder the wires directly to the hold or solder the pins. yes.
@TikOLoRd
@TikOLoRd 3 жыл бұрын
@@robojax Thank you for the quick reply!
@adampolansky3405
@adampolansky3405 3 жыл бұрын
If you can't get a n adress just reconect from 3,3V to 5V :)
@manishpingale6558
@manishpingale6558 3 жыл бұрын
Thanks sir!
@robojax
@robojax 3 жыл бұрын
You are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you
@sergiourquijo4000
@sergiourquijo4000 4 жыл бұрын
Okay so the sensor is a 3.3v one so you connect it`s vcc to the arduino`s 3.3v pin. But the other pins are still 5v logic right??? Am i missing something here?
@robojax
@robojax 4 жыл бұрын
anything above 2V is HIGH and below 0.8V is LOW in both 5V and 3.3V logic and it will work . Here is reference page learn.sparkfun.com/tutorials/logic-levels/all
@iamkrishnendudas
@iamkrishnendudas 3 жыл бұрын
@@robojax So there is no need to use voltage devider to convert 5v data and clock signal to 3.3v for any kind of sensor. Right??
@yuvalvernik9483
@yuvalvernik9483 5 жыл бұрын
is there a way to add humidity?
@robojax
@robojax 5 жыл бұрын
Not this one module.
@juancarlosrelloso1302
@juancarlosrelloso1302 3 жыл бұрын
Hola me podrías decir si puedo ver el video con los subtitulos en español. Muchas gracias
@TfL7349
@TfL7349 4 жыл бұрын
I watched this video and thought i can do this! My board compiled the I2C monitor and gave me the 0x76 address and I modified the library. However I could not compile the code for BMP280 test. I got an exit status 1 error, which some people have suggested is due to not having installed the correct library. I checked this and everything is there. Can anyone help?
@robojax
@robojax 4 жыл бұрын
compiling issue is usually something wrong in the code. I would suggest, not changing anything. Just upload it as is. once it worked, then customize it. if you uploaded the un-touched code and still get error, you should provide full error. Arduino don't just exit with status 1. scroll up or down to see more details.
@muhammadshahzaib3813
@muhammadshahzaib3813 5 жыл бұрын
hi.i am unable to get ic2 address it stays at scanning address.
@robojax
@robojax 5 жыл бұрын
Check wiring. If wiring is good, then your module is bad.
@muhammadshahzaib3813
@muhammadshahzaib3813 5 жыл бұрын
@@robojax i checked wiring its okay.maybe a bad module
@pratikgauns5091
@pratikgauns5091 5 жыл бұрын
Program get stuck at Wire.endTransmission() command. Can anyone please provide for a solution.
@robojax
@robojax 5 жыл бұрын
it should not happened. Perhaps you have modified the code. If the line you are mentioning the last line is shown with red background color, it means your code has error in syntax. just the line above it or somewhere above it. So first do not modify the code. Let it work first then, customize it. in regards to sound volume, I might have missed checking it. I will see if I can remove it and upload it again.
@JORDAN-pl3nr
@JORDAN-pl3nr 2 жыл бұрын
Hello I'm doing a project with the high school and I have a problem, I think I have copied and I have done it all correct but when I'm going to see the results appeare 'nan' like not a number but i dont know, if you can help me...
@robojax
@robojax 2 жыл бұрын
Hello, it seems the wiring problem. True to copy and run “I2C scanner” to see if you get I2C address.
@mathyspelletier4168
@mathyspelletier4168 4 жыл бұрын
I did everything you done in the vidéo, but it is still marking : BMP280 test Could not find a valid BMP280 sensor, check wiring! Can you help me?
@robojax
@robojax 4 жыл бұрын
you should provide error. no one can help you like this.
@mathyspelletier4168
@mathyspelletier4168 4 жыл бұрын
I don’t have any errors it is marking BMP280 test Could not find a valid BMP280 sensor, check wiring! In the serial monitor. Like if my BMP Adresse was not good.
@robojax
@robojax 4 жыл бұрын
Use I2C scanner to find out if wiring is correct robojax.com/learn/arduino/?vid=robojax-I2C-scanner
@mathyspelletier4168
@mathyspelletier4168 4 жыл бұрын
Finally it was my connection that were not good. Thanks for your help.
@alejandropooli
@alejandropooli 3 жыл бұрын
Nice Video, Thanks. I´ve tried to get humidity by Serial.print(bmp.readHumidity()); but it didn´t work: 'class Adafruit_BMP280' has no member named 'readHumidity'. Do you know how to obtain humidity in this library? Thank you very much
@robojax
@robojax 3 жыл бұрын
BMP280 is not humidity sensor. You are welcome. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338
@mrhelpless
@mrhelpless 4 жыл бұрын
I can't get the address. It only shows: Scanning... No I2C devices found Screenshot: prnt.sc/ujmoji If tested it with two different Uno models and one Pro Micro. Thanks for any help
@robojax
@robojax 4 жыл бұрын
So very Wasim ole. Either bad wiring or module is dead. I assume power is connected
@adampolansky3405
@adampolansky3405 3 жыл бұрын
@@robojax I had the same problem. The conection was right and it didn't work so I changed to 5V instead of 3,3V and its working
@littleinventors1089
@littleinventors1089 4 жыл бұрын
hi thx for sharing this video ...how to get I2c address code...sorry i am not finding it in links
@robojax
@robojax 4 жыл бұрын
You are welcome. I just added the link to I2C scanner on the page where saw the code. The best thank you for me is to not skip ads and Subscribe 🔔 to my channel, like 👍 the video and do not skip the ads.. It is greatly appreciated. 🔔 😊. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
@callumjones5288
@callumjones5288 3 жыл бұрын
i get this error: fatal error: Adafruit_Sensor.h: No such file or directory #include "Adafruit_Sensor.h" ^~~~~~~~~~~~~~~~~~~ compilation terminated. exit status 1 Error compiling for board Arduino Uno.
@robojax
@robojax 3 жыл бұрын
it is very clear "No such file or directory" it means you skipped the video and did not install the library.
@callumjones5288
@callumjones5288 3 жыл бұрын
@@robojax I did exactly everything in the video. maybe I saved it in the wrong location for the IDE to recognise the library? My apologies, I am very new to Arduino.
@gokaykaya170
@gokaykaya170 2 жыл бұрын
@@callumjones5288 Same error, I don't think you did anything wrong.
@jeffjefferson2676
@jeffjefferson2676 4 жыл бұрын
The code that is up for download today gives me error messages. "Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Uno" In file included from C:\Users\home\Documents\Arduino\libraries\Adafruit_BMP280_Library-master\examples\bmp280test\bmp280test.ino:20:0: C:\Users\home\Documents\Arduino\libraries\Adafruit_BMP280_Library-master/Adafruit_BMP280.h:24:10: fatal error: Adafruit_Sensor.h: No such file or directory #include "Adafruit_Sensor.h" ^~~~~~~~~~~~~~~~~~~ compilation terminated. exit status 1 Error compiling for board Arduino Uno." So i dont know what is up. But there is a directory reference missing. Or at least there is a mismatch in the code and the file name. So someone changed the code. :S The I2C check did work; 0x76, as expected.
@robojax
@robojax 4 жыл бұрын
It means you have not watch the video or skipped. Please watch and it will be resolved. I am sure you don't want me to type everything I said in the video here.
@jeffjefferson2676
@jeffjefferson2676 4 жыл бұрын
@@robojax In the end, it was trouble getting the zip file right. Ive red about other people having the same trouble. I got it working once or twice with strange symbols. So i installed another zipfile of someone else. Had the same strange symbols again. In the end i found out about the baut rating. Once i had the right baut rating selected, it worked fine. So probably it will work with your code as well once the baut rate is selected right. Greetings, Jeff
@robojax
@robojax 4 жыл бұрын
I am glad you found the solution. Thanks for sharing your experience.
@hunterwilliams2833
@hunterwilliams2833 4 жыл бұрын
You need another library that adafruit BMP280 is dependent on.
@jeffjefferson2676
@jeffjefferson2676 4 жыл бұрын
@@hunterwilliams2833 I got it fixed. Check the bout rate and check the port of the arduino, also check what kind of chip is on your arduino, while then you need to change a name in the code. I dont remember if this was the one that ran, or another piece of code. But eventually, it ran. Greetings, Jeff
@biswanathbanik
@biswanathbanik 5 жыл бұрын
temp is showing 187.05*C
@robojax
@robojax 5 жыл бұрын
is this statement or question?
@biswanathbanik
@biswanathbanik 5 жыл бұрын
@@robojax question
@khanhnguyenuc596
@khanhnguyenuc596 3 жыл бұрын
so what ab humidity?
@robojax
@robojax 3 жыл бұрын
here kzbin.info/www/bejne/ZqCYm36IbNprqtU
@khanhnguyenuc596
@khanhnguyenuc596 3 жыл бұрын
@@robojax thanks a lot
@shwethamuchudi4133
@shwethamuchudi4133 5 жыл бұрын
I didn't get result in serial monitor?? What can I do?? Sir
@robojax
@robojax 5 жыл бұрын
Do you get anything at all? if not see this. snipboard.io/y3pKwG.jpg
@luisgonzales7931
@luisgonzales7931 4 жыл бұрын
Can one arduino uno process 5 BMO sensor inputs simultaneously
@luisgonzales7931
@luisgonzales7931 4 жыл бұрын
Sorry BMP
@robojax
@robojax 4 жыл бұрын
Yes you can. You may get the idea from this video if you don't skip kzbin.info/www/bejne/aGium4Ccha1kms0
@luisgonzales7931
@luisgonzales7931 4 жыл бұрын
Ok, will check it out. Thanks
@luisgonzales7931
@luisgonzales7931 4 жыл бұрын
So I understand multiple sensors on one adurino, but I would like to measure and record 5 pressures at once every 30 seconds. What do you recommend
@robojax
@robojax 4 жыл бұрын
read 1, 2, 3, 4 and 5th at once line by line and don't leave any delay. The only delay will be the sensor delay which need to read. so if you don't leave any delay in your code, that is the fastest way.
Air Pressure and Temp Sensor (BMP280) with Arduino
20:15
XTronical
Рет қаралды 16 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
17 | Measure altitude with the BMP280 barometric sensor
8:46
Carbon Aeronautics
Рет қаралды 21 М.
Breath Controller / Liquid Level Detector / HX710
8:58
0033mer
Рет қаралды 21 М.
TUTORIAL: How to Wire up & Code BMP280 Pressure Sensor - Arduino
10:33
Antony Cartwright (Electronics & Code)
Рет қаралды 19 М.
Measuring Airflow With A Silicon Pressure Sensor
7:31
Jesse Parker
Рет қаралды 15 М.
Master the Round TFT Display on ESP32 and GC9A01 driver with the TFT_eSPI library
20:12
BMP280 temperature and pressure sensor on an Arduino
5:41
nenioc187
Рет қаралды 92 М.
Experiment: Arduino Pressure Sensor inside a DIY Inflatable
9:17
Becky Wonders (Becky Marshall Design)
Рет қаралды 89 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН