How to use BME280 Temperature, Humidity and Pressure sensor with Arduino

  Рет қаралды 38,581

Robojax

Robojax

Күн бұрын

Пікірлер: 89
@LucasLGMarques
@LucasLGMarques 4 жыл бұрын
My god this dude is thorough! I stated whatching expecting just another "basic" tutorial without much information and now I know how wrong I was... Congrats for the teaching skills!
@robojax
@robojax 4 жыл бұрын
Thank you. I am glad you found it useful.
@joelgalbraith7219
@joelgalbraith7219 Жыл бұрын
This video helped me with a school IoT project. Thank you.
@robojax
@robojax Жыл бұрын
Glad it helped!
@F111BMATHIS
@F111BMATHIS 2 жыл бұрын
I had given up, but then came back and tried again :), finally working. I have the blue sensor and the pins don't match, but swapping A4 & A5 worked this time. A4 = SDI, and A5 = SCK
@kamilzdunczyk2245
@kamilzdunczyk2245 4 жыл бұрын
excellent tutorial. You explain everything fantastically, thank you very much. I really like this channel
@robojax
@robojax 4 жыл бұрын
Happy to hear that!
@borsi99
@borsi99 Жыл бұрын
Thanks for your video which are always interesting. Please could you show how to put out the values on LCD 20x4? Most time you are showing serialprint only. Thanks a lot✌🏼Boris 🇨🇭
@robojax
@robojax Жыл бұрын
Just search my channel for LCD
@ascuber4650
@ascuber4650 4 жыл бұрын
702 is not a regulator, it is a Dual N-Channel MOSFET for i/o logic level shifting from 5v to 3.3v.
@robojax
@robojax 4 жыл бұрын
Hi, Thank you for pointing that out. I just check it and could not find anywhere the 702 as mosfet. Adafruit uses two MOSFETS BSS138 for level shifter on the module and shown on the schematic here learn.adafruit.com/assets/26693 (datasheet for BSS138 www.onsemi.com/pub/Collateral/BSS138-D.PDF) and if you open the schematic on separate tab cdn-learn.adafruit.com/assets/assets/000/026/693/original/sensors_sch.png?1437773082 you will see a 5 pin chip MIC5225-3.3 which is a 3.3V regulator where you can see the datasheet here cdn-shop.adafruit.com/datasheets/mic5225.pdf
@ascuber4650
@ascuber4650 4 жыл бұрын
​@@robojax Hi, I'm not talking about Adafruit board but about board you're reviewing. At 2:42 the 6 pin SOT-363 chip on the right marked 702 is the dual MOSFET. Datasheet is here (marking is on the page 2): www.gs-power.com/db/pictures/modules/PDT/PDT060207001/DS_GSM7002T_Rev1.2.pdf Thanks.
@robojax
@robojax 4 жыл бұрын
thank you. yes you are right. it makes sense at 2:43 at the middle you see the 103 x3 resistors that is used with the logic level converter. I'll see if I can remove that portion . thanks for the comment and pointing the error.
@ValentinusChrysan
@ValentinusChrysan Жыл бұрын
Can hpa be changed to pa?
@robojax
@robojax Жыл бұрын
1 hPa = 100 Pa, so if ou want it in "pa" just divide it byh 100. it is very sijple. let' say we have a variable "age" and it has value of 10 and you want to divide it by 2, simply write age = age/2; or age /=2; now age will be 5. Do the same in this code.
@robojax
@robojax Жыл бұрын
if you want to learn about variables, there is my video which is part the course kzbin.info/www/bejne/pGHdZ5mgrNxrm6M
@emretunc
@emretunc 4 жыл бұрын
Hi bro;It is great tutorial,thank u so much ! Where can I find library for BME280 ?
@robojax
@robojax 4 жыл бұрын
You are welcome. Under the video in the description There is link to library and other resources for this video.
@2007xoxox
@2007xoxox 5 жыл бұрын
You are the best.
@robojax
@robojax 5 жыл бұрын
Thank you . So are you.
@juancarlosrelloso1302
@juancarlosrelloso1302 2 жыл бұрын
Hola tus videos son muy buenos estoy interesado en el BME280 y me gustaría ver el video en "Español" es posible ?. Muchas gracias
@robojax
@robojax 2 жыл бұрын
BME 280: kzbin.info/www/bejne/sKKtg4F9eqh0rNk BME+LCD kzbin.info/www/bejne/o4m8kGmChMqeodk
@batticha462
@batticha462 5 жыл бұрын
At 10:40 "Cuctom Code Explained" and of course you mean Custom Code Explained :)
@robojax
@robojax 5 жыл бұрын
Thank you for letting me know. I can't do anything about it except to clip that portion out.
@alexandrefranca7445
@alexandrefranca7445 2 жыл бұрын
Hi there. I accidentally burn the capacitor connect between VIN& GND befor the 662 voltage regulator while soldering. Do you know the value of this capacitor so I can try to change it and see if the BME 280 is still working? thanks in advance. Alexandre
@robojax
@robojax 2 жыл бұрын
Hi, the capacitor value should not be critical. it is is just a filter. most of the modules are replica from Adafruit or Sparkfun. you can see schematic here cdn.sparkfun.com/datasheets/Sensors/Weather/SparkFun_BME280_Breakout_v10.pdf
@hamasahmad8444
@hamasahmad8444 2 жыл бұрын
Is there any way we can save the data? Also can u tell me about any software where we can simulate this to check this ? Thanks
@robojax
@robojax 2 жыл бұрын
Salaam alaikum, here is how to save on microSD card kzbin.info/www/bejne/ipXYhIKOa6iAqJY I don't know any simulator.
@marciliogr426
@marciliogr426 5 жыл бұрын
Can we change the sea level preasure to increase the precision of altitude?
@robojax
@robojax 5 жыл бұрын
You can. But remember altitude is approximate. I have provided the datasheet. Read that please.
@Ilikeridin
@Ilikeridin 5 жыл бұрын
Great tutorial, thank you. The temp is reading 1 degree high. Is there a way to write code to always subtract 1 degree?
@robojax
@robojax 5 жыл бұрын
You are welcome. Yes you can change the value. find this line: float temp = bme.readTemperature();// read temperature and immediately under that put: temp =temp + 1; this will add 1 into the "temp" which is the variable holding the temperature. or subtract with -
@Ilikeridin
@Ilikeridin 5 жыл бұрын
Robojax thats brilliant, thank you. I’ll try that later as I’ve not managed to get it to work.
@Ilikeridin
@Ilikeridin 5 жыл бұрын
I’m already using float as the project includes rf24 modules. Would it have to be a separate float command?
@uttamdutta3664
@uttamdutta3664 2 жыл бұрын
is it possible to measure the altitude by bme280
@robojax
@robojax 2 жыл бұрын
I have provide the link to datasheet. Check that out. I have new video on bmp380 where you can measure appropriate altitude.
@raiyanamiruddin4741
@raiyanamiruddin4741 3 жыл бұрын
Hey I have one question I am trying to find one sensor that can detect human presence from like 3-6 feet do you know any sensors that can fulfil this task
@robojax
@robojax 3 жыл бұрын
Hi, very hard topic. detecting a living thing can be done by temperature, motion, shape and many oher factors like breathing etc. this product sold in this video is called body motion detector kzbin.info/www/bejne/nmqtdZ-HjdWcaNk you look at .But for proper detection, you need motion sensor and thermal sensor to combine and get about 60% accuracy. for 90% accuracy or higher, you need camera to detect shape. then thermal camera and motion sensor get assurance that the object is human. Good luck
@VANTABL4CK
@VANTABL4CK 4 жыл бұрын
Hey, I don't know why but it seems they removed readHumidity from the newer version of this library
@robojax
@robojax 4 жыл бұрын
I always save the library and provide it as zip. So try getting that then.
@maicomcoelholopes9032
@maicomcoelholopes9032 5 жыл бұрын
excelente tutorial
@robojax
@robojax 5 жыл бұрын
Thank you.
@conradsinsua7415
@conradsinsua7415 4 жыл бұрын
thanks for the video, i hv a similar sensor but had a close look on the sensor and it doesn't have the same marking on the sensor, mine has 807ur, reason for asking is i bought 2 and i got one to work and after one hour it stop working,
@robojax
@robojax 4 жыл бұрын
You are welcome. Did you check if yours is 3.3V? if you connect it to 5V it will die. Check it or connect the other at 3.3V and if it works, then keep using only 3.3V.
@conradsinsua7415
@conradsinsua7415 4 жыл бұрын
@@robojax by the way, I enjoy your videos, keep it up.( No need to wear the cap)
@robojax
@robojax 4 жыл бұрын
LOL. Thanks. I will . stay safe. It is COVIT-19 time.
@conradsinsua7415
@conradsinsua7415 4 жыл бұрын
@@robojax yes, we are on partial lockdown( Malaysia)
@johnkg702
@johnkg702 4 жыл бұрын
Good day sir Very informative viedio. A request for you sir, can u pls make a. Viedio for sensor cjm cu8118 sensor for co2 and temp humidy sensor. I am planning for making air quality monitor John
@robojax
@robojax 4 жыл бұрын
Good day, I was not able to find : cjm cu8118
@johnkg702
@johnkg702 4 жыл бұрын
@@robojaxgood day sir Pls search this text "CJMCU-8118 CCS811 HDC1080 Carbon Monoxide CO VOCs Temperature And Humidity Gas Sensor Module"
@robojax
@robojax 4 жыл бұрын
I will get it but it takes 40 days for the module to arrive and then I will make video of it.
@johnkg702
@johnkg702 4 жыл бұрын
@@robojax thank you sir for the kind consideration John
@oussamasmaini7297
@oussamasmaini7297 3 жыл бұрын
Hi. I have the same module that you have. But are those extra 3 pads for. I bought it as bmp. And you saying its bme. Which one is right. Because i need bmp for my project.
@robojax
@robojax 3 жыл бұрын
Hi, I have video both on BME280 and BMP280 with code. the best option would be follow both video and upload the code and see which one works. Just pay attention to the wiring so you don't mix the GND and VCC. Here is how to find Specific KZbin Video in a channel bit.ly/findKZbinVideo
@oussamasmaini7297
@oussamasmaini7297 3 жыл бұрын
@@robojax thanks. It's just bme won't work on my board for some reason.
@robojax
@robojax 3 жыл бұрын
If you do proper wiring it should work . It uses I2C communication and just connect it to A4 and A5 watch the video and try both projects. Run first I2C scans to see if you get the address.
@oussamasmaini7297
@oussamasmaini7297 3 жыл бұрын
@@robojax ok. Thanks. I'm going to use it on a flight controller that has no barometer. It only reads bmp. I'll try and see. Thank you
@ZUWWF
@ZUWWF 4 жыл бұрын
Good day Would you still be able to assist me with some of the coding - I am a noob to this and i am busy designing something for my school.
@robojax
@robojax 4 жыл бұрын
Good day. I am sorry other than replying to comment if time permits, I have no time to do or work on projects. Good luck.
@norielhurtado1082
@norielhurtado1082 4 жыл бұрын
Hi I have a problem with this kind of sensor. When I use the I2C scanner it return me the address 0x76. But When I use your sketch or any other that use this sensor, returns this "BME280 test Could not find a valid BME280 sensor, check wiring! " I don´t know if I have something wrong or simply the sensor is broken. Please help me. Regards
@robojax
@robojax 4 жыл бұрын
it seems you have not installed the library. or the wires are loose. check it again. Thank you for not skipping the ads and keep watching it. This will help me a lot.
@norielhurtado1082
@norielhurtado1082 4 жыл бұрын
Robojax the library bme280 is instaled an the jumpers are connected in the respective port of the arduino. Do you have any idea of what is happening. Regards
@lorenzodefinis832
@lorenzodefinis832 4 жыл бұрын
@@norielhurtado1082 I have this same issue. Except when I run the I2C scanner, it doesn't return an address. No idea how to fix, someone please help
@bmansan
@bmansan 3 жыл бұрын
@@norielhurtado1082 Just rename the library, his code is wrong. Before download, try to compile
@norielhurtado1082
@norielhurtado1082 3 жыл бұрын
Ok here is what I was done yo dix this In code line number 44 Status =bme.begin(); You must write the sensor address, in my case the address is 0x76. If you aren’t sure of which is your sensor address first run an i2c scanner sketch to get your sensor address. Returning to the main code the line 44 change to this: Status =bme.begin(0x76); And the sensor began to send the measuring data. I hope it works for you people and continue learning arduino like me. Regards
@rikiholic1
@rikiholic1 4 жыл бұрын
@Robojax Hello coud you help me how to set oversampling at this gybmep chip thaks
@robojax
@robojax 4 жыл бұрын
Hello Richard, The sampling is defined here github.com/adafruit/Adafruit_BMP280_Library/blob/master/Adafruit_BMP280.h in line line 124 to 136 in library and you have work within that range. I have provided basic example. The range is shown in the datasheet on page 8 here ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP280-DS001.pdf
@kwacz
@kwacz Ай бұрын
The bme280 sensors are crap. I replaced three in 2 years. They just dont last
@byc4611
@byc4611 4 жыл бұрын
Hi, sir. Where can I find the head file?
@byc4611
@byc4611 4 жыл бұрын
Thanks a lot, I've found the head file in Github and successfully implement the code.
@robojax
@robojax 4 жыл бұрын
You are welcome.
@m.anwrs59
@m.anwrs59 3 жыл бұрын
ur voice too low, louder pls
@robojax
@robojax 3 жыл бұрын
Wrong video . See the video with wiring diagram which is part of my new Arduino course kzbin.info/www/bejne/sKKtg4F9eqh0rNk
@andrewmcallister3529
@andrewmcallister3529 3 жыл бұрын
No idea what you're trying to say.
@robojax
@robojax 3 жыл бұрын
Yes. this is for people with some knowledge of the field. if you are not familiar with electronic or programming terms, it would be hard to understand. Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
@robojax
@robojax 3 жыл бұрын
Did you start the 30 min course? It will change your life
@caribbeanchild
@caribbeanchild 4 жыл бұрын
does not work
@robojax
@robojax 4 жыл бұрын
Which part? please post the error you are getting here.
@caribbeanchild
@caribbeanchild 4 жыл бұрын
@@robojax Hi... sorry to take so long to get back. I moved on to something else. I seem to have exactly the same 4 pin module but cannot get a humidity reading. It's always 0.00. Thanks for taking the time to reply. Temperature = 24.43°C 75.97°F 297.58K Pressure = 1009.92 hPa Humidity = 0.00% Approx. Altitude = 27.99 m
@caribbeanchild
@caribbeanchild 4 жыл бұрын
@@robojax Ahhhh.... I have the BMP280 and not the BME280. I didn't realise there was two different modules. Sorry for wasting your time.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 126 МЛН
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 20 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 42 МЛН
Arduino humidity sensors: testing and calibration
11:00
engineer2you
Рет қаралды 28 М.
Serial Communication with Arduino - The details!
16:51
Programming Electronics Academy
Рет қаралды 62 М.
DIY Weather Station & WiFi Sensor Station || ESP8266, Nextion LCD
11:13
#16 Exact Measurement of Altitude with BME280 sensor
8:27
Andreas Spiess
Рет қаралды 48 М.
How the Best Hackers Learn Their Craft
42:46
RSA Conference
Рет қаралды 2,6 МЛН
How 3 Phase Power works: why 3 phases?
14:41
The Engineering Mindset
Рет қаралды 1 МЛН
BME280 Vs. DHT22 Temperature Sensor Shootout as Tested on the TTGO T-Display ESP32
10:53
Solar Weather Station [WiFi, MQTT, Smart Home, ESP8266]
11:06
Arduino Uno to ATmega328 - Shrinking your Arduino Projects
37:17
DroneBot Workshop
Рет қаралды 790 М.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 126 МЛН