IoT Based Water Level Monitoring system using ESP32 Blynk & Ultrasonic Sensor
ฝัง
- เผยแพร่เมื่อ 13 พ.ค. 2024
- In this IoT internet of things project, I have shown how to make the IoT based water level monitoring system using ESP32 Blynk and ultrasonic Sensor. For the LOW water level, the alarm will start and you will get a Blynk notification on the smartphone through the internet. Also, you can monitor the water tank level on OLED.
To try out the FREE trial version of Altium, click here - www.altium.com/yt/techstudycell
Download the Code and PCB Layout for the water level sensor project from the following article.
iotcircuithub.com/iot-based-w...
For this IoT-based water level indicator project, you can use any ultrasonic sensor as the water level sensor in the tank. You can always monitor the tank water level on OLED and if the ESP32 is connected to WiFi, you can monitor the water level from anywhere in the world on Blynk IoT App.
During this video, I have made the circuit on zero PCB using the PCB layout, and also shared the wireless water tank level indicator circuit and source code.
The alarm will ring when the tank is full and when the water level drop below the threshold limit.
I have not connected relays to the control pump but if you want you can connect a relay instead of the green LED to control a pump.
During the ESP32 project video, I covered the following topics:
00:52 Quick demo on IoT based water level monitoring system.
01:46 Required components for this ESP32 IoT project.
02:03 Circuit diagram of the ESP32 water level sensor.
03:32 How to make the water level detector on Zero PCB.
05:30 Set up Blynk IoT Cloud for ESP32.
07:11 Steps to add a device in Blynk IoT Cloud.
07:36 Source code for the IoT-based water level sensor.
09:59 Set up Blynk IoT app to monitor water level.
10:57 Add automation for LOW water level notification.
12:10 How to install the water sensor inside a water tank.
Buy components from TechStudyCell online store at LOWEST price:
Our Catalogue: wa.me/c/918097259277
Required components for the non-contact liquid level sensor.
1) ESP32 DEV KIT V1
2) SR04M waterproof ultrasonic sensor OR HC-SR04 sensor
3) 0.96" OLED Display
4) 220-ohm 0.25watt Resistors - 2 no
5) BC547 NPN Transistor
6) LED 5mm - 1no
7) 2-pin Push Button
8) 2-pin Terminal connectors (3 no)
9) 5V DC Buzzer
10) AC to DC converter PM01 5V (Optional)
Amazon India Affiliate links:
ESP32: amzn.to/331pohb
SR04M waterproof ultrasonic sensor: amzn.to/3PG3LJj
Amazon United States Affiliate links:
ESP32: amzn.to/3mBjCch
Help my projects on Patreon: / techstudycell
Feel free to donate any amount: paypal.me/sdaspay
Important points:
1. For the SR04M waterproof ultrasonic sensor minimum measure distance is 25cm, so the distance between the sensor and the full tank water level must be greater than 25cm.
2. As per the logic, the ultrasonic sensor will only calculate the water level if the measured distance between the predefined values for the empty tank and full tank.
3. Define all the distance values in cm.
4. You can press the button to stop the buzzer.
5. You can either give AC supply, or 5V DC supply as shown in the video.
6. Please watch the complete video, otherwise you may face some issues.
**Please take proper safety precautions while working with high voltages.
This IoT-based ultrasonic water level sensor will help you to maintain the water level in the tank, also it is very useful to save energy and water resource.
If you face any issues please let me know in the comment section.
#waterlevelindicator #iotprojects #esp32
-----------
Thanks For Watching...
✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
Find out more projects: iotcircuithub.com/
Facebook: / techstudycell
Instagram: / techstudycell
Telegram: t.me/techstudycell/
-----------
-----------
WARNING:
This video is for demonstration and educational purposes only.
Each demonstration presents risks and hazards that must be fully understood before attempting.
And should be performed only by professionals
-----------
Other useful IoT projects:
Latest ESP32 projects playlist:
• ESP32 Projects
Latest NodeMCU projects playlist:
• NodeMCU Projects
Arduino Home Automation Projects playlist:
• Arduino Projects - วิทยาศาสตร์และเทคโนโลยี
GREAT SOLUTION FOR BEGINERS AND EXPERT PERSONS FOR STARTING UP NEW IDEA PROJECT. THANK YOU A LOT.
I really like that paper overlay.
Buy components from TechStudyCell online store at LOWEST price:
Our Catalogue: wa.me/c/918097259277
Thank you so much for this video.
I have learned a whole lot about Arduino and Blynk.
Thanks !
Watch [NEW] video on Automatic Pump controller using 555 IC: th-cam.com/video/bgARqosK7T4/w-d-xo.html
So for any one of you facing water buildup on sensor you can use cheap anti moisture sheet used in cars side mirror. And make sure to ad a little tilt to the sensor so that water goes to opposite side . I have used one esp 32 with 3 sensors works great
a float valve can do this, people just making things complicated.
Bro does it require level shifter in nodemcu for connecting trigger and echo pins of ultrasonic sensor? To convert 5v to 3.3v
Can I order the whole unit? If yes, then how much it can cost
Tengo un problema (error) al configurar: Compilation error: macro "pulseIn" requires 3 arguments, but only 2 given
Hi bro, by using atmega328p in standalone can do the same project?
Great video and tutorial, I am a newbie to the whole lot business, and where I live water is scarce and has to be strictly rationed and managed, I would like to point out that the arduino/ESP32 script has to be adjusted to real life usage, in my case to properly get a reading of distance and after some very frustrating hours of not getting a precise reading on the depth measurement, I realized that sound does not travel at the same speed at different altitudes, with temperature and humidity being a variable, living at 3300 +/- feet altitude, I have adjusted the formula of the speed of sound from 343/Meters per second x to 354//Meters per second, the other problem encountered was how to get the true volume or porcentaje of remaining water in the tank, with a depth of 4 meters I have only 3 working meters of usable water and to avoid the sensor from getting wet or splashed by the street inlet, adding a safe distance of 30 Cms, which sums up to 330 Cms. Given that i had to calculate the volume for 3 meters of water I assumed that declaring on the sketch to :
//Set Water Level Distance in CM
int emptyTankDistance = 300 ; //Distance when tank is empty
int fullTankDistance = 30 ; //Distance when tank is full
Would be true and accurate, again very frustrated with wrong percentages of water, until I realized that it was necessary to declare the full 330 Cms to get an accurate reading of the waters volume at 3 meters.
//Set Water Level Distance in CM
int emptyTankDistance = 330 ; //Distance when tank is empty
int fullTankDistance = 30 ; //Distance when tank is full
I hope my stumbling and fumbling is of some help to others, and Again very grateful for the tutorial and sketch it has been of great help to create a truly useful toll, Great Work!!!
Did you make any improvements now?
hello, whether this method is applicable for diesel tank monitoring system..?
May i know what software did you use to draw the circuit on the strip board?
Can I answer me why the fulltankdistance must be greater than 25 ?
Nice project, I'll try this
[NEW] Water Level Indicator using NodeMCU with Pump control: th-cam.com/video/NHxnWQF2504/w-d-xo.html
What is the total money u have used for devices
I have been following you for a very long time and I adore your videos and your way of explaining
Can you do home automation through esp32, but with sensors such as temperature and humidity sensor, distance sensor, motion sensor, light intensity sensor, rain sensor, fire sensor, fingerprint sensor, rfid card, and more outputs for each sensor, knowing that you can add atmega328p to increase the number of outputs through an application blynk or esp rainmaker
Yes you can.
Thanks for sharing and I am trying to write IoT project.
Super project, good description.
Thanks
Can you make a tutorial of a soil moisture sensor with stainless steel rods
that you can use with arduino thanks in advance ;)
Awesome video, thank you Sir!
My pleasure!
excelente proyecto
can it be monitored in long distances? or you must be close to the device to monitor in your phone?
Thank you for sharing!
Welcome
what is the total cost of this project?
Sir home automation app or hardware may mqqt code kho kaise implement kare
Hey there, I've made quite the same circuit and used the same sensor for water level measurement but the problem is that after a few days time there is moisture building up on the surface of waterproof sensor which messes up the readings.
Can you help me for programming I already messes up . For my project purposes only plss
will it be possible to add a multi tanky monitoring option
hi, congratulations, realy good, but y want to know if that is posible with a 4G (GSM module) or Radio (Lora) transmision. Thanks
Bro... Very good job. I would love a model with esp32 that would check the level of the cistern and the water tank level with an ultrasonic sensor and turn on the pump and indicate the food via Wi-Fi to the smartphone. Could you do it?
Is it mandatory to use bc547, because I coded and connected like you, everything is fine except the connection does not work even in the warning, and then I press the button and nothing happens
Sir please answer. I wanna create a Parking system with Camera sensor and it should show live data on Android App.. how can I sene Ardino data to mobile app??
Tidy work...Well done
thank you . I have make this project and works fine.
Welcome
Sir can i programme node mcu by using Android Arduino ide app.
Can I purchase the complete product with a waterproof ultrasonic sensor?
Good useful project bro, will try to implement in my home 😀
All the best
You will not get water level stable
Just keep in mind that the humidity might mess up readings.
Can u keep block diagram(connections) by using breadboard in description
can you do proteus simulation of this project
thank you
this is the project i want
thanks again
have granted my request
I am from Indonesia, thank TechStudyCell very much
Welcome
Bro i want to use micropython for coding is it better?
I like your Idea!. so cool
I used switches to monitor water level as moisture causes incorrect readings
Can u keep block diagram by using breadboard in description
Hi dear. How can I compare the level values in terms of time? for example, apply conditions in the programming file that will give different actions, such as turning on an LED, according to the level values per unit of time?
You have to implement code for it. Your have to Know about c/c++ and Arduino coding for it
Congratulations 🎊
Great work
Thanks
How is this IOT? what are you computing over internet? .
I think this more like a dashboard.
What do you mean by wireless? everything connected through wire.
i have made this before for the purpose of monitoring the water level and turning off the water pump but due to heavy flow of the water and creating turbulence the level reading is fluctuating. please reply if you can solve this problem. Do i use another type of sensor or mechanism???
Take multiple readings and take the average value of it. Like take 1000 value and take average
@@ITSALLELECTRONICS for more precise result, take 50 readings , sort these reading in ascending order, now eliminate first 10 and last 10 readings, this will eliminate worse low and worse high readings. now take the average of remaining 30 readings.
Nice one what a great project it's solved half of my problem. My other issue which you may like to address if it's possible.
1. In this project, your main board and sensor in the water tank are hard-wire connected is it possible we can have a circuit where the sensor is connected to the leading board wireless.
2. As you are measuring the water level in the underground water tank what if I want to use one main circuit board with two sensors i.e. one for the underground water tank and 2nd for over roof water tank
3. As you can tell I am a Linux user Altium Designer is a window GUI base software can you name alternative software for Linux. Which I as user-friendly as Altium
Thanks for your video I am a new subscriber and would like to see and learn more about projects like this
Hi Thank you for this but i have an error "Compilation error: macro "pulseIn" requires 3 arguments, but only 2 given" can you help me
But my esp32 WROOM is not showing port in my laptop.. and I downloaded drivers and another options but issue not resolved.. please give some idea
Float ball vs US sensor ,which 's better?
Hi! I need to use this sensor in a 5 inch diameter borewell pipe. Where there is 0.5 inch dia pipe inside the 5inch dia pipe which is connected to motor to suck water. In this case, can I use this sensor to get the water level. Because the 0.5 inch pipe will distort the sound waves from the sensor which will affect the reading.
Well.. you can use a float sensor
Or need to place sensor precisely
Good evening CONGRATULATIONS my friend I follow all your videos. Could you do how to turn non-smart TV into smart TV
Controlled With Google assistant or Alexa
Благодарим ви!
Thanks a lot 🙏
Dear sir, Please make a video with upper and lower water level tank both tank system with one arduino uno and two altrasonic sensor for upper tank level and lower water tank level .
How to connect relay module for motor automaton?
How to program esp 01s with Arduino Uno and mobile phone ....?
Excuse me Bro !
Iam facing so many issues with Coding Can you make a Seperate Video for that Coding Part..... Please
I want to implement this project:
"Design of Driver Awareness system depending on Eye and Face Feature and Discrimination"
Can I use ESP32 instead of Raspberry Pi ? please reply
You can you although esp is not a good candidate for it coz of its low processing power
8:19 brother i have a doubt, in the code there is a line where we have to give the wifi credentials that is ssid and pass, from where i can get those credentials
You need to have a wifi connection at home. Or the wifi you use , you need to give the router or the modem's id & password to it to connect
How many mobiles can be monitored and controlled
thanks very much
how i can send a notification sms / email ??
please reply me
Hi there, I have a water tank in a location where there is no electric power available and I want to find a device that, powered by solar energy I assume, can send a signal to my cell phone indicating the water level of the tank. Can your project be applied to my case? Thanks
thanks,
Place the sensor and use a long wire to take it to your desired location and use it. Also you need wifi for the phone app functionality.
Excellent idea, but I wonder how long that generic sensor will resist to water vapour??? I bet not that much.
Good to show as project...but not practical for use.
I have used water proof sensor
th-cam.com/video/h6321UBATps/w-d-xo.html
I also did similar to this using waterproof ultrasonic sensor, working good, but the problem is it will show the wrong readings when the moisture inside the water tank is deposited on the sensor.
Ok, but if you will measure level from bottom to surface? i.e. place sensor at the bottom. I have the same project, but using waterproof pressure sensor (low range, 0-0.25 bar)- no problems. As secondary independent means - floater switch at 98% of capacity, to avoid ovelflow of the tank. Ultrasonic sensor may give you wrong readings also by secondary reflected echo signal.
@@buildmaker ok, what about the accuracy of the pressure sensor? Can we measure each level?
@@kartikhegde9368 yes, you can measure +/- few cm of level difference. Pressure to be converted into water level above the sensor. Just choose right pressure sensor range close to your tank height. i.e. 1 meter of the height (water) ~ 0.1 bar. Good quality sensors giving about 1% of accuracy. Important to place sensor away from inlet pipes, so in shadow area, to measure static pressure only.
@@buildmaker ok, thank you, can you suggest me some good sensor in less budget?
I have the same experience with mine
Hi How would you be able to make a water level sensor for me and I would pay you for it. How much would it cost. Thanks
I'm making a system to detect fluid level and I am wondering if I can replace the ultrasonic sensor with a 24GHz radar sensor? I want to have an enclosed system and not be in contact with the water.
have you tried radar??
does anyone know how to convert the code from % to cm on lcd
This is nice video....
Great job. The problem with this approach is the water or liquid will evaporate and condense on the surface of the sensor and that's a problem.
I have used water proof sensor
Nice project usefully Canby doing esp rain maker
yes.
I have tried already this sensor. But when you cover tank some water drops amid the sensor and sensor malfunctions. So this is usedless when tank closed in summer
Yes same problem, condensation make it useless, reading is not accurate when tank starts to cool down in evening. Someone told me to place a Incandescent bulbs 12 volt bulb near sensor, This may work I haven't tried yet. Another problem with Incandescent bulbs is, it may cause MICROBIAL in water.
Sir this project report how to download
Can make it low cost?
could you please help me with where can I get water proof ultra sound distance sensor?
Online. Please Google it
Total price of above product in indian rupees
Plz reply
please tell me how to change the code if using esp8266 and how are its pins can you help me, thank you
If you do not have the ability to figure that out on your own then I would suggest stay with the original design and spend the $10 for an ESP32 board as used in the project.
By the way, after a research can get data from ultrasonic module just by using 2 wires by carry data over dc lines :)
Bro will it work without internet as well? i mean show the data on oled while there is no internet and get back to app when internet restored, Please Reply
yes
Could i purchase it?
Hi Sir i want to do practical on tubewell ...is it possible that i can implement on top of that
I need your email address and discuss about this project .
Thanks in advance
how I get this product
great work but you can make rf433 water level
Good useful project bro😍😍😍😀😀
Thanks
Can we use this for petrol bunks to measure the remaining fuel levels??
NO >>>>>>NO...one spark and the petrol tank will be in outer space.
Can I order one;ready for install.
it will save lot of water
Bro i want to purchase this project
Always suggests float switches for better efficiency and accuracy
Working on Float Switch with ESP32
i want to buy complete wiring/pcb please sell.
How can I contact you
I did similar but it didn't work can you help me for project purposes only it will present next day plsss😭
I am getting error when compile the code #Compilation error: 'Wire' was not declared in this scope# Please help
Install all required library
How can I add one more ultrasonic sensor for well
Sure just add it to the code and to you are set
Good project ❤️ , how many maximum distance
Depends on what ultrasonic sensor you are using?
Is available any ultrasonic can measure 2m range ?
What estimate cost of this project anyone?
I tested this sensor years ago in my tank after
I Removed it because the reading was fluctuated. i googled lot to fix but not solved . just 30 cm was stable. i choosed hc-04 with arduino. finaly i got better result in pressure transducer
how its working now and model of pressure sensor ....and what about corrision
@@shauryaaditya169 i used 30psi pressure transducer.
0 to 5 v output we can convert to level. 30 psi is almost equal to 2 meter tank
can u send me diagram & code details