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 3709 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
  • fmilburn
    fmilburn over 3 years ago

    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 hand.  A hand drill works great for this.

    image 

    Now coil it around something like a pencil to the right length so that it will all fit into the reservoir.

    image

    If you have an LCR meter it can be tested before setting up the Arduino.  Here the capacitance is shown to be 61pF with the sensor out of the water.

    image

    Sticking the sensor into the water results in a measured capacitance of 123 pF.  Note that the end of the sensor needs to either be insulated or turned up so as to be kept dry as shown here.

    image

    Recall that in an RC Low Pass Filter the time constant is given by Tc = R x C.  Using that relationship and the ability of the Arduino to measure voltage and time a simple Capacitance Meter can be created as described here: https://www.arduino.cc/en/Tutorial/Foundations/CapacitanceMeter

    The Arduino code in the link above was modified by substituting micros() for millis() in the time measurement and the use of a 10M Ohm resistor since the DIY sensor has small capacitance and charges up fast.  The output to the serial monitor is shown below as the coil is inserted and removed from the water.

    image

    I didn't change the print statement so it says nanoFarads instead of picoFarads.  Note that it varies from 134 to 224 dry to wet which is more than what the LCR meter showed.  But it shows a clear and easily measured difference between dry and wet that could be calibrated.  Here it is plotted.

    image

    For those that require video, here you go:

    1321.IMG_7301.MOV

    This is the first thing that came to mind using the criteria that Andrew set out.  I've not tested repeatability or drift.  Another thing that might be done is just measure the temperature out as compared to the environment.  If it is cooler then presumably there is water evaporating and cooling the air if humidity is low enough. 

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew J
    Andrew J over 3 years ago in reply to fmilburn

    Nice one Frank.  Even as I wrote my last post I started wondering if the water would make a useful dielectric and if so could we take a capacitance measurement.  Clever.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Andrew J
    Andrew J over 3 years ago in reply to fmilburn

    Nice one Frank.  Even as I wrote my last post I started wondering if the water would make a useful dielectric and if so could we take a capacitance measurement.  Clever.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • fmilburn
    fmilburn over 3 years ago in reply to Andrew J

    That is a nice succinct description of how it works 

    • 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