Water Level Indicator project using NodeMCU ESP8266 Blynk & Ultrasonic Sensor
ฝัง
- เผยแพร่เมื่อ 6 ก.พ. 2025
- In this IoT internet of things project, I have explained how to make an IoT based water level indicator project using NodeMCU ESP8266 Blynk and ultrasonic sensor. For the LOW water level, the pump will start automatically and you will get a Blynk notification on the smartphone through the internet. Also, you can monitor the water tank level on OLED.
Get a free trial of the world's most trusted PCB design software, Altium Designer with 365 and 25% off your purchase: www.altium.com...
Download the PCB Layout, Source Code, and Circuit for the water level sensor project from the following article:
iotcircuithub....
Buy components from TechStudyCell online store at LOWEST price:
Our Catalogue: wa.me/c/918097...
Help my projects on Patreon: / techstudycell
Feel free to donate any amount: paypal.me/sdaspay
Previous Video on Water level indicator project
• IoT Based Water Level ...
For this NodeMCU ESP8266 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 NodeMCU is connected to WiFi, you can monitor the water level from anywhere in the world on Blynk IoT App.
In Manual mode, you can control the water pump manually from the switch and Blynk app.
The alarm will ring when the tank is full and when the water level drop below the threshold limit.
During this video, I made the circuit on zero PCB using the PCB layout, and also shared the wireless automatic water level controller circuit and source code.
If you want you can connect a relay to the control pump, otherwise you can use this IoT Project as the water level indicator.
During the ESP8266 project video, I covered the following topics:
00:39 Quick demo on water level monitoring system.
03:16 Required components for the ESP8266 IoT project.
03:35 Circuit diagram of the IoT-based water level controller.
04:14 How to make the water level indicator on Zero PCB.
05:13 Set up Blynk IoT Cloud for ESP8266.
07:44 Source code for the water level controller project.
09:48 Set up the Blynk IoT app for the water level indicator project.
11:40 How to connect relay buzzer with water level sensor circuit.
Required components for the automatic pump controller.
1) NodeMCU ESP8266
2) SR04M waterproof ultrasonic sensor OR HC-SR04 sensor
3) 0.96" OLED Display
4) 1k 0.25watt Resistors - 3 no
5) BC547 NPN Transistor
6) LED 5mm - 2no
7) 2-pin Push Button - 3no
8) SPDT slider switch
9) 220uF 25V DC Capacitor
10) 2-pin Terminal connectors (3 no)
11) 3-pin Terminal connectors (1 no)
12) 5V DC Buzzer
13) AC to DC converter HLK-5M05 5V (Optional)
Amazon India Affiliate links:
NodeMCU ESP8266: amzn.to/3KWWSmB
SR04M waterproof ultrasonic sensor: amzn.to/3PG3LJj
5V 30A 1-Channel Relay Module: amzn.to/3RCwvDU
Amazon United States Affiliate links:
NodeMCU ESP8266: amzn.to/41ImTft
SR04M waterproof ultrasonic sensor: amzn.to/3EXi7Rp
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. Here I have used an Active HIGH relay, so the relay will turn ON for the HIGH pulse.
6. You can either give AC supply, or 5V DC supply as shown in the video.
7. 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 project will help you to maintain the water level in the overhead 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 #esp8266
-----------
Thanks For Watching...
✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
Find out more projects: iotcircuithub....
Facebook: / techstudycell
Instagram: / techstudycell
Telegram: t.me/techstudy...
-----------
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
Buy components from TechStudyCell online store at LOWEST price:
Our Catalogue: wa.me/c/918097259277
project is not good at all. i have done every thing right according to this video. problem 1: some time physical button work,most of the time it does not work but, blynk buttons are good.. problem 2: sensor giving lag result,some times water percent/distance is not changing as result pump is not working correct.
@@FuryFlickers😊
Great.. I try.. And.. Success.. Thanks... One again... Thanks 🙏🙏🙏
bro i have issue with the code , i already install all the library but still cannot compile it . can u share your code to help me ?
@@diansumitra3300 if cant compiling.. Please use library different.. Can u write here about your issue?? May be i can sharing
@@triwahyudi4980 do you have ig or social media for easy contact with u ? im very hope u can help me 🙏
Bro idha edhula run panninga
If the water does not rise for 10 minutes then the motor will go to sleep for an hour If you add this code it would be great.
Big drawback u can't extend the sensor cable . For real-time usage u need to keep all the things near to tank
This project is absolutely good but you can add nrf24 module for wirelessly control and also add sump and overhad tank controlled by wirelessly
My suggestion is use low power module so it can be easily use in battery for sender side
Please upload this type of project becouse more practical and more usefull but need lots of skills thanks
Mantap luar biasa ilmunya sangat bermanfaat, sukses selalu semoga ilmunya berkah. Salam..
hi video is very use full but i have an error: Compilation error: 'D5' was not declared in this scope; did you mean 'V5'?
Very good
For prototype version I use 5 volt relay
Thank you for the excellent explanation. Can I use esp32 and how?
Hi from Argentina! What a great channel! Thank you so much for the info!
Welcome
@@TechStudyCell sir can you sold it for us
Wonderful shir
Thanks
AoA
Sir kindly yh bta dain k aghr smart water management system using iot ka project bnana ho to kya ap bna dain gy?
Great video, please make another video of it using esprainmaker
Nice project it working good, Thank you
Outstanding sir
Amazing
Sir please also provide zero pcb circuit diagram of home automation using esprainmker so that can we make pcb easily sir.
please help my esp8266 is version 0.1 can we use the same libraries?
also i have done whole project but port is not showing in code
as per the schematic relay button2 was connected to D12 on NodeMCU,but could not find D12 on the board itself.
how to keep the ultrasound sensor pass his signal wirelessly i mean without any wire having tank on terrace and a sump motor in the basement where we cannot do wiring from tank to sump motor any solution ?
Where can I buy all components online
Thank you sir 👍
Most welcome
"I followed your project steps, circuit diagram, and pin connections exactly as shown, but I'm facing an issue. The relay stays on continuously and doesn’t turn off as it should in operation, which keeps the motor always running. Could you please suggest a solution to fix this?"
Tried two days
if the internet not available then it works or not, without internet automatic control work or not
Nice I definitely I use this project can u use different display like bigger display older people can see it clearly
Yes we can
Hi thank you for sharing, but what if i add flood mode, every movement of the water the alarm will make a sound? What code should i add?
I love your channel ❤
Thanks
Sir can u please tell me how to connect slide switch in this project
Thank you very much for this project, I realized it but my card can't connect to the wifi while everything is well configured need your help please
Very nice project. I like how you made the paper templates for component placement and soldering.
Thanks
Can you share the full connection pcb schematic
Is the demonstrated setup available as a kit to purchase from you?
For working the relay how much power supply needed to give
What is the version of your node mcu?
When push the S3 (relay button ) button the bord restart and not changing relay on/off why ..
Excellent
Thanks
Firstly thank you so much Sir, sharing this valuable, informative & helpful Content with us. But I kindly request you this system makes for Terrace tank and underground tank both, if you possible 😇👍🏻
Thank you Once again 😊🤝🏻
Hello, can you please add a chart to the app so one can track the water level through time. Thanks
Superb job done. Appreciated 👍 your efforts
It's my pleasure
Can I Buy this? all in componen and source code?
Sir how to see internet is connected or not to nodemcu
Green led is glowing but relay not operating what to do?
How much cost this project
Nice 👌
Green led is Operating according to water level but relay is not operating
Fantastic!
Thanks
sir please help me. this code is wrong. complying error, what do you mean D5 meas V5?
Why does it come again and again?
Can I use this circuit without programming Blynk IoT app because I don't want any notifications on my mobile
#TechStudyCell:- Sir I am from Bangladesh, I am your subscriber. I had a question about this water pump indicator? Is this pump indicator work without wifi? Please reply quickly.☺️☺️
Hello! Thank you for this project. Can i use it with the Bluetooth of the esp32?
Of course 😊
Bro can you make a project on automatic switch on for Generator when the current is cutoff
sir I need the simple circuit connection pls provide that.
Hi, I am working on one of your project: Water level monitoring using ESP8266. I am facing a PROBLEM that my module is not connecting to Blynk. I have placed all the website keys to codes correctly but it didn't work
Bro my code is not uoloading,its showing redifination of char ssid[] error
could you do the same project with A02yyuw (UART) sensor
I don't have pc. I want to program esp8266 by using my Android phone. Can i do this.
Same problem please 🥺
Avarload (current) sefti faucher ad hota bahut achha hota
There is a MCB in the circuit. Please watch complete video
Visiters counter and home automation sath m bana hua video banaiye na
HELLO SIR ..
PIN D12 IS NOT WORKING WELL I REPLACED IT WITH PIN TX
CAN YOU TEL ME WHY PIN D12 NOT WORKING PLESE
very good sir
Thanks and welcome
Can i do the same project with esp32
Super super
Thanks
How can I set manual mode default
Hello sir why code not done compile please help me
great work ! can i replace esp8266 with esp32 with the same code
Already made using ESP32 in previous vedio
Already made using ESP32 in previous vedio
is it wireless
Hello, I copied this, works fine. only my display 1.3 inch does not work :(. and would it be possible to make an LED diode display in the code that you can see from the LED like full green 100% yellow 50% red under 10%? ask for an answer
error show ("preferances .txt file is missing from well known location"how can i solve this
It is a great project 👏. I would like to contact you to carry out a project.
We did a technology to get data from ultrasonic modules over same DC line so just can use 2 wires instead of 4 wires :)
How?
I try this project but relay only on and relay button not working please help
Need this circuit
sir, please do let me know, how long meters sensor can detect the water? can do until 7 meter?
Please wait for the upcoming video.
@@TechStudyCell is there any update ??
Wonderful. Sir, u also made similar project using Esp32 and Blynk. Please make using esprainmaker
Okay
Hi. Your project is great and very easygoing. I have tried it but I am facing an issue that during auto mode reading from the ultrasonic sensor is spiked above 100% frequently due to this running pump stops within short time. Can you implement any code by which if readings are above 100% or starting percentage for more than 2-3 seconds then only output count. Thanks you are doing a great job.
I had faced the same problem . There are wrong values in between which I was trying to filter out by using averaging and different formulas. I was not able to complete the project. Have you found any solutions yet?
Push button kii jagha AC switch use krna hai toh *code* kaise change kre sir, please send a code sir pleasee
Reply
Bro add code for tank image level with percentage on OLED LIKE YOUR THUMBNAIL PICTURE
Sir can you help me to connect with Arduino inbuilt wifi module
Government water timing option please adding for coding
Sir, what will happens when the tank reaches 100% during manual mode. Will it gets off or we have to off it. Can you suggest or include protection of motor running during dry conditions that is to stop motor during dry conditions.
You can set the logic that if the motor is on by automated mode and if the current water level reading and the water level reading after 3/4 minute stays the same the motor to turn off automatically I think dry motor can last for somewhere around 10/15 minutes without any significant wear and tear
i want pcb for this project
Led stair light control project upload
Porque el rele no se desactiva para nada
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?
Please wait for the upcoming video
How to make PCB design to convert photo printing
if I need to change push button with touch TTP233, any changes required in components?
will make video
@@TechStudyCell and if I change push button with touch button any resistors or transistor needed in circuit or simply connect it? (Thanks and looking forward for a complete touch version of this project)
sir kindly reply kr dain plz
Can we use mini ESP8266 for this project?
How I can have 30 - 40 Meter long cable length? I'm living in ground floor and there are 4 floors in above my flat.
Please refer to following video.
th-cam.com/video/-FC8jpl5hDI/w-d-xo.html
Bro make Samarsable motor controller as same future.
does need internet or just wifi?
For Blynk you need internet
Bro make a video on esp8266 automatic watering with OLED display and humidity sensor
Already made it with ESP32
Did this water controller work offline or not
Both offline and online. At offline you can monitor reading on oled
Thanks sir for this project,
I completely complete this projects but cant trigger relay of 5 v 30 A relay . I think relay needs to slightly increase voltage may b 7 to 9 v . Do u have any idea about this ? other wise my pcb board gone waste
i have issu to compile the code . their have some error with the iRam . with u can help me
I use bc547 transistor and 1k resistor to run it
please modifie ith lcd display
Check it without wifi connectivity
It will work without wifi.
Bro make a automated birds water feeder
Ok I will try
The video and content are perfect, but the audio quality is inferior.
Bro your channel has potential, please buy a condenser microphone for voiceovers, it will sound much more professional, and trust me more people will watch it.
Thanks for the suggestion. Working on it.
Sir, please help me with the working of 5V 30 amps relay module like one you used in your float sensor video. I am facing problems with it. The relay is not triggering when connected to 5 V module . I also tried with another new 30 amps relay but it also does not trigger. Whereas 5v 10 amps relays are working perfectly with the 5v power supply.
Sir , please help me to fix this......
It is due to power supply. Use stable power supply.
@@TechStudyCell I am using Hi- Link 5 V 5 Watt power supply. The point is that if I directly connect the wires of the power supply to the coil of the Relay module so it works great but if I connect the wires in the connection points of the pcb ,the relay coil seems to be not energized properly. The 2nd new 5V 30 amps relay also acts the same. What to do?😔
Sensor not working wrong value showing
Why doesn't the relay turn off?
Help plis
Find a salutations ?