Of course you showed how to solder properly. I can't tell you how many videos I watch where they touch the solder to the iron, then kind of drip it on the connection point. Not a surprise that you properly do it by heating the connection with the iron first and then apply the solder so that it immediately melts and binds the components. Well done - and you can tell - the connection simply looks good!
Bought myself a Waveshare BME280 last night after watching this video which came today. Connected it to my Pi, followed your instructions and it works perfectly, absolutely flawless first time. I now have a full weather station set up in my poly tunnel. Thank you.
Wow, way to crush the 1st video of 2021! This video has everything in it - the BME280 sensor, soldering, I2C, SSH, and use of the Excel/Libra Calc Python library for data collection! Cheers and a very Happy New Year!
This is a great video! I built a weather station using my Pi last summer. Something I did slightly differently was using two BME280 sensors and averaging their results to help correct for the inaccuracies in these cheap and small sensors - also placing them in a white thermometer box. For my setup, I also had a solar panel and battery in place so that it could run without mains power - and I used the Raspberry Pi as a charge controller (this was the most complicated part of the build as it involved a lot of manually testing voltages and comparing them to ADC read values to build a comparison chart, as my ADC was limited to 5v but I was using a 12v panel and a 7.5v battery, so using resistor based voltage splitters to get a smaller but proportional voltage going into the ADC and then converting them back to real voltages in software to run the relay to allow power from the solar panel onto the battery rail or not (using a buck converter to match panel to battery v, and again to match battery v to the Pi’s 5v)). Also had it add the weather, battery and solar data every minute to an online SQL database which could be accessed through a website - so i could keep an eye on the whole setup remotely.
Hey, i have just recently discovered this channel and i instantly fell in love. Just wanted to add a little detail, humidity is often represented in water% in air, but important factor to mention is that the hot air is able to store much more water in it than cold air. So for instance if weather outside is 0degrees C and has 95% humidity and gets in your house, warms to 20degrees C it will also drop in humidity %. it still has the same amount of water but is able to store much more now since air itself is warmer. Thats also why it was showing lower result when the sensor was closer to rasberry and had a higher temperature.
Not only is he a good man because he shares knowledge and wit and wisdom, but he is also blessed with the ability to share. It’s fun, informative and exciting. Thank you, Sir.
Wow, great stuff, I have just ordered my sensor. When you mentioned controlling the weather you took me right back to my childhood, 1974 to be exact, does anyone else remember the program put out to help children with their literacy skills called Cloudburst, I have no idea why it came to mind but it certainly brought back some memories
Excellent demonstration of doable real world Raspberry Pi application Chris. All in your characteristically comprehensive manner. A very big thank you!
Excellent Video. I will be using some of these techniques in a project where an Arduino collects analog data when requested by an R-Pi then the R_pi will store it on a spreadsheet as you have demonstrated. Now, as a 74 year old my next step is to learn Python to add to the large set of computer languages that I have used over the last 50 years.
An excellent educational video, clearly explained and easy to follow. I love the quirky retro geek delivery, Chris looks and sounds like he is presenting on a BBC2 science show from 1982.
I have at last got around to completing this project. Terrific. Thank you. The only hiccup I encountered was running the executables. They fell over due to /r (carraige return) errors. That was down to me saving the files by the wrong method. Your instructions were, as ever, flawless. Moving the Pi Zero WH to the garage worked wonders as a method of cooling but sadly it was out of range of my Wifi router. Incidentally There are 4 pin BME280s on the market which are half the price. They work fine as the contact marked with the prohibition/no entry sign isn't used.
I use RPI to collect various temperature measurements (2 room, 1 outside, 3 water temps in the buffer tank) to text files (daily basis), and use a simple php and javascript to make a graph of them. The apache and php running on the RPI as well.
I know there's many reason to get a Pi, I'd love my Pi with a side of weather forecast! love this project and can't wait to try it myself; thank you very much Mr. Barnatt
I've got a Chinese Pi1 running a web server, dlna server, mumble server and of course SSH. Boots to a partition on an external powered drive so SD card just for boot.
Remember Chris that the humidity measured here is "relative Humidity" i.e. relative to temperature. So as the temperature drops the relative humidity will increase, not necessarily and indication that it will rain...... but it might get foggy :)
Another excellent workshop Chris - thank you. It would be interesting to see the data displayed as a graph so trends may be more easily spotted. Also, changing the code to automatically spot trends it could output a weather prediction. In the meantime, now the Pi5 is here, I'm excited by your proposed next project. I like blue skies and 20 degrees but giving us choice over our weather sounds great. If the new code can be adjusted to localise the set weather, we could make sure we choose appropriately for that annoying neighbour. I wonder what peripherals will be needed though - and if Pi Hut will have them in stock 🤔🤣
I really love this. Thank you Chris. Here are some silly thoughts about what I would do next with this. a) Dump the data into a database - something like MySQL, so you can make some serious queries and save the data for a long time . b) Use a graphing tool to show the data in graphs with a UI that allows for specific time frames etc. have the UI runnable off a webserver installed on the RPI. c) Attach a LiPO battery with a Solar Panel and a timer : Allow the RPI to wake up every 1/2h or 1h and take measurements (as sample), save it and go to sleep. d) Allow the RPI to dump the database to a NAS (just in case the RPI is pillaged or struck by lightning -- it does some ionizing with all that hardware :) and enable the same UI running off the historical data stored in the NAS - e) Have a network of these spread through the house to collect data off the various floors. - f) 3D Print a case with space for the sensor(s), solar panel and LipoBattery - g) Shrink the Moon h) Steal the Moon.
The deadpan delivery of "go one step further and actually control the weather" was chilling. Was it a joke? Is Mr Computers our new overlord? Who can tell! 😱
Very cool project! Here is a suggestion for improving it: having everything displayed on a small screen, like a little e-ink display could be so cool!!
Excellent video Chris. Ironically I have been thinking of late about a weather station project with one of my Pi's. Another input I'd like to add to my project is a sensor that will provide soil moisture as my wife does a bit of gardening. We tend to get very warm temperatures in the summer and it's easy to have our soil get too dry before we water the plants. Thanks so much for sharing.
This is great! I have been trying to build a weather station but have had no idea how to do it. Maybe you could do a part two adding something like wind speed?
The BME280 has two problems. First, the sensor heats up if you read the values too quickly and often. Second, the air pressure is measured correctly, but the weather forecast calculates the air pressure at sea level. The measured value is lower as the altitude of the location increases. To do this, you have to find the factor by which you multiply the measured value to get the value at sea level. It differs from place to place. I built a weather station with the ESP8266. I can read the data on the website on the ESP8266.
20:29 Humidity hasn't really been increasing there. During the first measurement absolute humidity was 5.36 g/m^3 and during the last one it was up to 5.47 g/m^3. This difference is not significant and might be even within error tolerance of the probe. Relative humidity has risen, because the temperature has been dropping.
Great video! I like how you do both pronunciations of garage. I personally do the second pronunciation. I always do the same thing with Z because I'm in the U.S and don't know what people say. I'm glad I'm not the only one who does multiple pronunciations like that!
I can't tell you how much I love this video and everything it explains, and I can't tell you how much I can't wait to do it again with my raspberry pi (which is currently connected to a much simpler temperature sensor via a breadboard). Thank you so much for all this!
Another great video! I’ve been binging your videos since I’ve found this channel about a month or so ago. I’ve already learned so much, so thank you and keep up the great work!
It's up and running! Dont' quite know how as Mr Solder and Mr Crosby are not best mates. I somehow got the BME to work. Now enjoying the coding/ spreadsheet aspects. Thanks again Chris, cracking stuff
Jeremy Clarkson: I'm famous for my pauses. ExplainingComputers: Hold my beer. Also EC - "garage or garahge" - "pooty". :-) ExplainingComputers is my Sunday ritual - one I look forward to. There's never been one where I leave half-way. The channel really does deserve 1M subscribers.
Wonderful, and right up my interest alley. We live at the southern end of Tornado Alley. I can't resist the Dad Joke about hanging a Raspberry Pi outside on a piece of string: If Raspberry Pi is wet, it is raining. If Raspberry Pi is green, it rained a while ago. If Raspberry Pi is white, it is snowing. If Raspberry Pi is shaking, there is an earthquake. If Raspberry Pi is dry, the weather is fair. If Raspberry Pi is swinging, it's windy. If Raspberry Pi is warm, the sun is out. If Raspberry Pi is not visible, it's dark outside. If Raspberry Pi is under water, there is a flood. If Raspberry Pi is gone, there is a tornado (Run!!)
@@zenmaster24 Many sellers mix up (accidentally or otherwise) the BME280 with the (much) cheaper counterpart bm*P*280 - which doesn't detect humidity. Good explanation here: goughlui.com/2018/08/05/note-bosch-sensortec-bmp280-vs-bme280-sensor-confusion/
im an electrician and ive been wanting to make and install automated raspberry pi based greenhouses. solar powered or grid powered systems powering a raspberry pi and its sensors & motor actuators to lift panes/ turn on fans to create airflow/expel heat. dehumidifier and humidifier to control the perfect humidity for your crops, maybe a heater if youre in a colder climate. your videos are really helping me learn the coding side, i think im ready to buy my first raspberry pi! please put out more of these types of videos. maybe a video on how to make a simple android based app that can interact with your raspberry pi and read things like temperature in real time? id love that.
I gotta give you a slow clap for the stone-faced delivery of that weather control line at the end. That caught me off guard. I honestly believed you intended to do just that for a couple seconds before it dawned on me that you were joking. Thank you for taking the time to do this and also providing that laugh for me at the end. Excellent work as usual.
I find this project fascinating because of how people can now see ongoing weather trends and record their own weather data at home for a small amount of money. It is truly impressive how technology consistently changes.
Hey Chris when you figure out how to control the weather (I suspect you'll need a bit more than a RPi 5), since you get a lot of precipitation in the UK, would you mind sharing some of that precipitation with the people in Western QLD, not asking for a lot, just 10-15 mm a month spread nice and evenly over the year would be perfect 👌 🤣🤣🤣
Thank you for encouraging video. It, has left me liking the idea of building the rig you showed and thinking about the possible uses I could put it to. You bravely, including your initial error of not mounting the sensors away from the RPi, which was a good choice, as it demonstrated the need to separate them from each other, in a practical way. Moreover, in showing it, rather than just saying it, you engendered greater learning, for me.
The Pi is perfectly cable of running InfluxDB (a time-series database) and Grafana for creating graphs and gauges. Grafana runs as a web-UI so you can view it (remotely!) with a browser.
Cheers for this, Chris - got me going after a period of not punching out python for a while! A word to avoid distress in others: make sure you're chasing after the code for the correct sensor board - the BME is easy to confuse with the BMP!
Thank you for making this. I am currently using an Nova SDS011 sensor with ras-pi for my dissertation and your Recording Data section is very useful. Look forward to seeing more of your videos in the future 👍🏻
Indeed, other files can be executed directly like that. All you need to do is specify the shebang on the first line of a file. In the provided script bme280_cjb_AA.py, you can see it's `#!/usr/bin/env python` . Other shebangs can be provided, like I've seen for `awk`. Wikipedia has lots of useful information about this: en.wikipedia.org/wiki/Shebang_(Unix)
A great tutorial and one to have a play with whilst were all locked down, I do hope you expand on this with maybe a wind sensor and rainfall sensor in later episodes.
Well it seems to beat my weather tree outside. It's hard to see rain on the branches now the leaves fell off. Another great video! Thanks for the information! Have a Happy New Year, Chris!
Chris, thanks for that , I learned a lot. Incidentally you'll find you need an Apple device to control the weather, but Microsoft control the universe!
Thanks Chris. Always fun to see the the endless possibilities of a Raspberry Pi. Talking of the Raspberry Pi. This week I stumbled upon a web page talking about a Raspberry Pi Command module 4, which surfaces a PCI Express port. Think a CM4 might make an interesting future video.
4:35 why sudo for using pip? always try to use pip without sudo or install the modules from the repos sometimes pip with sudo might cause package conflicts
Thank you very much professor! I suspect that allthis can be done on a Pie0w as well. Also is it possible to add wind speed/direction and a rain sensor to this weather station?
I've been using a PiZero for this for about 4 years now, with a rain sensor and also a relay to control a fountain in my garden which shuts the fountain off if it detects low water level, or if the outside temperature drops below freezing. The Pi0 also hosts a small website which displays the data, so more than adequate for this type of project. Most wind speed sensors use a magnetic switch to detect a rotation of the rotor cups. Again, the Pi0 should be able to count the number of rotations over a period of time and calculate the wind speed quite easily.
@@tonydonnelly Great to hear this. I can see that I must delve into a wind speed measurement system -- I had been musing on using a optical sensor to monitor the rotation of a windmill.
First off, Happy New Year! Secondly, I think a great tutorial would be to make rpi inform you via email/sms of notable changes in weather patterns, like sudden pressure or temp changes. That would allow to see rpi used both as sensor serving pc and communication device, while also showing some more advanced programming logics.
Great idea! Ordered a bme280 almost directly after seeing this video :) I hooked it up to a pine64a that I had in the drawer, which has a compatible gpio. Today I received the bme280 and used some of your python script, thank you! It's now in a test setup just outside my backdoor, and need to make a longer wire for the sensor and get a nice housing for it. Never stared so long at temperature, pressure and humidity ;) Will add the excel bit soon to the code. Anyone that has a good experience with a nice housing for the sensor? Please share link to it! :)
Hi Chris, Your humidity increases because your temperature drops. What you're seeing from the BME280 is relative humidity, which indicates how saturated the air is with moisture. The warmer the air, the more capacity so to speak. Hope this clears up why your humidity is increasing with lower temperature. I think if you were to calculate the absolute humidity, you would see that it stayed relatively constant. Regards, Rasmus
Nice one. If I had the time I'd save the data in a MySQL database, put an API on top of it and fetch the data into a Grafana application or something. It would be a nice display on a small monitor in the kitchen, or something. Current weather and historical data; neat.
I’m using an influx database and Grafana actually both running on docker on a RPI 4, my sensors are on esp8266 devices and connected over WiFi, each also with its own web server with data page as well. Not setup with a display yet though but will explore that as have some Oled and e-ink displays..
My kid: "Dad I want to be able to control the weather" Me: "Listen you little brat, no one can control the weather" Chris: "Raspberry 5 is here... mwahaha, MWAHAHAHAHA"
I did the same thing (with another sensor) but to collect the data I stored it on a google spreadsheet, so it's easy to view from everywhere and you can have self updating charts. The downside is that you obviously need internet on the PI
Brilliant video and production! Thank you for all your expertise in this field and explaining and demonstrating it so well. May I lend some knowledge from my field in return. Humidity is practically represented as a percentage of a parcel of air's capacity to hold moisture, not the actual amount of moisture in a given volume of air (absolute humidity). Since warm air is able to hold more moisture, the humidity in that warm air will be less relatively. If you took that same parcel of air and cooled it, i.e. going outside to cold air, given the same number of water molecules in a given volume, but colder air, that cold air will have a higher relative humidity since it's water holding capacity is lower. So, the warmer the air, the more moisture it can hold, leading to lower relative humidity. Cold air-less moisture holding capability-higher relative humidity.
@@ExplainingComputers good to hear that it's quite will, if you use the eggplant tincture unit might get red and open at first but within a week or two it should start healing and new skin will take over. Wish all the best
mqtt on an esp still will blow your budget (memory wise) as the bme 280 calibrated correctly is a bitch....check the data sheet trev. I see what you are saying, but this sensor is a beast when on the rails
You can still use micropython on your ESP, my random amazon BME280 had two breakout boards, so now I had to buy an ESP chip to connect the second one. Just used influx on the raspberry pi, if you do a post request to the ESP, you can add data to the database. Then also run grafana on the RPi and you can readout both sensors in a graph.
I've had a personal weather station since late 2006 and have always enjoyed it. It's also great fun to upload my weather data to various weather-related websites, including MetOffice. A personal OCD trigger - you didn't have a space between the # and "Save the workbook" in your Python code :)
What a wonderful tutorial! So clear and perfectly demonstrated. I've got my first Pi on order and a weather station will be one of my first projects. This video was hugely informative. Thank you!
Great video, regards to the pressure reading. It's spot on if you are 33m above Mean Sea Level. Pressures in weather charts and forecasts are presented at MSL as a QNH pressure. You probably measure at some altitude, therefore reading a lower QFE pressure.
I just finished similar project few weeks ago. Connected a DS18B20 temperature probe to one of my NUCs and made the NUC to control the space heater on my living room with a TP-Link Wifi mains socket. The BME280 sensor you are using looks a lot better than DS18B20, though.
I liked this episode. A cool little sensor with large capability, and the fact you can get it to auto compile to a spreadsheet is useful. can help those school science/geography lessons. only one problem is we don't need to watch the weather reports anymore haha. Thanks Chris.👍
I remain amazed at Christopher. His smart, yet non- condescending, manner is encouraging and reassuring.
Mister Scissors...?
@@tonyross2947 Not forgetting Stanley The Knife.
@@youreds91 🤣🤣🤣
@@tonyross2947 Please refrain from mocking the Edged Weapons, Sir.
@@tpobrienjr 🤣🤣🤣
Of course you showed how to solder properly. I can't tell you how many videos I watch where they touch the solder to the iron, then kind of drip it on the connection point. Not a surprise that you properly do it by heating the connection with the iron first and then apply the solder so that it immediately melts and binds the components. Well done - and you can tell - the connection simply looks good!
21:00 in order to control the weather you would have to first store the data.....in the cloud
And to get it out, one would have to seed it.
So what, why not store it on the Barrett, Cid, Tifa, Yuffie, Aerith, Red XIII, Vincent, or even Cait Sith 😂😂😂😂😂
A big revelation was made here. Is he the one who is...??
Take my upvote here... You got me chuckling as a result.
Yeah but it means you've to wait for rain to retrieve the data! *badam tss*
Bought myself a Waveshare BME280 last night after watching this video which came today. Connected it to my Pi, followed your instructions and it works perfectly, absolutely flawless first time. I now have a full weather station set up in my poly tunnel. Thank you.
Fantastic! This is great to hear.
Chris, I can't tell you how refreshing it is to see someone on TH-cam who knows how to solder, and beautifully so!
Thanks greatly for this feedback. Given the comments on my soldering in previous videos, your words are much appreciated. :)
Here we see that Chris has soldering skills, too. 🏆
Every time I see a youtuber grab an iron I cringe... but not with Chris. Knows how to solder.
Yet no name for the iron? Mr Sizzler would be my choice.
@@6581punk Hotshot Harry the Iron ;)
you should see his only fans...he turns them gal into cumfarters
I could see myself setting several stations up and deploying them around town the next time I teach my unit on weather. Thanks for the idea Chris.
Being mostly self-taught in the realm of IOT; you have filled in a lot of gaps in my knowledge; thank you very much!
Wow, way to crush the 1st video of 2021! This video has everything in it - the BME280 sensor, soldering, I2C, SSH, and use of the Excel/Libra Calc Python library for data collection!
Cheers and a very Happy New Year!
@20:43 Britain = Rain, spot on. Wonderful video and best explanation of the end-to-end process as always Chris, thanks for doing such a great work!
This is a great video! I built a weather station using my Pi last summer. Something I did slightly differently was using two BME280 sensors and averaging their results to help correct for the inaccuracies in these cheap and small sensors - also placing them in a white thermometer box. For my setup, I also had a solar panel and battery in place so that it could run without mains power - and I used the Raspberry Pi as a charge controller (this was the most complicated part of the build as it involved a lot of manually testing voltages and comparing them to ADC read values to build a comparison chart, as my ADC was limited to 5v but I was using a 12v panel and a 7.5v battery, so using resistor based voltage splitters to get a smaller but proportional voltage going into the ADC and then converting them back to real voltages in software to run the relay to allow power from the solar panel onto the battery rail or not (using a buck converter to match panel to battery v, and again to match battery v to the Pi’s 5v)). Also had it add the weather, battery and solar data every minute to an online SQL database which could be accessed through a website - so i could keep an eye on the whole setup remotely.
Hey, i have just recently discovered this channel and i instantly fell in love.
Just wanted to add a little detail, humidity is often represented in water% in air, but important factor to mention is that the hot air is able to store much more water in it than cold air. So for instance if weather outside is 0degrees C and has 95% humidity and gets in your house, warms to 20degrees C it will also drop in humidity %. it still has the same amount of water but is able to store much more now since air itself is warmer. Thats also why it was showing lower result when the sensor was closer to rasberry and had a higher temperature.
Christopher, thank you, you're one of the best teachers I've ever come across. You're a good man for sharing your knowledge, it's greatly appreciated!
Wow, thanks!
Not only is he a good man because he shares knowledge and wit and wisdom, but he is also blessed with the ability to share.
It’s fun, informative and exciting.
Thank you, Sir.
Wow, great stuff, I have just ordered my sensor. When you mentioned controlling the weather you took me right back to my childhood, 1974 to be exact, does anyone else remember the program put out to help children with their literacy skills called Cloudburst, I have no idea why it came to mind but it certainly brought back some memories
Excellent demonstration of doable real world Raspberry Pi application Chris.
All in your characteristically comprehensive manner.
A very big thank you!
Excellent Video. I will be using some of these techniques in a project where an Arduino collects analog data when requested by an R-Pi then the R_pi will store it on a spreadsheet as you have demonstrated. Now, as a 74 year old my next step is to learn Python to add to the large set of computer languages that I have used over the last 50 years.
Good luck!
That’s a good example of a Raspberry Pi video; Python, sensors, SSH, appending to spreadsheets. There’s a lot there to learn from.
An excellent educational video, clearly explained and easy to follow. I love the quirky retro geek delivery, Chris looks and sounds like he is presenting on a BBC2 science show from 1982.
Absolutely amazing that the sensor is that small. Such wondrous times we live in.
I agree. Imagine what people 100 years ago would make of the stuff we have today.
@@ExplainingComputers And I'm sure we can barely imagine what we'll have 100 years from now...
I have at last got around to completing this project. Terrific. Thank you. The only hiccup I encountered was running the executables. They fell over due to /r (carraige return) errors. That was down to me saving the files by the wrong method. Your instructions were, as ever, flawless. Moving the Pi Zero WH to the garage worked wonders as a method of cooling but sadly it was out of range of my Wifi router. Incidentally There are 4 pin BME280s on the market which are half the price. They work fine as the contact marked with the prohibition/no entry sign isn't used.
Great to hear this worked! :)
I use RPI to collect various temperature measurements (2 room, 1 outside, 3 water temps in the buffer tank) to text files (daily basis), and use a simple php and javascript to make a graph of them. The apache and php running on the RPI as well.
I know there's many reason to get a Pi, I'd love my Pi with a side of weather forecast! love this project and can't wait to try it myself; thank you very much Mr. Barnatt
After such a long time seeing a Raspberry Pi Model 3b+ I am so happy
:)
I've got a Chinese Pi1 running a web server, dlna server, mumble server and of course SSH. Boots to a partition on an external powered drive so SD card just for boot.
@0:50 Oh man that's a very nice, precise thin-cut, barely any stepping or tearing, easily a 9/10
Remember Chris that the humidity measured here is "relative Humidity" i.e. relative to temperature. So as the temperature drops the relative humidity will increase, not necessarily and indication that it will rain...... but it might get foggy :)
oh how we used dew point to describe the humidity levels in the air rather than relative humidity
@@dontabor6708 @Dave M.
I keep trying to explain this to people. Logged on just to do so, you guys beat me, wish I could get everyone looking st the right number.
Another excellent workshop Chris - thank you. It would be interesting to see the data displayed as a graph so trends may be more easily spotted. Also, changing the code to automatically spot trends it could output a weather prediction.
In the meantime, now the Pi5 is here, I'm excited by your proposed next project. I like blue skies and 20 degrees but giving us choice over our weather sounds great. If the new code can be adjusted to localise the set weather, we could make sure we choose appropriately for that annoying neighbour. I wonder what peripherals will be needed though - and if Pi Hut will have them in stock 🤔🤣
I love the fact that I learn more here than I ever did in school
I really love this. Thank you Chris. Here are some silly thoughts about what I would do next with this. a) Dump the data into a database - something like MySQL, so you can make some serious queries and save the data for a long time . b) Use a graphing tool to show the data in graphs with a UI that allows for specific time frames etc. have the UI runnable off a webserver installed on the RPI. c) Attach a LiPO battery with a Solar Panel and a timer : Allow the RPI to wake up every 1/2h or 1h and take measurements (as sample), save it and go to sleep. d) Allow the RPI to dump the database to a NAS (just in case the RPI is pillaged or struck by lightning -- it does some ionizing with all that hardware :) and enable the same UI running off the historical data stored in the NAS - e) Have a network of these spread through the house to collect data off the various floors. - f) 3D Print a case with space for the sensor(s), solar panel and LipoBattery - g) Shrink the Moon h) Steal the Moon.
The deadpan delivery of "go one step further and actually control the weather" was chilling. Was it a joke? Is Mr Computers our new overlord? Who can tell! 😱
Chris doesn't seem like the overlord type. Just sayin'.
@@caturdaynite7217 I for one welcome our new computer literate overlord.
I mean cloud seeding is a thing and been using it as a wepon since the Vietnam war
@@caturdaynite7217 While that is true he might have teamed up with Colin Furze.
Thank you to Mr. Scissors. Where would we be without him?
Had best get my Pi5 on pre-order as everyone is going to want to control the weather, lol.
Happy New Year Christopher!
03:28 Hands down, the BEST blobs I've ever seen.
Very cool project!
Here is a suggestion for improving it: having everything displayed on a small screen, like a little e-ink display could be so cool!!
I think I'll repurpose an old tablet to show the measured weather data and some 3rd party weather forecasts.
Excellent video Chris. Ironically I have been thinking of late about a weather station project with one of my Pi's. Another input I'd like to add to my project is a sensor that will provide soil moisture as my wife does a bit of gardening. We tend to get very warm temperatures in the summer and it's easy to have our soil get too dry before we water the plants. Thanks so much for sharing.
This is great! I have been trying to build a weather station but have had no idea how to do it. Maybe you could do a part two adding something like wind speed?
I second this Chris
The BME280 has two problems. First, the sensor heats up if you read the values too quickly and often. Second, the air pressure is measured correctly, but the weather forecast calculates the air pressure at sea level. The measured value is lower as the altitude of the location increases. To do this, you have to find the factor by which you multiply the measured value to get the value at sea level. It differs from place to place.
I built a weather station with the ESP8266. I can read the data on the website on the ESP8266.
I almost spat out my tea when he said "Let's go and get started" instead of "Let's take a closer look".
Fortunately there was mr. scissors to balance things out.
@@onnozweers 😂😂😂😂😂
Can't wait till my daughter is old enough to do a project like this. Like a British Bill Nye, but instead the computer guy! Love this channel.
20:29
Humidity hasn't really been increasing there.
During the first measurement absolute humidity was 5.36 g/m^3 and during the last one it was up to 5.47 g/m^3. This difference is not significant and might be even within error tolerance of the probe.
Relative humidity has risen, because the temperature has been dropping.
Great video! I like how you do both pronunciations of garage. I personally do the second pronunciation. I always do the same thing with Z because I'm in the U.S and don't know what people say. I'm glad I'm not the only one who does multiple pronunciations like that!
Happy New Year, Chris!
And to you! :) Silver medal today also.
I can't tell you how much I love this video and everything it explains, and I can't tell you how much I can't wait to do it again with my raspberry pi (which is currently connected to a much simpler temperature sensor via a breadboard). Thank you so much for all this!
Good luck! :)
Another great video! I’ve been binging your videos since I’ve found this channel about a month or so ago. I’ve already learned so much, so thank you and keep up the great work!
Awesome! Thank you!
Happy new year, i would never make such a project, but here I am hearing that calm voice
I'll consider this for monitoring temp and humidity in my loft, pre and post insulation....very interesting, and a great video generally.
Now this sounds like a very practical application. :)
So pleased you did this Chris as I bought a BME280 before Xmas and have been trying to get my project launched...great minds etc ;)
It's up and running! Dont' quite know how as Mr Solder and Mr Crosby are not best mates. I somehow got the BME to work. Now enjoying the coding/ spreadsheet aspects. Thanks again Chris, cracking stuff
Such an amazing little hardware with almost limitless potential. Great explanatory video!
Nice! Next project lets make HVAC - in addition start heater in garage to keep 21-23 C. Good luck Chris.
Jeremy Clarkson: I'm famous for my pauses.
ExplainingComputers: Hold
my
beer.
Also EC - "garage or garahge" - "pooty". :-)
ExplainingComputers is my Sunday ritual - one I look forward to. There's never been one where I leave half-way.
The channel really does deserve 1M subscribers.
This is the best TH-cam channel about computers.....
...in the world!
If Jezza or Hammond or May ever started a computer channel, I’d subscribe.
“This... is the Acer Ferrari laptop...”
@@jamesmarlowe4034 you didn't have to remind us of the dreaded acer ferrati laptop 😂
So glad you're getting close to 1 million subs now brother. Well earned after 12 years of solid content helping us for over a decade. Respect
Wonderful, and right up my interest alley. We live at the southern end of Tornado Alley. I can't resist the Dad Joke about hanging a Raspberry Pi outside on a piece of string:
If Raspberry Pi is wet, it is raining.
If Raspberry Pi is green, it rained a while ago.
If Raspberry Pi is white, it is snowing.
If Raspberry Pi is shaking, there is an earthquake.
If Raspberry Pi is dry, the weather is fair.
If Raspberry Pi is swinging, it's windy.
If Raspberry Pi is warm, the sun is out.
If Raspberry Pi is not visible, it's dark outside.
If Raspberry Pi is under water, there is a flood.
If Raspberry Pi is gone, there is a tornado (Run!!)
if rpi broken it has rained
Ahhh... The Colorado Weather Rock. I believe there is a Metric version in North Yorkshire as well.
🤣
I am so totally stealing that :D
Greets from the Northern Wastes, land of snow, ice, and .. here if the Pi is missing, it's under the snowdrift. :)
oldie but goodie.
I have seen so many versions of this...
edit: If Pi is hot call 112/999 and report a fire
(in the US: call 911)
Can't wait to watch this tomorrow. Cheers to the new year and many blessing to you and your loved ones (including all the viewers)
Careful to get actual BME280, purchased many that weren't as advertised.
Yeah, many are the cheaper versions without the humidity.
were they defective in some way @energyideas?
@@zenmaster24 Many sellers mix up (accidentally or otherwise) the BME280 with the (much) cheaper counterpart bm*P*280 - which doesn't detect humidity.
Good explanation here:
goughlui.com/2018/08/05/note-bosch-sensortec-bmp280-vs-bme280-sensor-confusion/
im an electrician and ive been wanting to make and install automated raspberry pi based greenhouses. solar powered or grid powered systems powering a raspberry pi and its sensors & motor actuators to lift panes/ turn on fans to create airflow/expel heat. dehumidifier and humidifier to control the perfect humidity for your crops, maybe a heater if youre in a colder climate.
your videos are really helping me learn the coding side, i think im ready to buy my first raspberry pi! please put out more of these types of videos. maybe a video on how to make a simple android based app that can interact with your raspberry pi and read things like temperature in real time? id love that.
I gotta give you a slow clap for the stone-faced delivery of that weather control line at the end. That caught me off guard. I honestly believed you intended to do just that for a couple seconds before it dawned on me that you were joking. Thank you for taking the time to do this and also providing that laugh for me at the end. Excellent work as usual.
Thank you Chris love your videos! Reminds me of when I was younger and used to stay up watching OU programs through the night.
Hey Chris your soldering is very neat and nice too 👍
Thanks 👍
As an electronics major I agree your soldering is top notch!
Splendiferous, Another fine project to get my teeth into. You're fast becoming a national treasure Chris. 717k subscribers and climbing!
Great it's Sunday again Thanks Chris from another Chris 😀
Any time!
I find this project fascinating because of how people can now see ongoing weather trends and record their own weather data at home for a small amount of money. It is truly impressive how technology consistently changes.
Hey Chris when you figure out how to control the weather (I suspect you'll need a bit more than a RPi 5), since you get a lot of precipitation in the UK, would you mind sharing some of that precipitation with the people in Western QLD, not asking for a lot, just 10-15 mm a month spread nice and evenly over the year would be perfect 👌 🤣🤣🤣
Thank you for encouraging video. It, has left me liking the idea of building the rig you showed and thinking about the possible uses I could put it to. You bravely, including your initial error of not mounting the sensors away from the RPi, which was a good choice, as it demonstrated the need to separate them from each other, in a practical way. Moreover, in showing it, rather than just saying it, you engendered greater learning, for me.
it will be amazing to get an eINK screen and make this into a standalone unit
Yes, there are possibilities . . .
www.ti.com/tool/HDC2010METER-EVM?keyMatch=HDC2010%20REF%20DESIGN&tisearch=Search-EN-everything
The Pi is perfectly cable of running InfluxDB (a time-series database) and Grafana for creating graphs and gauges. Grafana runs as a web-UI so you can view it (remotely!) with a browser.
Control the weather ?
Cheers for this, Chris - got me going after a period of not punching out python for a while! A word to avoid distress in others: make sure you're chasing after the code for the correct sensor board - the BME is easy to confuse with the BMP!
Happy New Year and a happy birthday for yesterday.
Thank you! And a Happy New Year!
Thank you for making this. I am currently using an Nova SDS011 sensor with ras-pi for my dissertation and your Recording Data section is very useful. Look forward to seeing more of your videos in the future 👍🏻
11:00 I didn't know that you can run a Python script like that, I thought only shell scripts could do it. Very nice to know!
Indeed, other files can be executed directly like that. All you need to do is specify the shebang on the first line of a file. In the provided script bme280_cjb_AA.py, you can see it's `#!/usr/bin/env python` . Other shebangs can be provided, like I've seen for `awk`. Wikipedia has lots of useful information about this: en.wikipedia.org/wiki/Shebang_(Unix)
A great tutorial and one to have a play with whilst were all locked down, I do hope you expand on this with maybe a wind sensor and rainfall sensor in later episodes.
Yes, first RPi 5 project ---- Control the Weather.
So we can set the weather to always sunny in Philadelphia
Then, with Raspberry Pi 6, we can fix the climate.
@@onnozweers Pi 7, reverse entropy
Well it seems to beat my weather tree outside. It's hard to see rain on the branches now the leaves fell off.
Another great video!
Thanks for the information!
Have a Happy New Year, Chris!
I HAD TO REPLAY LAST FEW MINUTES!!! YOU DID SAY NEXT TRY TO CONTROL WEATHER....LOL
I encourage everyone, including you Christopher, to explore Node-Red. This project is ideally suited for NR.
Chris, thanks for that , I learned a lot. Incidentally you'll find you need an Apple device to control the weather, but Microsoft control the universe!
The Apple device doesn't really control the weather.... It just convinces you it does.
This was an excellent basic explanation. Exactly what I was looking for as a newberry. Thank you from Australia.
Ah yes, the pi 5 is long awaited by all masterminds around the world 😅
Release date April 1st ? Should be great for weather control.
Thanks Chris. Always fun to see the the endless possibilities of a Raspberry Pi.
Talking of the Raspberry Pi. This week I stumbled upon a web page talking about a Raspberry Pi Command module 4, which surfaces a PCI Express port.
Think a CM4 might make an interesting future video.
4:35 why sudo for using pip? always try to use pip without sudo or install the modules from the repos
sometimes pip with sudo might cause package conflicts
I have a beautiful UI with node red with the BME280. My personal Weather Station for my living room.
Thank you very much professor! I suspect that allthis can be done on a Pie0w as well. Also is it possible to add wind speed/direction and a rain sensor to this weather station?
Yes, a Pi Zero can do this just fine. I must delve into the wind side of things . . .
I've been using a PiZero for this for about 4 years now, with a rain sensor and also a relay to control a fountain in my garden which shuts the fountain off if it detects low water level, or if the outside temperature drops below freezing. The Pi0 also hosts a small website which displays the data, so more than adequate for this type of project. Most wind speed sensors use a magnetic switch to detect a rotation of the rotor cups. Again, the Pi0 should be able to count the number of rotations over a period of time and calculate the wind speed quite easily.
@@tonydonnelly Great to hear this. I can see that I must delve into a wind speed measurement system -- I had been musing on using a optical sensor to monitor the rotation of a windmill.
First off, Happy New Year! Secondly, I think a great tutorial would be to make rpi inform you via email/sms of notable changes in weather patterns, like sudden pressure or temp changes. That would allow to see rpi used both as sensor serving pc and communication device, while also showing some more advanced programming logics.
Great idea! Ordered a bme280 almost directly after seeing this video :) I hooked it up to a pine64a that I had in the drawer, which has a compatible gpio. Today I received the bme280 and used some of your python script, thank you! It's now in a test setup just outside my backdoor, and need to make a longer wire for the sensor and get a nice housing for it. Never stared so long at temperature, pressure and humidity ;) Will add the excel bit soon to the code. Anyone that has a good experience with a nice housing for the sensor? Please share link to it! :)
Great to hear!
Hi Chris,
Your humidity increases because your temperature drops. What you're seeing from the BME280 is relative humidity, which indicates how saturated the air is with moisture. The warmer the air, the more capacity so to speak. Hope this clears up why your humidity is increasing with lower temperature. I think if you were to calculate the absolute humidity, you would see that it stayed relatively constant.
Regards,
Rasmus
I saw a lot of virtualboxes!
Nice one. If I had the time I'd save the data in a MySQL database, put an API on top of it and fetch the data into a Grafana application or something. It would be a nice display on a small monitor in the kitchen, or something. Current weather and historical data; neat.
I’m using an influx database and Grafana actually both running on docker on a RPI 4, my sensors are on esp8266 devices and connected over WiFi, each also with its own web server with data page as well. Not setup with a display yet though but will explore that as have some Oled and e-ink displays..
@@achristofides That sounds awesome!
My kid: "Dad I want to be able to control the weather"
Me: "Listen you little brat, no one can control the weather"
Chris: "Raspberry 5 is here... mwahaha, MWAHAHAHAHA"
I did the same thing (with another sensor) but to collect the data I stored it on a google spreadsheet, so it's easy to view from everywhere and you can have self updating charts. The downside is that you obviously need internet on the PI
EC, now hosted by Chris and Mr. Scissors!
Brilliant video and production! Thank you for all your expertise in this field and explaining and demonstrating it so well. May I lend some knowledge from my field in return. Humidity is practically represented as a percentage of a parcel of air's capacity to hold moisture, not the actual amount of moisture in a given volume of air (absolute humidity). Since warm air is able to hold more moisture, the humidity in that warm air will be less relatively. If you took that same parcel of air and cooled it, i.e. going outside to cold air, given the same number of water molecules in a given volume, but colder air, that cold air will have a higher relative humidity since it's water holding capacity is lower. So, the warmer the air, the more moisture it can hold, leading to lower relative humidity. Cold air-less moisture holding capability-higher relative humidity.
Thank you for this beneficial content
Have a pleasant evening dear sir🌷
How is that thing on your nick doing?
Thanks for this. The thing on my neck is stable now, sealed up and sometimes painful. But quite OK.
@@ExplainingComputers good to hear that it's quite will, if you use the eggplant tincture unit might get red and open at first but within a week or two it should start healing and new skin will take over.
Wish all the best
This is brilliant stuff. You could use the data to train a simple linear model to predict if it's going to rain and perhaps trigger an alarm.
Massive overkill mate! Surely an ESP chip with mqtt support gives the same results without such an overhead?
It is a Raspberry Pi Project . . .
mqtt on an esp still will blow your budget (memory wise) as the bme 280 calibrated correctly is a bitch....check the data sheet trev. I see what you are saying, but this sensor is a beast when on the rails
You can still use micropython on your ESP, my random amazon BME280 had two breakout boards, so now I had to buy an ESP chip to connect the second one. Just used influx on the raspberry pi, if you do a post request to the ESP, you can add data to the database. Then also run grafana on the RPi and you can readout both sensors in a graph.
I've had a personal weather station since late 2006 and have always enjoyed it. It's also great fun to upload my weather data to various weather-related websites, including MetOffice. A personal OCD trigger - you didn't have a space between the # and "Save the workbook" in your Python code :)
Lol, you can't change the weather with a single board computer. You'd need at least two boards.
Ah, right. You are probably correct. A cluster approach needed.
What a wonderful tutorial! So clear and perfectly demonstrated. I've got my first Pi on order and a weather station will be one of my first projects. This video was hugely informative. Thank you!
Enjoy your new Pi. :)
First, once more!
Yes, another gold medal to you -- and the first of 2021! :)
Great video, regards to the pressure reading. It's spot on if you are 33m above Mean Sea Level.
Pressures in weather charts and forecasts are presented at MSL as a QNH pressure.
You probably measure at some altitude, therefore reading a lower QFE pressure.
I just finished similar project few weeks ago. Connected a DS18B20 temperature probe to one of my NUCs and made the NUC to control the space heater on my living room with a TP-Link Wifi mains socket.
The BME280 sensor you are using looks a lot better than DS18B20, though.
Lots of nuggets that we can use for other projects! Pushing data to a spreadsheet is pretty amazing. I would do this with a pi zero instead though
And back again a new great project for lousy cold winter days.
I can't wait to control my personal weather with a brand new Raspberry pi 5!
I liked this episode. A cool little sensor with large capability, and the fact you can get it to auto compile to a spreadsheet is useful. can help those school science/geography lessons. only one problem is we don't need to watch the weather reports anymore haha. Thanks Chris.👍