Arduino Water Level Sensor Tutorial

  Рет қаралды 265,953

TheGeekPub

TheGeekPub

Күн бұрын

Support this Channel on Patreon:
/ thegeekpub
In this video, we're going to cover how to use the water level sensor with the Arduino.
The water level sensor will help you easily detect the presence of water and a relative idea of its depth.
Detailed article and wiring diagrams here:
www.thegeekpub.com/236571/ard...
Sensor Wiki:
www.thegeekpub.com/wiki/senso...
Parts List for Project:
* Arduino Uno: amzn.to/2JAipBZ
* Arduino Mega 2560 (upgrade): amzn.to/2LE1H7u
* Water Level Sensor (Leak Detection Sensor): amzn.to/2HfrlLC
* Breadboard and Wires: amzn.to/2LDXjFA
* LCD Character Display (optional): amzn.to/2VkIoPY
* 10K Potentiometer (optional): amzn.to/2YocvI9
Visit the Murray² Forum:
murray2.com/
Find us on Social Media:
/ thegeekpub
/ thegeekpub
/ thegeekpub

Пікірлер: 129
@cinejera
@cinejera 5 жыл бұрын
amazing for my massive fish tank! I travel a lot and it's good to know when the water level is getting close to the unsafe level for the heaters!
@kraigparadise5770
@kraigparadise5770 3 жыл бұрын
How? You can only dip it in a few inches.
@VMTDesign
@VMTDesign 3 жыл бұрын
@@kraigparadise5770 If the water level gets too low in a fish tank, I'm assuming. So it would only need to be submerged on the top bit.
@TheGeekPub
@TheGeekPub 2 жыл бұрын
@@kraigparadise5770 ?? If the water is more than inch low, there's a problem!
@TheStainedMen
@TheStainedMen 4 жыл бұрын
thank you this video was vert ahffasdful
@xmine08
@xmine08 2 жыл бұрын
Do note that these kind of sensors suck due to corrosion: 1) Thus they break after some time 2) The corroded material stuff is partially released into the surrounding environment, which may not be ideal. Instead look for conductive sensors which abuse induction for measurement.
@durlabhbiswas860
@durlabhbiswas860 3 жыл бұрын
I wanted to ask that can we use map function to keep check on value input coming from sensor?
@thep.master1318
@thep.master1318 4 жыл бұрын
Hey how would you add a water pump to this circuit and to the code? Thank you
@syazmanlyman
@syazmanlyman 4 жыл бұрын
Hey im just wondering if this would work if i would want to sense spillage on the floor
@chiparooo
@chiparooo 5 жыл бұрын
Would be interesting to see an alarm or text notification linked to the water level. Thanks for sharing!
@oliversayani
@oliversayani 3 жыл бұрын
How?
@oliversayani
@oliversayani 3 жыл бұрын
This is exactly what I’m tryna figure out
@joeminpa6705
@joeminpa6705 2 жыл бұрын
Thank you for this video. I don't have a lot of time to figure this stuff out myself right now. (maybe when I retire :)) Have you ever done a weather station with Arduino? I didn't notice one in your videos.
@_tim
@_tim Жыл бұрын
This looks like it will do exactly what I want. I have a pool and the 'standard' water level is quite high in relation to the capping, so when it rains heavily I have to be alert to go out and empty water before it overflows. I'm thinking I'll build this and mount it inside the skimmer box so it will alert me when the water gets too high with an alarm buzz - and potentially find a way for it to send an alert to my phone.
@shadrackokoeprinceadjequay2363
@shadrackokoeprinceadjequay2363 3 жыл бұрын
is the sensor suitable to be used in a sea water? if yes, can a digitizer be used to convert the analog signal to a digital sensor
@gallonthewater9980
@gallonthewater9980 3 жыл бұрын
can you explain for the condition empty, low, medium, high calculation
@TV4Fun2
@TV4Fun2 4 жыл бұрын
Tried this sensor, it worked about exactly as well as I expected it to. It's heavily dependent on the ion content of the water, which depending on your setup, may be something highly variable. Also, as soon as you get it wet, it almost immediately goes up to full output and stays there until it completely dries off. So unless you're constantly there to wipe off the sensor, this isn't going to be very useful for a lot of projects.
@TheGeekPub
@TheGeekPub 4 жыл бұрын
It's highly dependent on the mineral content in your water.
@ratamatum
@ratamatum 3 жыл бұрын
I've tried to create a device to empty a container collecting water from air conditioning using this exact sensor. It did not work as expected for the reason you've mentioned. As soon as it gets wet, the value on the analog input goes almost all the way up. If there is any water residue on the sensor it remains that way. So If you just want to know when the sensor gets wet and you're not particularly interested when it dries off, I guess it's okay. But for any other applications I'd recommend using some sort of liquid level sensor with float. Aaaaand I'm having doubts about its long term reliability due to metal threads in contact with water...
@ivgnes
@ivgnes 2 жыл бұрын
Simple trick to solve this is to put tape over all the contacts and just cut out 2 strips at opposite ends. The point is to stop water drops from sitting between contacts. Otherwise its a good module for the price.
@danielhower6274
@danielhower6274 3 жыл бұрын
I am new to Arduino and this. I have seen people mention corrosion, is this something that occurs fast or over a long period? Also for determining the values for the sensor to set for low and high, where do we read that at?
@syafikanabila1930
@syafikanabila1930 2 жыл бұрын
Hi ! can I know the unit for the analogue value output from this sensor?
@c28ccd0e
@c28ccd0e 2 ай бұрын
Nice tutorial
@paneesh
@paneesh 3 жыл бұрын
This is great. Is it safe if the 5V pin is constantly exposed to moisture/water? Also, how do I know if the water gets below a certain level for deeper water tanks? Thanks for this video :D
@TheUnofficialMaker
@TheUnofficialMaker Жыл бұрын
use a pressure sensor
@ProSubArmy
@ProSubArmy 3 жыл бұрын
Hey, can i use it with multiple module at the same time?
@InfoTekFUN
@InfoTekFUN 4 жыл бұрын
Good work
@alimz4891
@alimz4891 3 жыл бұрын
Hi, These sensors oxidize shortly after use , Is there a way to solve this problem?
@thep.master1318
@thep.master1318 4 жыл бұрын
Hey bro this is awesome but i have a request. Can you draw what the circuit would look like?
@firewater365
@firewater365 2 жыл бұрын
How would I add a pump to this sensor that will start if level gets to a certain low level?
@srgplay4526
@srgplay4526 Жыл бұрын
thanks
@losttwo1
@losttwo1 5 жыл бұрын
Interesting project, but why the cut scene of a couple of frames two people standing in the field at 1:35?
@TheGeekPub
@TheGeekPub 5 жыл бұрын
LOL. Final cut pro bug. I must have clicked something accidentally before uploading.
@azjude249
@azjude249 2 жыл бұрын
How to do the wiring and programming if it connected with solenoid valve. The low level will turn the valve no and the high level will turn the valve nc
@daveledonio5793
@daveledonio5793 4 жыл бұрын
can this actually works in big tanks, where you widen the low, medium high levels of water?
@TheGeekPub
@TheGeekPub 4 жыл бұрын
Absolutely. You'd need to design your own on a PCB.
@benardjamesmatu4167
@benardjamesmatu4167 Жыл бұрын
can it be used for river water level monitoring
@lulubasset1
@lulubasset1 5 жыл бұрын
Hello, nice video. I would like to know if there are longer sensors (I need a 15cm one) Thanks !
@TheGeekPub
@TheGeekPub 5 жыл бұрын
Not that I am aware of, but quite honestly I don't think it would be very hard to modify this sensor or just make your own.
@lulubasset1
@lulubasset1 5 жыл бұрын
@@TheGeekPub Yeah I think I'm gonna go with my own. Thank you!
@joshuaxmingyu
@joshuaxmingyu 4 жыл бұрын
great tut, if possible can I modify it to make this in a large water tank thanks
@superidol4670
@superidol4670 2 ай бұрын
You can do that by putting the sensor at the edge f the water tank Bro
@SoloArdo
@SoloArdo 4 жыл бұрын
Hey, I have a problem. Why is my sensor corroding and producing this light blue material?
@kurtlesterramirez3542
@kurtlesterramirez3542 3 жыл бұрын
i wanted to create a device that detects the fish feed level and inform it via SMS, how things do i need to procure? thanks, good video btw
@debjyoth
@debjyoth 4 жыл бұрын
can you get a bigger water sensor than what shown in the video, bro
@phidiasmendez584
@phidiasmendez584 3 жыл бұрын
Nice video! However, I do have a dumb question Does this effect the quality of the water overtime if you do it for a long time? Would it also be dangerous for a person to drink that water while the sensor is in it?
@xmine08
@xmine08 2 жыл бұрын
Yeah, it'll cause corrosion and release material into the water. No idea if it's dangerous, but it's not something I'd want in my drinking water or in a plant I'm going to eat.
@monarulislammithu7818
@monarulislammithu7818 4 жыл бұрын
what is the measuring unit with water level sensor???
@davidwayneprins
@davidwayneprins 5 жыл бұрын
Would be a cool thing for use with aquariums. Knowledgable remove and replace some of their tank's water at regular intervals (for me, it's 25% every week). During the time that the water level is low, I switch off the power strip for the heater and filters to avoid damaging them. Imagine if the switch was completely automated; from your design one just would need to add a 110 volt relay and probably a shield board plus of course tweak the code.
@TheGeekPub
@TheGeekPub 5 жыл бұрын
Absolutely! Great idea!
@johnlabbate4005
@johnlabbate4005 4 жыл бұрын
Does anyone know this detectors mass?
@ahmadmuhaimin2852
@ahmadmuhaimin2852 3 жыл бұрын
Is there a large type of this sensor?
@puiyeesoo9748
@puiyeesoo9748 4 жыл бұрын
If the code none problem, why the lcd didn't print out any word?
@mandarkulkarni9999
@mandarkulkarni9999 4 жыл бұрын
Hey does this detect any liquid
@AlbertoKrishnaWinningKusuma
@AlbertoKrishnaWinningKusuma 4 жыл бұрын
Could it be connected to any relay to turn on a pump?
@watersoundsmx
@watersoundsmx 4 жыл бұрын
yes but this sensor no work fine its best a magnetic sensor
@cpabrego
@cpabrego 5 жыл бұрын
Cool stuff, can you update the linked to your sensor looks like a copy and paste error you've got duplicates
@TheGeekPub
@TheGeekPub 5 жыл бұрын
Whoops! Sorry about that. Done. Here's it is: amzn.to/2HfrlLC
@goldysingh9342
@goldysingh9342 4 жыл бұрын
can i ise this with diesel for fuel level ?
@TheGeekPub
@TheGeekPub 4 жыл бұрын
Probably. You'd have to test it. It most definitely would have a different resistance value.
@Wordsnwood
@Wordsnwood 5 жыл бұрын
Wow, Mike, We're getting a FLOOD of videos from you suddenly... Srsly, you're confusing the youtube algorithm doing things like this. Pace yourself, man!
@bylrmehdiyev2409
@bylrmehdiyev2409 4 жыл бұрын
What is the correct brand name of the sensor?
@puiyeesoo9748
@puiyeesoo9748 4 жыл бұрын
When I try the water level sensor serial, the serial just come out "water level : empty" "water level :low" May I know what the problem
@khateebanwer7466
@khateebanwer7466 3 жыл бұрын
maybe try without the lcd at first just to check what values it gives out than adjust your contraints according to that.
@apurvakedia1023
@apurvakedia1023 3 жыл бұрын
hi, i want to measure the height of the liquid inside a small container, to determine its volume. which sensor is suitable for that? IR proximity?
@alexandervanhell7427
@alexandervanhell7427 3 жыл бұрын
I think a ultrasonic distance sensor might be a suitable option. I can try it tomorrow afternoon, I have some laying around at home. If you're interested let me know!
@apurvakedia1023
@apurvakedia1023 3 жыл бұрын
@@alexandervanhell7427 I would really appreciate if you could do that thank you very much
@daginoo
@daginoo Жыл бұрын
how did u guys finish it? I am currently doing this and dont know too which one should I use
@mainulshazid5087
@mainulshazid5087 3 жыл бұрын
how do i implement these same items in Proteus???????? please ans
@993masterman
@993masterman 4 жыл бұрын
does it work if i dip it in oil ? because im making a project to gather oil in a container...
@TheGeekPub
@TheGeekPub 4 жыл бұрын
Probably. But the resistance values will be higher so you'd need to figure out the new scale.
@mohamadizzat7580
@mohamadizzat7580 4 жыл бұрын
If i don't want to use the 10k potentiometer, so where to connect the VO at lcd display
@idksoiputthis2332
@idksoiputthis2332 4 жыл бұрын
i think the potentiomenter is a requirement. Without it, you can not adjust the contrast, and the characters on the display may not even be visible if the contrast is not perfect. But i could be wrong, maybe its possible without it? but i doubt it
@adapterscapter285
@adapterscapter285 2 жыл бұрын
Are different sizes of the sensor
@MrSesnu
@MrSesnu 4 жыл бұрын
when I tried it, it just said Water Level High without change, can somebody help me?
@tahherjuzer4079
@tahherjuzer4079 3 жыл бұрын
@GC Grdn hey did you get a fix?
@tahherjuzer4079
@tahherjuzer4079 3 жыл бұрын
hey did you get a fix?
@mike_x48954
@mike_x48954 5 жыл бұрын
I didn't know those water sensors produced an analog output, I always thought it was a digital HIGH or LOW.
@imperialrecker7111
@imperialrecker7111 3 жыл бұрын
lol almost all sensors output analog. digital output is basically useless in sensors.
@soha150
@soha150 4 жыл бұрын
how to apply on giant tank ?
@anthony6841
@anthony6841 3 жыл бұрын
Maybe you could place multiple water sensors on different heights of your tank
@soha150
@soha150 3 жыл бұрын
Anthony Arseneau Good idea
@serranoaaronjamesv.6436
@serranoaaronjamesv.6436 2 жыл бұрын
ty
@serranoaaronjamesv.6436
@serranoaaronjamesv.6436 2 жыл бұрын
yow
@TheGeekPub
@TheGeekPub Жыл бұрын
Wouldn't it be yAw?
@99theanonymous
@99theanonymous 3 жыл бұрын
Will it oxidase?
@hilmiazli3949
@hilmiazli3949 4 жыл бұрын
why when i run with the coding, the lcs is still blank??..no word is appeared?
@vs.7201
@vs.7201 4 жыл бұрын
mohamad hilmi same happen with me bro
@mcblown9695
@mcblown9695 2 жыл бұрын
I am not able to under stand the codes in pc
@congratulations528
@congratulations528 4 жыл бұрын
How to solve Stick up water?
@TJ-vy8qk
@TJ-vy8qk 4 жыл бұрын
What it the whole sensor is soaked? will it fry the arduino?
@TheGeekPub
@TheGeekPub 4 жыл бұрын
No, but it might fry the components on the sensor.
@rexwisteria8620
@rexwisteria8620 4 жыл бұрын
What would the codes be if its a LCD IC2
@ruhanh3843
@ruhanh3843 2 жыл бұрын
It's been 2 year's since that mf made video and Haven't being useful
@tzb05
@tzb05 2 жыл бұрын
What is the Name and Model Number for this sensor, so I can search it and buy it
@muhammadwafiq9781
@muhammadwafiq9781 5 жыл бұрын
Can i have your schematic circuit of these project
@TheGeekPub
@TheGeekPub 5 жыл бұрын
They're all on my website.
@mkfabrication606
@mkfabrication606 4 жыл бұрын
Would this sensor work with other liquids besides water?
@TheGeekPub
@TheGeekPub 4 жыл бұрын
Most likely, but would need to be calibrated.
@mkfabrication606
@mkfabrication606 4 жыл бұрын
TheGeekPub I’m trying to make a setup for my resin printer to know the level of resin still in the machine.
@superidol4670
@superidol4670 2 ай бұрын
Can this work without any programming?
@c28ccd0e
@c28ccd0e 2 ай бұрын
NOPE you need to write the program to work. Based on the values you read from the water sensor you decide what to do. As in this example is just reporting water lvl with Text only. You can go step further with this example and like limit the daily usage of water like 10litter per day/hour...
@Maheshkangude
@Maheshkangude 4 жыл бұрын
i want sensor for water level in 50cm deep tank, how to use this sensor ?
@gf6368
@gf6368 4 жыл бұрын
you need longer sensor
@maciejdudkowski819
@maciejdudkowski819 3 жыл бұрын
This is message for everyone who gets only "MEDIUM" as the highest value. Try to use "val > 220" as high water level. This is because analog can give you value 0 - 255 (1023 / 4).
@mcblown9695
@mcblown9695 2 жыл бұрын
On which app we have to type codes
@cloverdnibber9905
@cloverdnibber9905 2 жыл бұрын
Arduino app
@heartlessalice5801
@heartlessalice5801 5 жыл бұрын
There is a problem with your code, a bunch of if/else if isn't really efficient... The true way to do it is to create an array of string with the message to print for each value, and then you just need one line : lcd.println(my_stupid_array[resval]); ^^ More seriously, your video was really nice :)
@TheGeekPub
@TheGeekPub 5 жыл бұрын
You're right. All of my sample code is written in such a way to be easy to understand for beginners. Not be efficient. Most of my project code files could be reduced by 75%. I also never include error checking for the same reasons. I don't want to add unnecessary bits that beginners don't need to know yet.
@PezhvakIMV
@PezhvakIMV 2 жыл бұрын
Niceee
@foxhallww311
@foxhallww311 5 жыл бұрын
Skynet sir......😂
@entertainmentchannel1136
@entertainmentchannel1136 5 жыл бұрын
Its not working. I am not using a potentiometer. So i am not attatching any pin at that place.
@tobyminerBTC
@tobyminerBTC 5 жыл бұрын
"My car is missing the steering wheel! It won'g turn! Help!" You can't make this stuff up folks.
@lucidvibes8133
@lucidvibes8133 3 жыл бұрын
Hey where can I get the code?
@austinswrong
@austinswrong 3 жыл бұрын
go to where it says detailed article and writing here. in the description and then scroll down a bit and its all right there
@lucidvibes8133
@lucidvibes8133 3 жыл бұрын
@@austinswrong Ok thanks!
@mihajanstrehovec5114
@mihajanstrehovec5114 3 жыл бұрын
1:35???
@VideoGuy9461
@VideoGuy9461 3 жыл бұрын
What's up with the creepy single frame at 1:35? Looks like a silhouette of some people. The music is creepy too.
@TheGeekPub
@TheGeekPub 3 жыл бұрын
That's the Final Cut default frame. I probably didn't but those two clips all the way together.G
@VideoGuy9461
@VideoGuy9461 3 жыл бұрын
@@TheGeekPub Darn I was hoping I found an Easter egg.
@ruhanh3843
@ruhanh3843 2 жыл бұрын
Code?
@TheGeekPub
@TheGeekPub 2 жыл бұрын
Links in description.
@smarty4jenny
@smarty4jenny 2 жыл бұрын
Hidden picture in this video 1:35ish. It flashes on screen a outline of a man and woman.
@TheGeekPub
@TheGeekPub 2 жыл бұрын
Yes. That's a missing frame in the editor. Just a mistake in editing.
@thaernejem7317
@thaernejem7317 5 жыл бұрын
Hi .. what sensor would be used to check water level in a water tank?
@brad3378
@brad3378 3 жыл бұрын
I would go with an ultrasonic sensor.
Arduino Tutorial#7: Water Level Indicator With Buzzer
4:36
Camille D
Рет қаралды 31 М.
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 2,8 МЛН
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 3,7 МЛН
Wireless Water Level Indicator using LoRa and ESP32 | TTGO LoRa32
12:08
Electronic Clinic
Рет қаралды 42 М.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,3 МЛН
Arduino Water Sensor Set Up and Programming
7:47
Robotic Nation
Рет қаралды 102 М.
Cocktail Table Arcade Part 2  - Making it Better!
12:46
TheGeekPub
Рет қаралды 35 М.
Tour of my Home Network (Updated March 2020)
13:39
TheGeekPub
Рет қаралды 234 М.
PETSCII Robots Arcade Cabinet Build
26:23
TheGeekPub
Рет қаралды 218 М.
WATER LEVEL SENSOR INTERFACING WITH ARDUINO.
6:51
MYTECTUTOR
Рет қаралды 19 М.
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 507 М.
Ultimate Electronics Station Build
23:04
TheGeekPub
Рет қаралды 828 М.
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26