Introduction: WATER SUPPLY ALERT & MONITORING SYSTEM #Blynk
Update 6/03/2017: Email notification problem fixed.
Scan New QR code & use latest code.
First of all many thanks to Mr. Paul Alcock for writing code & helping me.
Don't forget to visit his website(https://thechariot.co.uk/)
Now a days we are facing an issue that is our municipal corporation doesn’t provide
water supply at fix time. To solve this problem we have made a device which gives notification on our smartphone regarding water supply. It also gives information such as water flow rate & how much water we consume . This device can be used as water leakage system by using two water flow sensors.
We can also control any external appliances like Pump from anywhere over the internet. In this project we have used Blynk App. Blynk is application which provides us dashboard as well as connectivity. you can download it from google play store (for Android).& app store (for apple).
If you don't know how use Blynk please read this getting started tutorials
Step 1: Requirements
HARDWARE REQUIRED:
1) Nodemcu wifi module.
2) Liquid flow rate sensor
3)Relay Module
4) Switch Board
SOFTWARE REQUIRED:
1) Latest Arduino IDE
2) Blynk (Application)
Step 2: App Setup
Download And install Blynk app.
create new account .
NOTE - For this project 4600 energy points are required make sure you have enough energy points.(On new account Blynk gives 2000 free energy points)
Add Email Widget & enter your email to get notifications.
To clone my project scan above QR code or open the link http://tinyurl.com/y8sgy2bt
Step 3: Hardware Setup
Connect Vcc and Gnd of sensor to Nodemcu, and the signal line to Nodemcu D2.
Connect Vcc and Gnd of Relay module to Nodemcu, and the control pin to Nodemcu D3.
NodeMCU D2--->Sensore pin
NodeMCU D3 ---> Relay Module
as shown in picture fixed everything in switch board.
Step 4: Uploading Sketch to Wifi Module(Nodemcu)
most complicated part of this project is coding wifi module.
Many thanks to Mr. Paul Alcock for writing code & helping me.
you can Download the sketch from this link.
upload this code to your wifi module.
enjoy!!!
For more projects check out my YouTube Channel (Electronics Forever)

Participated in the
Internet of Things Contest 2017
7 Comments
3 years ago
Encore une proposition de projet instructables qui ne se compile pas!Quel plaisir avez vous de partager des projets qui n'aboutissent pas.
Question 3 years ago on Step 4
Has your tinyurl link changed? I'm not having any luck getting your code. Thanks!
4 years ago
In file included from /Users/deepak/Documents/Arduino/libraries/Blynk/src/WidgetLED.h:13:0,
from /Users/deepak/Documents/Arduino/libraries/Blynk/src/BlynkWidgets.h:10,
from /Users/deepak/Documents/Arduino/libraries/Blynk/src/BlynkSimpleEsp8266.h:102,
from /Users/deepak/Downloads/instructables_water_flow_08_01_2017/instructables_water_flow_08_01_2017.ino:22:
/Users/deepak/Downloads/instructables_water_flow_08_01_2017/instructables_water_flow_08_01_2017.ino: In function 'void BlynkWidgetWrite6(BlynkReq&, const BlynkParam&)':
/Users/deepak/Documents/Arduino/libraries/Blynk/src/Blynk/BlynkWidgetBase.h:60:33: error: 'class WidgetRTC' has no member named 'onWrite'
BLYNK_WRITE(pin) { (widget).onWrite(request, param); }
^
/Users/deepak/Downloads/instructables_water_flow_08_01_2017/instructables_water_flow_08_01_2017.ino:38:1: note: in expansion of macro 'BLYNK_ATTACH_WIDGET'
BLYNK_ATTACH_WIDGET(rtc, V6)
^
/Users/deepak/Documents/Arduino/libraries/Blynk/src/Blynk/BlynkWidgetBase.h: In instantiation of 'BlynkAttachWidgetHelper::BlynkAttachWidgetHelper(T&, uint8_t) [with T = WidgetRTC; uint8_t = unsigned char]':
/Users/deepak/Downloads/instructables_water_flow_08_01_2017/instructables_water_flow_08_01_2017.ino:38:1: required from here
/Users/deepak/Documents/Arduino/libraries/Blynk/src/Blynk/BlynkWidgetBase.h:53:9: error: 'class WidgetRTC' has no member named 'setVPin'
widget.setVPin(vPin);
^
4 years ago
the following error displayed during compile
_________________________________
Arduino: 1.8.1 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from C:\Program Files (x86)\Arduino\libraries\blynk\src/WidgetLED.h:13:0,
from C:\Program Files (x86)\Arduino\libraries\blynk\src/BlynkWidgets.h:10,
from C:\Program Files (x86)\Arduino\libraries\blynk\src/BlynkSimpleEsp8266.h:96,
from C:\Users\Rajdeep\Desktop\instructables_water_flow_08_01_2017\instructables_water_flow_08_01_2017.ino:22:
C:\Users\Rajdeep\Desktop\instructables_water_flow_08_01_2017\instructables_water_flow_08_01_2017.ino: In function 'void BlynkWidgetWrite6(BlynkReq&, const BlynkParam&)':
C:\Program Files (x86)\Arduino\libraries\blynk\src/Blynk/BlynkWidgetBase.h:60:33: error: 'class WidgetRTC' has no member named 'onWrite'
BLYNK_WRITE(pin) { (widget).onWrite(request, param); }
^
C:\Users\Rajdeep\Desktop\instructables_water_flow_08_01_2017\instructables_water_flow_08_01_2017.ino:38:1: note: in expansion of macro 'BLYNK_ATTACH_WIDGET'
BLYNK_ATTACH_WIDGET(rtc, V6)
^
C:\Program Files (x86)\Arduino\libraries\blynk\src/Blynk/BlynkWidgetBase.h: In instantiation of 'BlynkAttachWidgetHelper::BlynkAttachWidgetHelper(T&, uint8_t) [with T = WidgetRTC; uint8_t = unsigned char]':
C:\Users\Rajdeep\Desktop\instructables_water_flow_08_01_2017\instructables_water_flow_08_01_2017.ino:38:1: required from here
C:\Program Files (x86)\Arduino\libraries\blynk\src/Blynk/BlynkWidgetBase.h:53:9: error: 'class WidgetRTC' has no member named 'setVPin'
widget.setVPin(vPin);
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Reply 4 years ago
Same me before I can comoly ,but now can"t to comply. I don't know why. Explain to me please
6 years ago
Excellent project bro. very good idea.
I stopped liking blynk after they start this energy point stuff.
I will suggest if you re-make it without blynk. You can use MIT App inventor for replacing blynk.
Reply 6 years ago
thank you for suggestions.
You can install local server on raspberry pi to get unlimited free energy.
Most useful feature of this project is push notification on water supply.this is not possible with MIT app inventor