IoT Based Water Level Monitoring system using ESP32 Blynk & Ultrasonic Sensor

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends welcome to Tech study cell in this video we are going to make a smart water level indicator using the esp32 and the blink iot here you can see I have used a waterproof ultrasonic sensor to measure the water level but you can use any other ultrasonic sensor it will measure the water level and you can monitor it on the OLED and if the esp32 connected with the Wi-Fi you can monitor the water level from anywhere in the world in the blink iot app and for the low water level you will get a blink notification and also the alarm will start and there are also some other features and as you can see I have made a complete circuit on the Zero PCB and using this layout you can also easily Design This complete circuit on the Zero PCB now before going to the details let me show you how this project works now we will quickly test this circuit you can see the water level percentage on this OLED and the blink iot app now the water level is slowly increasing here you can see now the tank is full I can also press this button to reset the Barger now whenever the water layer will reduce you can see the related percentage on the OLED and when the level drop down below 10 percent you can see now the level percentage is seven percent I Got a notification in the blink iot app low water level and I can also see the value and the green LED turns on now whenever the water level increase the buzzer will stop automatically you can also stop it from this button these are the required components for this project you can either use this sr04 ultrasonic sensor or you can also use this waterproof ultrasonic sensor as you are going to use the sensor inside the water tank now we have to connect all these components as per the circuit diagram for this circuit if you want to use AC Supply then you have to use this AC to DC converter otherwise you can directly give 5 volt supply to the Circuit for this project we are going to use this waterproof ultrasonic sensor but you can also use this ultrasonic sensor as per the circuit now before designing a PCB for this project I have made the complete circuit on breadboard for testing after that I have made a PCB for this project using the LTM PCB designer software in LTM it is very easy to search for any components compare the data sheet and accordingly use that component in your circuit and LTM has also lot of useful tools which will save you a lot of time while routing any PCB and there are a lot of free tutorials available on LTM and the user interface is so simple you can easily learn this software and use it to design professional pcbs and we all know LTM is the most trusted PCB designer software by most of the electronic companies so if you want you can download the free trial version of the LTM software from the description and use it to design professional pcbs this is the PCB for this project you can download the PCB Garba file from the video description but in this video we will make the complete circuit on this zero PCB with the help of this PCB layout now you can also download this PCB layout for this project from the video description and here I have also mentioned the Grid on this layout which will help you to make the circuit on this zero PCB first I will place this layout on this zero PCB then with the help of a light I can easily match the grid with the hole on the Zero PCB after that I have to cut the zero PCB as per the size now I will paste this layout on the Zero PCB using a glue as you can see I have placed the layout on the Zero PCB now with the help of a light I can easily identify the hole then with the help of this tool I can make a hole on this layout so it will help me to place the component on the layout now I will place all the components one by one on the Zero PCB now you have to solder all these components on this zero PCB as you can see we have placed all the components on the Zero PCB now with the help of this layout we can easily connect all the components as per the circuit after soloing I will connect the esp32 OLED and as I said you can use this ultrasonic sensor or you can also use waterproof ultrasonic sensor now we will connect the USB 32 with a laptop for programming before programming the esp32 first we have to configure the blink Cloud now here first we'll create a template so I will click on new template give a name to this template then Hardware will be sp32 connection type will be Wi-Fi now I will click on done now we will go to data stream and click on new data stream select the virtual pin for the First Data stream I will give the name water level it will show the water level in percentage then in a pin I will select V1 in the unit I will select percentage as it will show the value in percentage minimum value will be 0 maximum value will be 100 and data type will be integer now I will click on create now I will again click on new data stream select the virtual pin for the next data stream I will give the name distance in the pin I will select V2 data type will be stream now click on create now I will go to Automation and here I will turn on these two radio button and in the type of automation I will select sensor then I will go to web dashboard and here I will drag and drop level visit and one gauge visit then I will tap on the setting icon on the gauge visit then select the data stream water level and I will click on Save then go to setting of the level visit and here I will type distance and I will select the data stream V2 then I will click on save so our web dashboard is ready now I will click on Save now we have to add a device using this template so let me go to my device so I have to click here then click on new device then select from template select the template name and you can also give the device name I'm keeping as it is now click on create now if I go to device info you can get the authentication token here so now we can move to the coding part of this project this is the source code for this project you can download this code from our website iot certificate app.com just visit the article you can find a link in the description then you can download the code from this button now let me open this code for this project you have to install the esp32 board and these are the required libraries I have also mentioned the version for each Library so please install this version only after that you have to enter the template ID device name and authentication token so let me go to Blink account I will just click here to copy all these details then here I will paste it then here I have to enter the Wi-Fi name and the password now this is the most important part for this project the empty tank distance is the distance between the sensor and the bottom of the tank if the tank is empty and a full tank distance is the distance between sensor and the water level when the tank is full so first you have to measure both this distance in centimeter then Define these two value here then you have to define the triggered percentage here I have mentioned 10 which indicates when the water level in the tank drop down below 10 percent you will get a low water level notification in blink iot app also the alarm will start and the green LED will turn on so you can Define any value like twenty percent five percent as per your requirement and one important point you will get the reading on OLED only if the distance between the sensor and the water level is between these two value as we are measuring the water level so the water level distance must be between the empty tank and the full tank distance otherwise it will ignore all the rest value and you will not get any reading on blink and OLED so please measure this distance properly then mention the distance in centimeter after doing these changes you can directly upload this code to esp32 just go to tools select the board do it esp32 dev kit V1 then select the proper Port then hit the upload button after programming you can see this blue LED is glowing which indicates the esp32 is connected with the Wi-Fi so now I will quickly configure the blink iot app let me open the app then I will tap on the device USB 32 water level then I will go to edit mode and tap on this plus icon so first I will add a gate visit so let me resize the gauge visit then again I will go to visit box and now I will add a level wizard just to show the distance between the sensor and water level now I will tap on the first case use it select the data stream water level V1 then I will tap on the label visit and here I will select the distance data stream which is connected with the V2 so our dashboard is ready let me exit from the edit mode now I will add a automation so that whenever the water level drop down below 10 percent I should get a notification on mobile app so let me exit from the dashboard now I will tap on automation then tap on ADD automation then select device State and select the device then I will tap on this data stream name here I will select is lower than or equal to then here I will enter 10 as I want notification when the water level drop down below 10 percent you can give any other value as per your requirement now I will tap on done then I have to add action so I will tap on ADD action then if you want email then you can tap on send an email here I want just a notification so I will tap on in-app notification and enter the custom message in a message I will type quarter level below 10 percent now I will tap on done then again I will tap on done now here you can give the name of the automation you can give any other name I'll tap on done so here you can see our automation created now if you want to use AC Supply then you have to give the AC Supply across these two pin then it will convert it to 5 volt DC but if you want to use direct 5 volt you can connect a 5 Volt across these two pin and across these two pin you have to connect the buzzer now our water level indicator is ready now I am going to install it as you can see here I have used a waterproof ultrasonic sensor for this sensor the range starts from 25 centimeter so make sure the distance between the water level and the sensor must be greater than 25 centimeter and now we can also monitor the reading on the OLED and the blink iot app so if you find this video helpful then please hit the like button and share it with your friends you can also follow us on our Instagram you can find a link in the description thank you for watching have a great day
Info
Channel: Tech StudyCell
Views: 724,959
Rating: undefined out of 5
Keywords: water level sensor, water level indictor, iot based water level monitoring, esp32, blynk, ultrasonic water level sensor, water tank sensor, water level detector, esp32 water level sensor, non contact liquid level sensor, arduino level sensor, wireless tank level monitor, wireless water tank level indicator, tank overflow sensor, water level sensor arduino, water level alarm sensor, water level monitor, sr04, techstudycell, waterlevelindicator, iot project, internet of things
Id: 9geREeE13jc
Channel Id: undefined
Length: 13min 7sec (787 seconds)
Published: Tue Dec 20 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.