Humidity Control with an Arduino

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

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

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

    US people should start using celcius. Nice video though👍 the code explanation was really good!

  • @jochenfrank8915
    @jochenfrank8915 8 лет назад +2

    I'm really glad I was going back through your old videos and found this one. I'm familiar with Arduino and have been looking for a useful project around the house. I need to buy a humidifier and get to work. Thanks for being so clear. It's fairly simple code and I appreciate the inspiration.
    Great channel, keep up the great content!

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

    i'm late to the party as usual, but finding this has made my day. i just bought an Uno to do this project! Thanks Matt!

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

    is it possible to connect a arduino with a humidifier and IR controller? I want the ac to turn on by itself and auto turn on the humidifier depending on the rooms humidity. And also, is it possible to remotely control it?

  • @sadangjohnrayb.4099
    @sadangjohnrayb.4099 2 года назад +1

    Hello, I know its been a while. But can you share the schematics on this project? Thanks

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

    It's a superb video which I was look for all these days. Kindly post the code in a zip format so that I can try at home during these "corona" isolation period. Thanks in advance.

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

    Nice and good explanation of how it works thanks I think it will be easy to make but I will add an adjustment to the setpoint and change the display to a small led display

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

    thank you very much sir, I created code for temperature also, it worked like a charm.

  • @brukernavnfettsjit
    @brukernavnfettsjit 8 лет назад

    This gives me so many ideas! Thanks for showing. Your explanation is very clear and thorough. It almost looks simple :) I just found your channel, and I like pretty much all your topics so I subscribed.

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

    We need to see it in action :)
    You did a great job with this video. I’m trying to get into dev work and I think hobbies that include libraries are good practice. I’ve always wanted an automated humidifier. You should def do a follow up vid on how to make this into a real application like how you would waterproof the case while keeping the sensor exposed.
    It is kinda funny that the difference between a ten dollar humidifier and an automated eighty dollar led one basically comes down to the humidifier having software (a library) because we all know the board and sensor and led are really cheap.

  • @12_fahrulabdulaziz91
    @12_fahrulabdulaziz91 7 месяцев назад

    can you share the specs of the humidifier? and are you connected with 220v?

  • @11brandonminer
    @11brandonminer 5 лет назад

    Clear and articulate tutorials. Love the channel!

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

    What is the best water proof humidity and temperature sensor use in mushroom room?

  • @DonnysRealm
    @DonnysRealm 8 лет назад

    Great video. Excellent production value as always and in-depth.

  • @electronetiq
    @electronetiq 7 лет назад

    hello
    I want to make alarm with DHT22 if the value eq. #Example: 25 for buth H&T
    please help me how can I do it please >> thanke you

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

    Interesting and informative video. Subscribed. Thanks for your time.
    Is it possible to use BME280 sensor to achieve the same?
    If yes. Is it possible for you to suggest the changes to be made to the Arduino sketch below?

  • @TheTubejunky
    @TheTubejunky 7 лет назад

    Very concise information. Very well explained as well. Great video looks like I'm going back to my Arduino lab. Thanks sir!

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

    i got interested in the arduino i spent over £500 gbp on equipment different shields ,sensors, tft sreens and i cant get owt to work

  • @florinbargaoanu5556
    @florinbargaoanu5556 7 лет назад

    Very interesting video,but what need to be done in order to set up the humidity tresholds outside the code,in such way that will never depend on a computer.thanks

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

    Hey Matt! I live in a ~90% humidity area. Im looking for a de humidifier arduino projects. Any info? Thanks!

  • @johnzucca81
    @johnzucca81 8 лет назад

    Thank you so much!!You are an awesome teacher and i appreciate it. i am a beginner hope i could learn more from you:)

  • @arem86
    @arem86 7 лет назад

    Hey Matt, do you have a fritzing drawing or wiring diagram of how you're hooked up? I'd like to try something similar and would love to use this as a starting point. Thanks.

  • @wannabewoodsmith4217
    @wannabewoodsmith4217 8 лет назад

    I will NOT try this at home ....but thanks for the sharing of info !!! I always enjoy your videos
    now back to watching .....

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

      That is why I goto my neighbors house to do these types of things.😁

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

    Hai sir Matt I'm a little bit confuse and I'm worried because this is our research project automatic room humidifier and de humidifier controller using arduino uno.

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

      With LCD. Can I ask you how may male to male and male to female jumper wire do I need. Thanks !!

  • @Farrukh.R
    @Farrukh.R 6 лет назад +1

    Hi Matt. Can you please explain how you wired the rely with the socket and plug. Thank you.

    • @MattHeere
      @MattHeere  6 лет назад +1

      The relay is in series with the hot lead on the outlet. Neutral and ground connect straight from the wall to my outlet.

  • @Ticky66MN
    @Ticky66MN 8 лет назад

    Brilliant! We just bought a humidifier for my daughters room and it just runs until empty too. I blow a fan across wet towels in my office as I work from home up in MN. Brilliant, huh?
    I wouldn't have the time to figure out how to do what you did but I sure enjoy your videos. You didn't happen to see any off the shelf products to do what did you? Thanks Matt.

    • @MattHeere
      @MattHeere  8 лет назад

      +Ticky66MN They exist, but they're designed for reptile enclosures and they tend to be expensive. Your best bet is probably just to get a lamp timer and set the humidifier to run for some part of every hour. With some experimentation you'll be able to dial it in pretty closely - at least until the outdoor conditions change significantly. I still have to solve the run empty problem in my setup. How to measure the water level without altering the water container, and without spending $50, is the conundrum.
      You could also try to work something up using a humidistat designed for your central heating system. They're available at HD/Lowes for around $25. Problem is that they're designed to switch 24 volts AC to drive a small solenoid valve. You'll still need a 24VAC power supply (wall wart will work) and a 24VAC coil relay to control the humidifier.

  • @dblphotography
    @dblphotography 8 лет назад +1

    Matt, excellent explanation of a technical subject. How much affect does the proximity of the DHT have on humidity readings. Seems it is close in your test setup. Now you need to do a ground up video from start to finish showing how the software is loaded onto the Nano and then updated. I can see many projects like these for the home and workshop.

    • @MattHeere
      @MattHeere  8 лет назад

      +David Lankford It depends on the circulation available. Without the heat pump pushing the air around I'd definitely be too close to get a good picture of the whole room. As is, it works out OK because the fan keeps everything fairly well "mixed up". Of course in a critical application you could use multiple DHT sensors and decide in the code how you want to interpret the results. Reptile enclosures are a common example of this. People measure both the "hot" and "cold" side of the enclosure and try to keep a specific gradient more than a specific temperature.
      There are tons of videos out there already on getting started with Arduino development, not to mention some really good tutorials and instructions on Arduino.cc. Bob over at +I Like To Make Stuff just did a series on Arduino as well. I do have a couple more projects in mind though, so I'll try and work some different steps into the mix in the future :)

  • @johnzucca81
    @johnzucca81 8 лет назад

    would it be alright if you shared you code with me please... i am struggling here..

  • @schabanow
    @schabanow 8 лет назад +2

    Hi Matt,
    Thank you for your work! Where can I get your sketch?

    • @schabanow
      @schabanow 8 лет назад

      Matt thanks again! Code has been copied down from the screen, manually, to the NotePad, line by line. Compilation IS DONE! Two liiiitle miswrites of mine were detected only! (proudly) Now's the hardware turn... You're just SUPERB lecturer. Have a nice day!

  • @4funksakes
    @4funksakes 5 лет назад

    Thanks matt

  • @kishorc2870
    @kishorc2870 8 лет назад

    cotton warehouse ues in humility controlled system requirements understanding so please send photography

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

    Thank you - lost 3 hrs to figure out hot to set decimal place for sensor reading, was thinking that was down to how library was written and tried so many:(

  • @johnjackson6340
    @johnjackson6340 6 лет назад

    Any way you could share the code in the description or email it to me

  • @ti4go
    @ti4go 7 лет назад +7

    Can you please share the code?

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

      Just type it XD

    • @MrAbopo
      @MrAbopo 4 года назад +3

      // include the library code:
      #include
      #include
      // initialize the library with the numbers of the interface pins
      LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
      //Globals for DHT sensor
      #define DHTPIN 8 // what pin we're connected to
      #define DHTTYPE DHT22 // DHT 22 (AM302)
      DHT dht (DHTPIN, DHTTYPE);
      //humidity control points
      #define SETPOINT 22.5
      #define DEADBAND 2.5
      //These justr make the code easier to read
      #define HUMIDIFIER 9 //instead of using 9 for pin 9 we'll name it HUMIDIFIER
      #define ON false //The relay is sort of backwards. A low/0/false is actually ON
      #define OFF true //The relay is sort of backwards. A high/1/true is actually OFF
      //The setup routine only executes once, when the Arduino is powered on
      void setup() {
      //Tell the Arduino that we will use the HUMIDIFIER pin as an output, and set it to off just to make sure we know where were starting
      pinMode(HUMIDIFIER, OUTPUT);
      digitalWrite(HUMIDIFIER, OFF);
      //We need to initialize the LCD and tell the library what size (columns, rows) our display is
      lcd.begin(16, 2);

      //Start the code for the temp/humidity sensor. Libraries have a .begin or .start routine of some kind
      dht.begin();
      //Setup stuff that never changes on the screen
      lcd.clear();
      //Go to charicter zero on line zero
      lcd.setCursor(0,0);
      lcd.print("Temp: ");
      //Go to charicter zero on line one
      lcd.setCursor(0,1);
      lcd.print("Humidity: ");
      }
      //The loop routine executes over and over untill you unplug the Arduino
      void loop() {

      //We don't need readings as fast as the Arduino can cycle. Put in delay so that we only do c
      delay(10000);
      //Read the temperature and humidity into floating point variables
      float h = dht.readHumidity();
      float t = dht.readTemperature();
      //Check to make sure we got back numbers. If not, print an error
      if (isnan(h) || isnan(t)) {
      lcd.setCursor(0,0);
      lcd.print("Failed to read from dht sensor! ");
      //Bail - we can't work with things thar aren't numbers!
      return;
      }
      //In the U.S - so convert the Celcius reading to Fahrenheit.
      float f = dht.convertCtoF(t);
      //Move the cursor to the end of the word Temp: and print the reading to 2 decimal places
      lcd.setCursor(6, 0);
      lcd.print(f,2);
      //Move the cursor to the end of the word Humidity: and print the reading to 2 decimal places
      lcd.setCursor(10,1);
      lcd.print(h,2);
      //Now vegin the controll logic
      if(digitalRead(HUMIDIFIER) == ON
      {
      //If the humidifier is on, check to see if the humidity is above setpoint
      if(h > SETPOINT + DEADBAND)
      {
      //We've reached the upper limit, so kill the humidifier
      digitalWrite(HUMIDIFIER, OFF);
      }
      }
      else
      {
      //If the humidifier is off, check to see if thr humidity is below serpoint
      if(h < SETPOINT - DEADBAND)
      {
      //We've reached the lower limit, so kick on the humidifier
      digitalWrite(HUMIDIFIER, ON);
      }
      }
      }

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

    Excellent video Matt. Could one do precisely this same idea but with a ceramic space heater that lacks a set point temperature?
    I would assume they're typically AC powered as well. Thanks again for the great video.

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

      You sure could Jacob. Watch the current rating on the relay though. A space heater will draw a lot more power than this humidifier, so you'll need a relay rated at the full 15A your wall outlet can supply. Be sure you're using a modern space heater that had built in tip-over and over temp protection too. Last thing you want is your insurance company pinning a space heater fire on your control circuit!

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

    I want a set up that controls the humidity in the room and the temperature by operating a heater or a wall fan that sucks air from outdoors

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

      Same setup could pretty easily be extended to control multiple things. The heater or fan would just be another output pin hooked up to a second relay. Almost identical logic needed to take a measurement and decide whether or not to turn on/off the new device.

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

      @@MattHeere thank you for your reply I bought the arduino kit about 4 years ago plus lots of sensors, relays and displays etc and have never done anything with it

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

      Is it simple to swap the LCD display for the colour display?

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

      @@layton7430 It's not too bad. Different displays have different libraries that drive them, but many of the "draw on the display" functions are similar, so adapting the code is tedious, but simple.

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

    Excelent, I like your viedo

  • @lolbdnews3733
    @lolbdnews3733 6 лет назад

    where i can get it

  • @ragavansuresh5035
    @ragavansuresh5035 6 лет назад

    Great build, Thanks for sharing. My only question is, that humidifier doesn't have an ON/Off button right? It kicks on as soon as it gets plugged in?

    • @MattHeere
      @MattHeere  6 лет назад

      It has an OFF/LOW/HIGH setting dial. I just leave it on HIGH and let the control system deal with it.

    • @ragavansuresh5035
      @ragavansuresh5035 6 лет назад

      Matt Heere got it. Thank you. I have a humidifier that has a button which needs to be pressed to turn on. I'll try to get this model over christmas or something

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

    Subscribed

  • @pcorlis
    @pcorlis 8 лет назад +2

    Matt, great video as usual. Your talents sure are wide ranging. I sure would like to see more arduino videos in the future. Thanks for sharing. Paul at paulsmessyworkshop

  • @AwesomeWoodThings
    @AwesomeWoodThings 8 лет назад +1

    Another great project and video! You've taken a concept that can appear complicated and made it simple to understand. Love it!
    Also, I host a count-down show featuring the hottest maker videos of the week. May I feature a clip of this video on that show?

    • @MattHeere
      @MattHeere  8 лет назад +1

      +Awesome Wood Things Thanks! I'd be honored! Would have cleaned myself up better if I'd known... ;)

    • @AwesomeWoodThings
      @AwesomeWoodThings 8 лет назад

      +Matt Heere Ha ha. Great. Thank you. I'll pass along the new show link after it's live (maybe Tuesday). :-)

    • @AwesomeWoodThings
      @AwesomeWoodThings 8 лет назад

      +Matt Heere New WTV episode is out... check the latest video on my channel to see this featured. Thanks Matt!!!

    • @MattHeere
      @MattHeere  8 лет назад +1

      Looks good Matt. Thanks for including me!

  • @jacksonpelletier5388
    @jacksonpelletier5388 6 лет назад

    This is really cool! you never expressed how this idea came to you, have you received some kind of special training?

    • @MattHeere
      @MattHeere  6 лет назад

      Shock training :) . I believe the expression goes "Necessity is the mother of invention."

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

    I think it's ultrasonic. It doesn't heat the water

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

    ** Suggestion for new video of an automated greenhouse **
    Hey, thanks for the great stuffs.
    I'm sure there are lots of people searching for an automated greenhouse, like I am. Can you make a project on a greenhouse that has a heater, a water pump, hot and cold humidifiers, and a window that gets open when too hot or humid. There are lots of even more complicated greenhouses on youtube, but no one's sharing the code and schematics.
    Wemos d1 mini or Uno and DHT sensors would be great options for the project.
    Thanks in advance.
    Please hit the like if you agree.

  • @NPC-rq9tp
    @NPC-rq9tp 6 лет назад

    why would dry air be bad for your electronics?...

    • @MattHeere
      @MattHeere  6 лет назад

      It isn't directly, but it encourages static build up, and static discharge is most definitely bad for electronics.

    • @NPC-rq9tp
      @NPC-rq9tp 6 лет назад

      Matt Heere
      interesting thanks

  • @audiotechlabs4650
    @audiotechlabs4650 8 лет назад

    Hey Matt, really, really love your channel. I wish you were my neighbor. Anyway, I saw the geetarz(guitars) in your studio so I guess you are a musician. I know you have done some vids on music stuff, so how about more. Thankz

    • @MattHeere
      @MattHeere  8 лет назад

      +Audio Tech Labs Frustrated musician is more like it! I dabble - played almost everything at one point. Was only ever good at the sax. Engineer is what pays the bills :)

    • @audiotechlabs4650
      @audiotechlabs4650 8 лет назад

      +Matt Heere Thanks for the reply. What kind of engineer? I used to have a 1st Class Radio Telephone Engineer License. They are not required any more and I'm too old to climb towers. Any and all of your posts are great! Thankz

    • @MattHeere
      @MattHeere  8 лет назад

      E.E. by schooling. I have an assortment of FCC licenses as well ranging from my old college operators permit up to my (converted from the old tech plus) HAM license. Nothing professional though.

    • @audiotechlabs4650
      @audiotechlabs4650 8 лет назад

      +Matt Heere License Smicense, if you are a E.E. you are pro! Good stuff Matt. Thankz

  • @chrismitlyng1411
    @chrismitlyng1411 7 лет назад

    GREAT VIDEO!!
    I'm interested in controlling a reptile vivarium with an Arduino setup such as this. I am using a piece of equipment that I had purchased from a store to do this now, but I'd like to do it myself and expand along the way. Maybe Bluetooth monitoring to my phone. (?)
    My question is this....
    This is the exact project I need but adding temp control to it. My boa is a tropical snake so I need to maintain both (warmer than my home) temp and high humidity. Can this Arduino handle it all?
    Another video online had suggested one to control output and one to control function. He did have a touch screen though.
    Thank you in advance!

    • @MattHeere
      @MattHeere  7 лет назад +1

      The Arduino is more than capable. I'll make a suggestion though: My last two videos on getting up and running using a newer flavor of Arduino called a Photon. If you ultimately want to be able to connect to your setup remotely - especially from your phone - then this thing is the way to go.
      We have a Columbian Red-Tail that needs a new home, and this automation will absolutely be part of it. Can't promise when I'll get around to it though :)

  • @ozzstars_cars
    @ozzstars_cars 8 лет назад

    That's a lot of programming, custom for sure.

    • @MattHeere
      @MattHeere  8 лет назад +1

      +Ozzstar It's funny to me that so many folks react just as you did Ozz. When I look at it, there are only 13 lines that are actually needed for this thing to do the humidity control. The rest is fooling with the display (optional for sure) or just making things look prettier in the editor.
      I see these types of projects as being WAY more approachable than most of what you and I do on our channels. It doesn't require a shop space, no expensive tools,

    • @thatguythatdoesstuff7448
      @thatguythatdoesstuff7448 8 лет назад +2

      +Matt Heere It seems to me that you're probably not new to code. Someone that has never been introduced to code will see this video and still be completely confused. They'll have no idea what you mean by "variable", "object", "library", "call", "loop" etc.
      For someone that already has an understanding of some (any) language of code, yes, this is very basic.
      I've read a number of "Beginner's guide to (code)" written from the standpoint of a person that thinks the very basic concepts of code (especially that particular code) are known to everyone.
      I think the average person, despite your clear explanation of how it works, could not replicate this without significant research and tutoring.

  • @foxyrollouts
    @foxyrollouts 8 лет назад

    Awesome video, thanks.. is that python code? doesnt look too scary

    • @MattHeere
      @MattHeere  8 лет назад

      Arduino "sketches" as they're known are just plain old ANSI C. There are compilers for other languages out there, but C was originally designed to be just one level up from the native chip instructions, so it's actually a really good choice for this kind of work.

    • @foxyrollouts
      @foxyrollouts 8 лет назад +1

      thanks, it seems quite semantic.. not too verbose. Youre a really good presenter, thanx

  • @stonecold313
    @stonecold313 6 лет назад

    Where have you been,youtube?

  • @Mongoman-oq9bq
    @Mongoman-oq9bq 2 года назад

    Eyes glaze over is true

  • @fetah7604
    @fetah7604 6 лет назад

    Can you please share the code?