Arduino Water Level Sensor Tutorial

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 129

  • @xmine08
    @xmine08 3 года назад +10

    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.

  • @Wordsnwood
    @Wordsnwood 5 лет назад +8

    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!

  • @cinejera
    @cinejera 5 лет назад +15

    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 года назад +1

      How? You can only dip it in a few inches.

    • @VMTDesign
      @VMTDesign 3 года назад +2

      @@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!

  • @TV4Fun2
    @TV4Fun2 4 года назад +24

    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 года назад +1

      It's highly dependent on the mineral content in your water.

    • @ratamatum
      @ratamatum 4 года назад +1

      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 года назад +3

      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.

  • @paneesh
    @paneesh 3 года назад +5

    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

  • @thaernejem7317
    @thaernejem7317 5 лет назад +8

    Hi .. what sensor would be used to check water level in a water tank?

  • @thep.master1318
    @thep.master1318 4 года назад +5

    Hey how would you add a water pump to this circuit and to the code? Thank you

  • @_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.

  • @alimz4891
    @alimz4891 4 года назад +2

    Hi, These sensors oxidize shortly after use , Is there a way to solve this problem?

  • @losttwo1
    @losttwo1 5 лет назад +3

    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.

  • @chiparooo
    @chiparooo 5 лет назад +14

    Would be interesting to see an alarm or text notification linked to the water level. Thanks for sharing!

  • @MrSesnu
    @MrSesnu 4 года назад +4

    when I tried it, it just said Water Level High without change, can somebody help me?

  • @Soho9111
    @Soho9111 4 года назад +5

    how to apply on giant tank ?

    • @anthony6841
      @anthony6841 4 года назад +1

      Maybe you could place multiple water sensors on different heights of your tank

    • @Soho9111
      @Soho9111 4 года назад +2

      Anthony Arseneau
      Good idea

  • @mike_x48954
    @mike_x48954 5 лет назад +10

    I didn't know those water sensors produced an analog output, I always thought it was a digital HIGH or LOW.

    • @imperialrecker7111
      @imperialrecker7111 4 года назад +2

      lol almost all sensors output analog. digital output is basically useless in sensors.

  • @phidiasmendez584
    @phidiasmendez584 3 года назад +1

    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 3 года назад

      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.

  • @azjude249
    @azjude249 3 года назад

    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

  • @firewater365
    @firewater365 2 года назад

    How would I add a pump to this sensor that will start if level gets to a certain low level?

  • @mcblown9695
    @mcblown9695 3 года назад +1

    I am not able to under stand the codes in pc

  • @bylrmehdiyev2409
    @bylrmehdiyev2409 4 года назад

    What is the correct brand name of the sensor?

  • @syafikanabila1930
    @syafikanabila1930 3 года назад

    Hi ! can I know the unit for the analogue value output from this sensor?

  • @99theanonymous
    @99theanonymous 3 года назад

    Will it oxidase?

  • @joshuaxmingyu
    @joshuaxmingyu 5 лет назад

    great tut, if possible can I modify it to make this in a large water tank thanks

    • @superidol4670
      @superidol4670 5 месяцев назад

      You can do that by putting the sensor at the edge f the water tank Bro

  • @serranoaaronjamesv.6436
    @serranoaaronjamesv.6436 2 года назад +1

    ty

  • @goldysingh9342
    @goldysingh9342 4 года назад +2

    can i ise this with diesel for fuel level ?

    • @TheGeekPub
      @TheGeekPub  4 года назад +2

      Probably. You'd have to test it. It most definitely would have a different resistance value.

  • @hilmiazli3949
    @hilmiazli3949 4 года назад +1

    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

  • @thep.master1318
    @thep.master1318 4 года назад +1

    Hey bro this is awesome but i have a request. Can you draw what the circuit would look like?

  • @gallonthewater9980
    @gallonthewater9980 4 года назад +1

    can you explain for the condition empty, low, medium, high calculation

  • @debjyoth
    @debjyoth 4 года назад +1

    can you get a bigger water sensor than what shown in the video, bro

  • @shadrackokoeprinceadjequay2363
    @shadrackokoeprinceadjequay2363 3 года назад +1

    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

  • @puiyeesoo9748
    @puiyeesoo9748 4 года назад

    If the code none problem, why the lcd didn't print out any word?

  • @daveledonio5793
    @daveledonio5793 5 лет назад +2

    can this actually works in big tanks, where you widen the low, medium high levels of water?

    • @TheGeekPub
      @TheGeekPub  5 лет назад +4

      Absolutely. You'd need to design your own on a PCB.

  • @tzb05
    @tzb05 2 года назад

    What is the Name and Model Number for this sensor, so I can search it and buy it

  • @durlabhbiswas860
    @durlabhbiswas860 4 года назад +1

    I wanted to ask that can we use map function to keep check on value input coming from sensor?

  • @syazmanlyman
    @syazmanlyman 4 года назад +1

    Hey im just wondering if this would work if i would want to sense spillage on the floor

  • @johnlabbate4005
    @johnlabbate4005 4 года назад +1

    Does anyone know this detectors mass?

  • @rouisaek
    @rouisaek 5 месяцев назад

    Nice tutorial

  • @mandarkulkarni9999
    @mandarkulkarni9999 4 года назад +1

    Hey does this detect any liquid

  • @maciejdudkowski819
    @maciejdudkowski819 3 года назад +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).

  • @TheStainedMen
    @TheStainedMen 4 года назад +1

    thank you this video was vert ahffasdful

  • @cpabrego
    @cpabrego 5 лет назад +1

    Cool stuff, can you update the linked to your sensor looks like a copy and paste error you've got duplicates

    • @TheGeekPub
      @TheGeekPub  5 лет назад +1

      Whoops! Sorry about that. Done. Here's it is: amzn.to/2HfrlLC

  • @mcblown9695
    @mcblown9695 3 года назад +1

    On which app we have to type codes

  • @puiyeesoo9748
    @puiyeesoo9748 4 года назад +1

    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 4 года назад

      maybe try without the lcd at first just to check what values it gives out than adjust your contraints according to that.

  • @993masterman
    @993masterman 5 лет назад

    does it work if i dip it in oil ? because im making a project to gather oil in a container...

    • @TheGeekPub
      @TheGeekPub  5 лет назад

      Probably. But the resistance values will be higher so you'd need to figure out the new scale.

  • @mainulshazid5087
    @mainulshazid5087 3 года назад

    how do i implement these same items in Proteus????????
    please ans

  • @SoloArdo
    @SoloArdo 4 года назад

    Hey, I have a problem. Why is my sensor corroding and producing this light blue material?

  • @AlbertoKrishnaWinningKusuma
    @AlbertoKrishnaWinningKusuma 4 года назад +1

    Could it be connected to any relay to turn on a pump?

    • @watersoundsmx
      @watersoundsmx 4 года назад +1

      yes but this sensor no work fine its best a magnetic sensor

  • @ProSubArmy
    @ProSubArmy 3 года назад

    Hey, can i use it with multiple module at the same time?

  • @superidol4670
    @superidol4670 6 месяцев назад

    Can this work without any programming?

    • @rouisaek
      @rouisaek 5 месяцев назад

      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...

  • @benardjamesmatu4167
    @benardjamesmatu4167 Год назад

    can it be used for river water level monitoring

  • @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.

  • @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

  • @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?

  • @lulubasset1
    @lulubasset1 5 лет назад +1

    Hello, nice video.
    I would like to know if there are longer sensors (I need a 15cm one)
    Thanks !

    • @TheGeekPub
      @TheGeekPub  5 лет назад +2

      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 лет назад +1

      @@TheGeekPub Yeah I think I'm gonna go with my own. Thank you!

  • @adapterscapter285
    @adapterscapter285 3 года назад

    Are different sizes of the sensor

  • @InfoTekFUN
    @InfoTekFUN 4 года назад

    Good work

  • @monarulislammithu7818
    @monarulislammithu7818 4 года назад

    what is the measuring unit with water level sensor???

  • @srgplay4526
    @srgplay4526 Год назад

    thanks

  • @congratulations528
    @congratulations528 4 года назад

    How to solve Stick up water?

  • @ahmadmuhaimin2852
    @ahmadmuhaimin2852 3 года назад

    Is there a large type of this sensor?

  • @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 лет назад +1

      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.

  • @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

  • @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.

  • @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

  • @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.

  • @mihajanstrehovec5114
    @mihajanstrehovec5114 3 года назад +1

    1:35???

  • @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.

  • @TJ-vy8qk
    @TJ-vy8qk 5 лет назад

    What it the whole sensor is soaked? will it fry the arduino?

    • @TheGeekPub
      @TheGeekPub  5 лет назад

      No, but it might fry the components on the sensor.

  • @Maheshkangude
    @Maheshkangude 5 лет назад

    i want sensor for water level in 50cm deep tank, how to use this sensor ?

    • @gf6368
      @gf6368 5 лет назад

      you need longer sensor

  • @muhammadwafiq9781
    @muhammadwafiq9781 5 лет назад

    Can i have your schematic circuit of these project

    • @TheGeekPub
      @TheGeekPub  5 лет назад

      They're all on my website.

  • @apurvakedia1023
    @apurvakedia1023 4 года назад

    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 4 года назад

      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 4 года назад

      @@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

  • @foxhallww311
    @foxhallww311 5 лет назад

    Skynet sir......😂

  • @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.

  • @PezhvakIMV
    @PezhvakIMV 2 года назад

    Niceee

  • @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 года назад +1

      @@austinswrong Ok thanks!

  • @smarty4jenny
    @smarty4jenny 3 года назад

    Hidden picture in this video 1:35ish. It flashes on screen a outline of a man and woman.

    • @TheGeekPub
      @TheGeekPub  3 года назад

      Yes. That's a missing frame in the editor. Just a mistake in editing.

  • @ruhanh3843
    @ruhanh3843 2 года назад

    Code?