Weather Monitoring System Project Using Arduino

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so before start the actual project explanation I request to Please Subscribe my channel so you can see on the screen up till now I have uploaded more than 66 video on Raspberry Pi the Raspberry Pi with iot that is all this video then all also iot with Arduino all this video are 26 and recently we started the new series on the pick my controller before that I also cover the project on the python web application so if you want to Learn Python iot Raspberry Pi Arduino Peak from the scratch and from uh freely then please subscribe my Channel please support me and the most important part is whatever the code I have explained whatever the project I have created on this YouTube channel all this project are freely available you no need to pay anything for this project so just if only point is you should watch complete video and you should follow my process so if you want to learn something from the scratch and freely then support me and please subscribe my channel and please click on like button hello friend in today's session we will learn how we can design and develop a weather monitoring system project by using Arduino and esp8266 wifi chip so you can see on the screen we have the Arduino we have the rain sensor then esp8266 wifi enabled chip then we have DHD 11 sensor and we have lm35 sensor so before start the next part I would like to tell you what will be the flow of this project so this Arduino will capture the real times data that is whether there is a rain happening or not what is the value of humidity what is the value of temperature and all this value will be sent through all this value will be sent on thingspeak server through this esp8266 WiFi check so we we have provided the internet connectivity to our Arduino through this wi-fi chip all the data whatever the data from the weather like rain sensor humidity temperature will be sent through the Arduino on the esp826q server so this is the complete idea behind this project so before start the next part I would like tell you practical demonstration of this project so that you will get idea about what you will learn at the end of this video in this video also we will learn how to connect all this Hardware like rain sensor esp266 the HTML sensor lm35 with the Arduino also we will see the importance of each and every line from the code so I request you please watch this complete video so that you will get idea about each and everything about this project foreign demonstration of this project so you can see currently Arduino so you can see current Arduino is working all the sensor having the light it is detected that means power supply is connected all okay now the next part is you can see on the screen I have opened the things pick server website and I have created my channel here I also tell you how to create this channel in your laptop in this video so please watch complete video so you can see this is the weather module system Channel and you can see on this channel you will see the weather mounting system the temperature value whatever the current temperature value then whatever the rain sensor then you will see also see the whatever the humidity value so this three sensor data we will upload here so you can see currently the range sensor value is zero that means there is no rain so also you can see so you can see currently the rain sensor have don't detect the water that means there is a zero value that means rain is not detected so I will put some uh water droplet on this range sensor so that on the website you can see this 0 will be turned to the one so I will put some water on the rain sensor [Applause] so you can see once I put the water droplet on the rain sensor the rain sensor second light will be turned on that means rain is detected now wait for some seconds so that it will update the status on the web page so wait for some second so it will take at least uh 30 to 45 seconds to update the data you can see once the updated data you can see on the screen the data is updated to one current value as you can see our date you can also see the date the date at what time it is updated 12.8 that is the current time uh and also you can see the yesterday date is also present here you can see Saturday and today that is this one you can say Sunday and date and time you can also see the data that is the range detector on this data now what I will do I will remove the water droplet from this rain sensor so once I remove the water droplet you can also see once I remove the water droplet this one LED will be turned off so I will remove the water droplet yeah now you can see once I remove the water droplet from the rain sensor the 80s turn off that means brain is not detected so again wait for some 30 to 45 seconds so that data will be uploaded on the server you can see current data on the server is one it is showing one and here also it is one the graph is also showing one and value is also one so wait for some second so that it will update the data here yeah so you can see water uh the data is updated to zero and here also data is updated to zero we can see current data is zero range sensor so this is the one idea behind this rain sensor now we will see the how to change the temperature value in the things Peak now we will see the how to increase the temperature value so you can see currently on the things Peak server the temperature is 30.3 degree celsius this is the room temperature so if I want to increase the temperature I will put some hot object in front of this lm35 so you can see I have put some hot object in front of this lm35 template sensor so wait for some second one to two minutes so that it will capture the maximum wattage so wait for some second you can see a gradually temperature increase to 35 so again wait for some seconds so it will increase to the maximum level 61 you can see now I will remove the hot object from this lm35 so that it should reduce the temperature so side by side you can see on the graph also it is giving the live data what is the value current value 63.5 then before that there is 35 then before that is 30 then what is the yesterday value also Saturday then what is the Sunday value so this is live data you can capture and record at your end also so later uh from this data you can easily verify uh what is the weather condition at that time so you can see 49 so it is start decreasing because I have removed the hot object from this 1135 so I hope you get idea uh about this lm35 temperature same you can see uh there is a humidity wrap also uh from the humidity Gap you can see the live humidity data so whatever the current humidity data present on the inside the room whatever the current value inside room for this humidity that is display here so once the humidity increase or decrease that value gets updated here so so I hope you understand the complete idea of this practical demonstration of this project now we will see the hardware connection of this project then we will see the program part of this project uh then we will see how to run this project at urine so please watch this complete video so that you will get idea about each and everything about this project uh so one part is like that we have seen our separate separate separate values for example we first saw the rain sensor then we saw the temperature sensor not now we can do combinally we can update the value so again I will put some water droplet here and then I will increase the temperature so you can see I put the water droplet current value is 0 on this range sensor so wait for some second and also I will side by side increase the temperature also so you can use two different sensor at the same time also there is no problem so wait for some second so it will update the data so you can see rain sensor value updated but wait for some second or temperature should be updated because it will take some time to read the data and send a data on the ringsing so you can see temperature also updated uh to the 47 then it gradually update to 61 and then again if I remove then it will reduce the temperature so this is the complete idea behind this project now we will see the hardware connection and then we will see the program part now we will see the hardware connection so you can see first I have this Hardware so this Hardware is nothing but uh just one bug strip I have connected on the Zero PCB which having the common pin like shorted you can see this bug strip is completely shorted and this sidebox tip is completely shorted so these two bug strip complete shorted which is used for the common VCC and Common Ground so you can also uh use this structure on zero PCB if you don't have on a breadboard if you don't have the zero PCB at your end so on breadboard you can take the common Vision common ground because we have many sensor at our end and we require a common VCC many point and Common Ground mini pin so Arduino we have the pin number and we have the ground VCC uh easily available there so first what we will take we will take the common ground that is the Arduino ground to our Common Ground here so this is the common ground and next part is we will connect the Arduino VCC so this is the Arduino 5 volt 5 volt from the Arduino that we will connect here to the common 5 volt so like this this is the basic first step we completed now we will see next part now the next part is we have to connect this esp8266 wi-fi chip with the Arduino so you can see uh at the back end of esp826 there is a uh number also print or name also present which can act as which one so there is 3.3 rxtx enabled TX and ground so you can see this number is belong to that one so you can see this column this column the left side left side column is nothing but the this side pin and right side column nothing but that side pin so we have you can see two column this column in this column so when you scroll back at the backward you can see this column first one nothing but the this pin this side pin and second column from the back side you can see second column nothing but the this pin so on the screen you can see uh I have given the hardware connection of this esp8266 with the audio by using that Hardware connection you can connect that SPF 266 check with the audio so first part what we will cover first we will see 3.3 voltage pin enable enable pin should be shorted with with each other you can see 3.3 voltage pin and enable pin is shorted and from that common VCC we have to take so this common VCC from the 3.3 voltage from esp260 should be connected to Arduino 3.3 voltage so audio 3.3 voltage is here so this first part we have done what we connected enable pin and 3.3 voltage pin of the esp826s we shorted and that short pin commonly connected to 3.3 voltage of the Arduino okay then after that ground pin from the SP 266 so I have already given my name here so that I can easily find that name so this is the ground pin of esp8266 should be connected to Common Ground structure of our here so common ground I have connected that one so now TX pin of the estate 260 those this is the text pin problem esp826s should be connected to two number pin of Arduino so 0 1 2 and RX pin from the xp8 to 6 is should be connected to three number pin of Arduino so connected to the three number pin so this is the very basic circuit so this is the very basic circuit and if you want to go with the details again with the spf26s with the Arduino there is already one video I have uploaded the thumbnail you can see on the screen please watch that video so that you will get complete idea about esp8266 chip with the Arduino because we have to change the border to 9600 how to change that bond rate how to change that bottle that also I have explained in that video so please watch that video now the next part is we have to connect this lm35 temporary sensor this is again very small basic circuit you can see common pin I have connected here one pin to one so that I can take the bug strip and I can connect that pin this very simple circuit you can directly uh if you have the breadboard you can directly plug your Elementor tip and take that pin one by one outside so I'll enter TFI temperature sensor having three pin or you can see on the screen VCC ground and output so what you have to do you have to connect with CC pin to VCC common pin then ground pin from the nn35 to ground common ground and out should be connected to analog a0 so with this I will complete this circuit quickly so this is my BCC pin from the ram 35 that is connected to Common VCC then ground pin from the element Activa should be connected to Common Ground and then this is the output pane you can see middle one pin should be connected to analog a0 so very basic and simple circuit uh three pin you have to just connect now the next part you have to connect this range sensor so when you purchase this rain sensor from Amazon Flipboard you will get with this circuit also range sensor circuit so initially this will be disconnected like this uh you can see like this it is disconnected you will find like this circuit is separate and this circuit is separate so you have to just plug in that wire there is no polarity you can just plug in that wire here and the two side like this is the input side so once you plug in so once you plug in that wire you can select uh this circuit you will get easily available so at the end of this circuit this is the driver for this rain sensor you can see on the driver there again the three pin uh four pin so four pin I think but when this is the one ground one analog and one digital so we will use VCC ground and digital output pin so what you have to do you can see this is the PIN 4 pin and each pin having the number also uh here below of this pin you will find the number analog detail output detail or detail output University and then ground this is nothing but the uh here we can see 5 volt you have to give so first we will connect VCC pin so VCC from this range sensor we will connect to Common VCC pin here this is the ground pin from the syringe sensor it should be connected to Common Ground very simple circuit and then again detail output from the analog from the rain sensor should be connected to four number pin of Arduino so this is the four number pin of Arduino so this is very simple and easy circuit you can see it is connected now we have connected the rain sensor we have connected the ESP and temperature now only remaining is DHD 11 sensor now again for the DHD 11 sensor there are you can purchase this dstlm sensor from Amazon or Flipkart there again three pins one is data ground nvcc same connection VC should be connected to Common VCC that is 5 volt foreign should be connected to Common Ground so this is the ground pin will be connected to Common Ground and then this is the data pin should be connected to five number pin of Arduino this is the file number Pino Garden so you can see in this way we complete completed our all the hardware connection with Arduino I hope you understand the hardware connection now we will see the program part and then we will see how to run this project now I will tell you what I mean about the sensitivity of this range sensor so I will provide the power so let's say initially if this light is getting on at your end let's say for example I will like this if this light is getting turned on and if there is no water so you have to add this like this this screwdriver you can take the spot you can take and just rotate that port to the anti-clockwise till light will turn off so light will turn off that means your sensitivity gets adjusted and then you can just put some water droplet on this rain sensor [Music] so like this I have put some water droplet and after water droplet you can see second LED will turn on uh so that is means like when there is no water droplet this led will should turn off let's say I have removed some water drop it again from here so after Remo you can see the secondary turn off so in this way you can adjust the sensitivity of this range sensor [Music] first we will see uh now we will see the programming part but before start the programming part uh first we have to create account on the things Peak server so go to the thingspeak.com you can see this is the URL and once you go inside this URL thingspeak.com like this from Google so Google here you can type things pick so once you type things big go to this things pick.com and after that you can create your account get started free and then uh you can create your account uh create new account and once you create just login with that account just like this is my mail ID and then I will type my password so once I log in you can see different Channel I have created so for your site there is no channel so just click on this new channel button okay then after that you can click on this new channel so once you click on this new channel you can give channel name let's say weather monetary system Arduino and esp8266 this is my channel name uh then you can give description if you want then you can ignore also then if we have three sensors so field one field two and field three so these three sensor on field one we give one temperature you can give any name here doesn't matter but temperature sensor value will be display on field one then on field two it will display the rain sensor value so range sensor I will say and then filter should have the moisture so these are the three fields we have created field one filter field three this one the tick is a channel name then after that uh click on this save Channel so once your channel you can see this channel will be open and you can see field one field two and field three now here if you want to give some widget then go to the add widget and then numeric display click on next and then here field one then here you can get temperature then here you can give degree celsius the unit and then create so this uh this wind will be created temperature then again uh here you can again add wizard for fill to fill to then filter and think about the range sensor and then create and likewise widget 3 for the moisture field 3 the moisture click on create so likewise you can create whatever your brain sensor data moisture sensor data will be present in front of this thing like this you can add and then you can uh you can see your data on this field also uh then after that what you can do once you have this channel just go to the this API key and then APK this right APK we require in the program so how to use I will tell you okay so once you created Channel just go to uh my website I will provide my website link in the description from that website you can able to download this weather monitoring system esp82616 click folder so in that folder you will find the code also so website link is nothing but mytrend.com so in in mytrain.com you can type on the Google also and in the mytrain.com like this this is my website so this is my website name once you type website name you will find mytrend.com at the starting so go to that my10.com and uh uh from that my10.com you can easily download whatever the folder code you want you can easily download from here you can see all the project are available here also I will directly provide the project Link in the description so from the description you can directly open that and you can directly uh uh download the project code from that link okay so this project code I will provide in the mytrend.com and then from this you will download link so once you're downloading you have this change baud rate bought it Wi-Fi uh connect with Wi-Fi change baud rate and this weather monitoring system dot Ino file so what is use of change about it and kind bought it with Wi-Fi uh this uh you will get idea from this video foreign then you should watch that video uh you should watch this video and from that video you will get idea how to change your baud rate and your body should be nice is double zero for esp8266 so how to change the what date how to connect with your Wi-Fi at basic setting I have told already in that video so please watch that video this video link also you will find in the my mytrend.com all in the description also okay then after that you require Arduino Uno software so this software you require Arduino you know software so how to install this software I already explained in my previous video this video action detection video so in that video I have explained how to install this software in your laptop so if you don't have the software please watch that video also and try try to download that software then after that double click on this software I hope you have this software so that I will tell you next step so double click on the software then go to the file then click on open a button then go to downloaded folder uh from my website so here you can see whether Marketing System and here you can see this is the code whether romantic thing esp266 things pack iono file then click on open then once you click on open you can see code will be open here and this code we will use in our project now I will tell you importance of each and every line from the code now the first line is Hash include software serial dotage so basically we will use Hardware software serial that is two number and three number pin of Arduino for that one we required to install this Library so that's why we have added this Library here then after that I should include dst.in so basically we are using a dhtlene sensor so for that we require this Library DST dot h so if you don't have this Library just go to the tool then go to the sorry go to the sketch and then include library and click on this manage Library so once you click on this manage Library the manage Library will be open and then uh there you you will you have to type dht11 sensor library and then after that you can click on install button I will just show you how to do that process so for that there should be internet connectivity available so you can see once you click on this manage library then here you can type dst11 Library so just wait for something it will load the library so once you type dht11 you have to install this Library I will show you what library you have to install so you have to install this DHT in your sensor Library I have already installed that's why your install button is not showing uh like this install so click on that install button and then your library will be installed select any version and then Library will be installed so you need to install the DST in essence library in your laptop then after that software serial we are using two three two is act as a RX and 3 is acted TS so whatever the rxt explain you have to Define here then after that some variables here then after that some sensor a0 so basically we have connected temperature sensor to analog 0 that's why here uh Define the temperature sensor pin the range sensor connected to four number pin of Arduino and then dhtn sensor is connected to file number pin of Arduino so whatever the Arduino pin we use for the sensor that is different here then our dsd1 started that Define here and then some wherever we will use this variable later and this is the my API key so whatever the uh key we have created like you can see whether monitoring app sharing uh click on app sharing and right key so I told you we require this right key so this right key or to type here like this each and every symbol will be correct it should be identical you can copy this and then type copy and paste copy and paste here like this so it should be placed in between that two column uh to uh this one double quote uh so this is very important because then and then only it will upload your data then after that my setup so my set of anything but uh whatever the baud rate we are using for the serial communication you have to Define here then pin number pin which work as input arrange sensor work as input we Define here then we started the DST 11 sensor here when some variable then connecting to Wi-Fi so when we connect the laptop or connect the Arduino and when we start the this program then it start connecting to your Wi-Fi whatever Wi-Fi you're using so that message will be displayer on serial terminal I will show you later then after that uh here this is very important SP dot println so here what you have to do this is my you can see till from this code till backslash so till here so this is nothing but my Wi-Fi name so whatever the Wi-Fi name you have to provide you can provide here like this in between this backslash in between this double quote and backslash so backslash should not be deleted please Focus that backslash should not be deleted and whatever the Wi-Fi name you can type here and then here you can see this is the password of my Wi-Fi so you can provide your password Here Again from the back double quote till backslash in between that one there should be your password so this is very important to connect your espn266 with your Wi-Fi okay then after that whatever password and ID or provide that should be correct here then some delay then it should give Wi-Fi connected if there is no error in the connection and if there is a esp26 is working perfectly with 90 double zero bought rate it will show WiFi connected other it will show a Wi-Fi not connected so very important again I will tell you you should watch that video to change your board date as 960. then after that we'll check the connection and start reconnecting if there is any issue then uh some variable here with waiting variable because uh when you upload a data on ESP it will take some time so that time will be defined here then here you can see analog read so whatever the temperature value we are reading from the analog sensor pin sensor pin is nothing but here you can see a0 so sensor is nothing but here a0 reading the value analog value from the a0 that value is converted into temporary sensor 10 or degree celsius from this two line so whatever the value coming from the sensor is converted into degree Celsius here and that store into 10.c variant again same read detail from the range sensor so when you have water droplet when you don't have water droplet so that status will be stored into this red range sensor status variable and this is the function which gives the idea what is the value on this range whether it is one or other whether it is zero then after that read the SD 11 sensor so this is the function which uh read the value from the DHT 11 sensor pin then after that write things big so this is the main idea so write things pick will be call here you can say call here and then after that here you can see things become and started so my API whatever the API that is the get value get value and think what whatever the value we are uploading on that key so that store here then field one field one nothing but the temperature feel to nothing but the rain sensor fuel three nothing but the humidity value so that's why that's why uh here when we created our Channel setting you can see field one we are given temperature then drain sensor and then moisture sensor no humidity sensor so you can change to humidity also here name humidity so like this so field one should be matched with temperature filter should be matched with range sensor filter should be matched with humidity here rain sensor you can see when I do the water droplet on the drain sensor then it will give zero and when I remove the water droplet from the rain sensor it will give one so this is a reverse condition what we have to do when we put the water droplet it should give the one value so that's logic I Define here so this is nothing but you can see range sensor is equal to equal to 0 yes that means water droplet then provide one value to this get ring if the rain sensor not equal to zero then provide zero value so that's logic I have defined here just to toggle the logic when there is zero I have to give one when there is one I have to give zero because range sensor gives the inverse value when there is water droplet it will give zero when there is watered up when it is not water droplet then it will give one but if you have to we have to uh take that value as a reverse we should we should have when there is a water properly then it should give one when there is no water droplet then it will use zero so that's logic here I have given and let's say if you want to add another sensor Field 4 then just copy this two line add here give your field 4 name here like this field 4 and then here whatever the sensor value you have to put you can put here so likewise you can add as many as sensor so likewise you can add as many as sensor and as soon as uh here you can also you need to enable this field like all these fields so whenever if you want to add mini sensor you can do that trick and once all the sensor having the value temperature range and humidity it start to get speak common so it will send here gets pick comma and this is the command sent to the esp8266 chip and then our whatever the sensor value start uploading on the server so main command is this one main command very important line is your API key then your field value here your field value is here whatever the field value compare with your sensor coordinate with your sensor this is very important and other thing is nothing but writing the data on the things big server so this is the just inbuilt Library function which write the data on the things fixer Road I hope you understand the code uh importance of code whatever the importance like at least that you understand and now we will see how to run your project now we will see how to run this project then uh the first part is I have to go to tools and board and here AVR board you should select the Arduino you know and after that you can connect this USB USB to your laptop so once you connect adding USB to your laptop just go to the tool after that go to the com port and here you should select the com Port whatever the comfort that your audience having the I have comfort 5 so select that one then after that click on this upload a button so once you click on this upload button the code start uploading in your Arduino so wait for some second so once the code uploaded just go to this serial terminal so once you go to serial terminal you can see uh here should be water it should be nice double zero then Wi-Fi connected because my Wi-Fi is working perfectly so if you don't get Wi-Fi connected or reconnected continuously then you should watch my this video and try to enable your Wi-Fi then after that your values start reading and start uploading on the thinkpick server so in this way you can run your project so once the value operator you can see field one value field to Value filter value and once you get this message body ratio that means your value is uploaded on the server so in this way you can run your project uh by following my video I hope you understand the complete project Hardware connection program part how to run this project if you like my content please click on like button please subscribe my Channel please support me thanks for watching this video
Info
Channel: Rahul Jadhav
Views: 9,627
Rating: undefined out of 5
Keywords: weather monitoring system using iot, weather monitoring system project using arduino, weather monitoring system, weather monitoring system using arduino, weather monitoring system using nodemcu, weather monitoring system using raspberry pi, weather monitoring system using esp32, weather monitoring system using iot ppt, weather monitoring system using esp8266, weather monitoring system using raspberry pi pico, weather monitoring system using dht11 sensor
Id: goEFkyCKRIc
Channel Id: undefined
Length: 33min 20sec (2000 seconds)
Published: Sun Jun 18 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.