element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum I am not a smart person, but I do like performing a bit of science
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 21 replies
  • Subscribers 388 subscribers
  • Views 3704 views
  • Users 0 members are here
  • humidifier
  • water measurement
  • arduino
Related

I am not a smart person, but I do like performing a bit of science

cstanton
cstanton over 3 years ago

It's too warm in the United Kingdom, so I figured I'd invest in a fan/humidifier combo. 

image

The downside to this hardware, is that it will burn itself out. There's nothing detecting when the water reservoir doesn't have water in it. It's convenient enough, 3 modes to the fan, 3 levels of humidifier, battery, and USB rechargeable. 

So I figured, why not try to detect how much water is left in it with the hardware I have available? I couldn't wait for looking up too much detail or ordering parts from an online store.

I've no idea what I'm doing, so I figured, let's stick a couple of paperclips in there and connect it to an arduino uno.

image

So I read a bunch of values, do some buffering with an array, average them out. I get a very rough sine wave into the analog pin.

And then I notice the pattern, the water's low, the values are higher, the water's high, the values are lower. Setup some ranges, great.

Then I realise what I'm measuring when I turn off the humidifier, the paperclips are picking up the electrical noise from the humidifiers in the water

image


Not quite how I expected to measure if there's water left, but it appears if it's working harder, it's easier to pick up the noise, water isn't the best electrical conductor after all.

Still, I'm sure I should find a better method, but it is a small reservoir, I considered 3D printing something to be able to screw a bottle in to expand it a bit more though.

What do you think?

  • Sign in to reply
  • Cancel

Top Replies

  • fmilburn
    fmilburn over 3 years ago +6
    I suppose it will take a mechanical engineer to solve this :-) Make a capacitor by twisting about 600mm of 26 AWG insulated wire together for use as the sensor. Or whatever small diameter wire is at…
  • beacon_dave
    beacon_dave over 3 years ago in reply to cstanton +2
    I wouldn't have expected a steam based humidifier to be USB/battery powered. Some of the evaporative ones just blow air through a wicking filter or use ultrasonics or an impeller to create a mist that…
  • skruglewicz
    skruglewicz over 3 years ago +1
    Hi cstanton .. As we say in Boston Massachusetts USA, your "Wicked Smart" and your "Wicked PISSA" too .... Seriously I would have never thought of that. I found an easier way to measure water level…
Parents
  • skruglewicz
    skruglewicz over 3 years ago

    Hi cstanton..

    As we say in Boston Massachusetts USA, your "Wicked Smart" and your "Wicked PISSA" tooJoy....  Seriously I would have never thought of that.  

    I found an easier way to measure water level by using a groove water sensor and a Arduino MKR WAN 1300

    I used the sensor for a design challenge I did here on the community a few months back.image

    The part is

    • Grove - Water Sensor   SKU 101020018 
    • I purchased mine from MOUSER for $2.13 (USD)image
      • Grove - Water Sensor detects the presence of water using exposed PCB traces.
      • The sensor is made up of interlaced traces of Ground and Sensor signals.
      • The sensor traces are weakly pulled up using 1 MΩ resistor.
      • The resistor will pull the sensor trace value high until a drop of water shorts the sensor trace to the ground trace

    You can use the  sensor, the opposite way I did. you can test the sensor to detect no water dry = 1. Hopefully, it will sense the dryness before the unit burns itself out !!!  It does use a groove connector but you should be able to connect a jumpier from one end of the groove connector to the digital pins on the Uno. You then can do a DigitalRead() to check the value as I did

    the CODE is  in MKR_LoRa_Sender_E2.ino Which you can view in my comment under my blog in the Design challenge series at BLOG#5 Testing Part 2 Test#2

    Here a snippet where I check if there is water.

    //GET THE WATER DETECT VALUE  WET/DRY 0/1
    String GetWaterStatus(){
      String stat;
      int val;
      val = digitalRead(WATER_SENSOR);
      
      if (val == 0){
        stat = "WET";
      }
      if (val == 1){
        stat = "DRY";
      }
    //  if ((val != 0) || (val != 1) ){
    //    stat = "Water Sensor ERROR";
    //  }  
      return stat;
    }

    Good Luck with your Fan/humidifier.
    Cheers
    Steve K skruglewicz
     
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • skruglewicz
    skruglewicz over 3 years ago

    Hi cstanton..

    As we say in Boston Massachusetts USA, your "Wicked Smart" and your "Wicked PISSA" tooJoy....  Seriously I would have never thought of that.  

    I found an easier way to measure water level by using a groove water sensor and a Arduino MKR WAN 1300

    I used the sensor for a design challenge I did here on the community a few months back.image

    The part is

    • Grove - Water Sensor   SKU 101020018 
    • I purchased mine from MOUSER for $2.13 (USD)image
      • Grove - Water Sensor detects the presence of water using exposed PCB traces.
      • The sensor is made up of interlaced traces of Ground and Sensor signals.
      • The sensor traces are weakly pulled up using 1 MΩ resistor.
      • The resistor will pull the sensor trace value high until a drop of water shorts the sensor trace to the ground trace

    You can use the  sensor, the opposite way I did. you can test the sensor to detect no water dry = 1. Hopefully, it will sense the dryness before the unit burns itself out !!!  It does use a groove connector but you should be able to connect a jumpier from one end of the groove connector to the digital pins on the Uno. You then can do a DigitalRead() to check the value as I did

    the CODE is  in MKR_LoRa_Sender_E2.ino Which you can view in my comment under my blog in the Design challenge series at BLOG#5 Testing Part 2 Test#2

    Here a snippet where I check if there is water.

    //GET THE WATER DETECT VALUE  WET/DRY 0/1
    String GetWaterStatus(){
      String stat;
      int val;
      val = digitalRead(WATER_SENSOR);
      
      if (val == 0){
        stat = "WET";
      }
      if (val == 1){
        stat = "DRY";
      }
    //  if ((val != 0) || (val != 1) ){
    //    stat = "Water Sensor ERROR";
    //  }  
      return stat;
    }

    Good Luck with your Fan/humidifier.
    Cheers
    Steve K skruglewicz
     
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • cstanton
    cstanton over 3 years ago in reply to skruglewicz

    Thanks, this looks suitable - I was concerned about the contacts corroding with the water / over time though, have you experienced that at all?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to cstanton

    There is a capacitive version which is corrosion resistant

    https://wiki.seeedstudio.com/Grove-Water-Level-Sensor/ 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • cstanton
    cstanton over 3 years ago in reply to beacon_dave

    Dang, no stock there. Must keep searching.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube