Arduino Water Pressure Sensor Project, Water Level Pressure Sensor
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor
Arduino Projects
Table of Contents
1. Arduino Water Pressure Sensor,
Description:
2. Altium Designer + Altium 365 + Octopart:
3. Amazon Links:
4. Water Pressure Sensor:
4.1. Water Pressure Sensor
Specifications:
4.2. Features
5. Pressure Sensor Interfacing with Arduino:
6. Water Pressure Sensor Calibration:
6.1. Download the following Libraries:
6.2. Water Pressure Sensor Calibration
Code:
7. Water Pressure Sensor Arduino
Programming:
8. Watch Video Tutorial:
1 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
2 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
To explain this idea, I have done this basic setup, you can
see the water tap and I have also attached the Water
pressure sensor. Here, this water storage drum is
representing the water tank.
3 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
Altium 365 lets you hold the fastest design reviews ever.
Share your designs from anywhere and with anyone with a
single click. it’s easy, leave a comment tagging your
teammate and they’ll instantly receive an email with a link
to the design. Anyone you invite can open the design using
a web browser. Using the browser interface, you’re able to
comment, markup, cross probe, inspect, and more.
Comments are attached directly to the project, making
them viewable within Altium designer as well as through
the browser interface. Design, share, and manufacture, all
in the same space with nothing extra to install or configure.
Connect to the platform directly from Altium
Designer without changing how you already design
electronics. Altium 365 requires no additional licenses
and comes included with your subscription plan.
4 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
5 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
means 40%, 60%, 80%, and the 5th LED represents 100%
water level. So, when all the LEDs are ON, it means that the
water tank is full. And when all the LEDs are OFF, it means
that the water tank is empty. Now let us move ahead and
start our practical demonstration.
I have powered up the Arduino. Right now All the LEDs are
OFF as the water drum is completely empty. And on the
Oled display module you can see value is around 0 Kpa.
6 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
When the Water Drum completely filled, all the LEDs turn
ON. For the practical demonstration watch video tutorial
given at the end of this article. I am sure by now, you might
have got an idea of how does this system work. So, without
any further delay let’s get started!!!
Amazon Links:
7 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
Arduino Nano
Digital Oscilloscopes
Variable Supply
Digital Multimeter
8 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
Red VCC(5VDC) +
Black GND –
9 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
Features
• Support water pressure detection of living
environmental water systems, such as houses, gardens
and farms.
• Support water pressure detection of outdoor
environment, such as rivers, lakes and sea.
• Support water pressure detection of tanks.
• Support liquid level detection in special situation.
10 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
11 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
5 LEDs are connected with the digital pins D2, D3, D4, D5,
and D6. As these are 2.5V LEDs that’s why I am using 330-
ohm current limiting resistors.
Download: Adafruit_SSD1306.h
12 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
13 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
51 {
52 //Connect sensor to Analog 0
53
54 V = analogRead(0) * 5.00 / 1024; //Sensor output voltage
55
56
57 P = (V - OffSet) * 250; //Calculate water pressure
58
59 [Link]("Voltage:");
60 [Link](V, 3);
61 [Link]("V");
62
63 [Link](" Pressure:");
64 [Link](P, 1);
65 [Link](" KPa");
66 [Link]();
67 [Link]();
68 [Link](25,0);
69 [Link](1);
70 [Link](WHITE);
71 [Link](" Caliberation");
72 [Link](10,20);
73 [Link](2);
74 [Link]("P:"+S String(P));
75 [Link]("KPa");
76
77 [Link](10,45);
78 [Link](2);
79 [Link]("V: ");
80 [Link](V);
81 [Link]();
82 delay(1000);
83
84 }
On the Oled display, you can see the pressure in Kpa and
the voltage.
14 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
15 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
16 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
48 pinMode(led2, OUTPUT);
49 pinMode(led3, OUTPUT);
50 pinMode(led4, OUTPUT);
51 pinMode(led5, OUTPUT);
52
53 digitalWrite(led1, LOW);
54 digitalWrite(led2, LOW);
55 digitalWrite(led3, LOW);
56 digitalWrite(led4, LOW);
57 digitalWrite(led5, LOW);
58 [Link]("/** Water pressure sensor demo **/")
59 [Link](SSD1306_SWITCHCAPVCC, 0x3C);
60 delay(2000);
61 [Link]();
62 [Link](WHITE);
63 }
64 void loop()
65 {
66 //Connect sensor to Analog 0
67 V = analogRead(psensor) * 5.00 / 1024; //Sensor output voltage
68 P = (V - OffSet) * 250; //Calculate water pressure
69
70 [Link]("Voltage:");
71 [Link](V, 3);
72 [Link]("V");
73
74 [Link](" Pressure:");
75 [Link](P, 1);
76 [Link](" KPa");
77 [Link]();
78 [Link]();
79 [Link](10,0);
80 [Link](2);
81 [Link](WHITE);
82 [Link]("Value:");
83 [Link](10,30);
84 [Link](2);
85 [Link](P);
86 [Link]("KPa");
87 [Link]();
88
89 // total pressure when the water drum is completely filled = 112kpa
90 // but i am going to consider it as 100Kpa
91
92 if( (P > 0) && (P<=10) )
93 {
94 digitalWrite(led1, LOW);
95 digitalWrite(led2, LOW);
96 digitalWrite(led3, LOW);
97 digitalWrite(led4, LOW);
98 digitalWrite(led5, LOW);
99 } else
100 if( (P > 10) && ( P <= 20) )
101 {
102
103 digitalWrite(led1, HIGH);
104 digitalWrite(led2, LOW);
105 digitalWrite(led3, LOW);
106 digitalWrite(led4, LOW);
107 digitalWrite(led5, LOW);
108
109 } else
110
111 if( (P > 20) && (P <= 40) )
112 {
113
114 digitalWrite(led1, HIGH);
115 digitalWrite(led2, HIGH );
116 digitalWrite(led3, LOW);
117 digitalWrite(led4, LOW);
118 digitalWrite(led5, LOW);
119 } else
120
17 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
Here is the offset value which I found using the hit and trail
technique.
18 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
dfrobot water pressure sensor electronic clinic water level pressure sensor
19 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
water pressure monitoring system water pressure sensor water pressure sensor Arduino
3 Comments
20 of 21 7/6/2023, 3:08 PM
Arduino Water Pressure Sensor Project, Water Level Pressure Sensor [Link]
Brendan O'Kane
February 3, 2023 at 4:20 pm
Reply
Instrument Calibration nz
May 30, 2023 at 5:28 pm
Reply
Flowmeters NZ
June 1, 2023 at 5:03 pm
Reply
21 of 21 7/6/2023, 3:08 PM