PID Smart Faucet

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024
  • Smart faucet to control the water temperature, using a PID controller.
    github.com/n-p...

ความคิดเห็น • 48

  • @peterfsat
    @peterfsat ชั่วโมงที่ผ่านมา +2

    Your case design and the way you fit things together is beautiful. I struggle a lot with this myself and your video is good inspiration.

  • @EngineerK
    @EngineerK 10 ชั่วโมงที่ผ่านมา +7

    did you look at thermostatic mixing valves? We just put one in our RV because we were wasting SO much water just to get the right temperature. Now the cold water is the distance from the hot water tank to the faucet and after that the water temperature is completely consistent. Best $100 we have ever spent on a faucet

  • @bureauofboredengineers
    @bureauofboredengineers 10 ชั่วโมงที่ผ่านมา +1

    i did this for my freshman design class, but a load cell was the plant, and you entered a volume of water you wanted. We knew the mass flow at a certain faucet open value, super fun stuff, love the idea.

  • @byGDur
    @byGDur วันที่ผ่านมา +15

    very cool! I sometimes wonder why we don't have this as standard at home. Would make showering etc much more easy.

    • @Eldering
      @Eldering 14 ชั่วโมงที่ผ่านมา +6

      Thermostatic shower taps are pretty common around here. Basically similar functionality without all the electronics.

    • @mr_voron
      @mr_voron 6 ชั่วโมงที่ผ่านมา +1

      Most of IKEA shower valves are thermostatic. They use a bi-metal valve to adjust the water temperature mechanically. You can also get them at your local hardware store, but it’ll be more $$$ cause they are considered “fancy” in US.

  • @TradieTrev
    @TradieTrev วันที่ผ่านมา +6

    Cool design! You've made me understand PID loops better.

  • @devrim-oguz
    @devrim-oguz วันที่ผ่านมา +5

    I had this idea for such a long time, its time someone actually ended up doing it 😅

  • @Scrogan
    @Scrogan วันที่ผ่านมา +8

    Neat execution, especially the disengagement gear so you can still use it manually, though I wonder if it could disengage itself before it loses all power in event of a power cut.
    My idea is more invasive, using a pair of control valves plumbed inline with the hot and cold water, a flow-meter after the combination, a modified faucet with integral thermistor, and magnetically coupled stick-on knobs for waterproof control. One knob for temperature, one knob for flow rate.
    Because making it resilient to power loss would be difficult without making the valves accessible with handles, it would need to be reliable and work even during a power cut. Maybe the flow-meter could generate energy, or it could use a thermoelectric generator.

    • @ERGU9
      @ERGU9 17 ชั่วโมงที่ผ่านมา +1

      I also wonder if sometimes moving gear miss the exact place and stuck in the process.

    • @mitchellmnr
      @mitchellmnr 53 นาทีที่ผ่านมา

      @@ERGU9 simpler solution - just unpower the servo - its a bit harder to turn but will turn easy enough.
      That way the thing is always engaged with the tap - but unless it needs to be used, its physically unpowered - also better for servo

  • @totalepicrandomness2
    @totalepicrandomness2 20 ชั่วโมงที่ผ่านมา

    That’s awesome! I’ve wanted to do this for years on my sink. Cool to see it in action.

  • @Dorff_Meister
    @Dorff_Meister 2 ชั่วโมงที่ผ่านมา

    Very cool. I'd consider doing this if the kitchen hot water didn't tame FOREVER to get up to temp. Maybe that's the best reason to use it - have it beep when it's at temp :P I've seen some that show a bar of color based on the temperature, as well. Oh the things that one can over-engineer.

  • @svenb4475
    @svenb4475 วันที่ผ่านมา +4

    What usually leaves me unsatisfed with pid is the idea that i can be faster and better because i know stuff about the system the pid doesnt know. Obviously if i was a god in setting up a smooth pid controller as well as configuring it perfectly id probably be able to transfer my knowledge into the machine and make it just as good. The most defining metric for the "easy-ness" of controlling something is set by the delay between actions and reactions as well as how fast of a change we can make. If the piping is made so the warm water has to rise 2 stories before the tap gets hot, the pid will max out (or go even frther) and wait while it integrates into space. But i can know how long it takes, i can even estimate what kind of temperature the pipes and the water left in them might have depending on where heat has been used and at what time it has been used last. So if i know the pipes are cold i just jump to full heat, wait the estimated time and then lower smoothly into comfortable terretory while the pipes slowly heat up and throw me off a couple degrees within the next 20 or so seconds but how do i translate this into my controlling unit? Ideally i would know all the temperatures, all the pipes, the boiler, all the statistics about where heat has been used in the last hour or so and combine them into one all knowing algorythm that can bring my tap up to setpoint within the least ammount of time plus like 1s. At this point we might be able to combat peak human skill. But what im more interested in then is why i can still do what the pid cant, do all this without all the neccessary sensors. Id love to try this out, install your machine on every tap on the house, feed it into a neural network of some sort and train it to almost match human peak performance but i really lack the ambition to do that... Still i like to think about it...

    • @marshmellominiapple
      @marshmellominiapple 21 ชั่วโมงที่ผ่านมา

      There is a way you can directly import your knowledge of the physical world into a PID controller! It's called math. The core concept is taking real world physics, like how the temperature of the water in the pipe is effected by pipe length of temperature of the room and insulation and flow rate and so on, and modeling that into a set of equations. The equations are most likely derivatives and stuff (i forget the actual term, equations of state?), and they tell you how the physical world should act given certain parameters.
      After getting the modeling equations, you can then do some more math on them and put them into a PID loop, whether that be open loop or closed loop (closed loop is like the video, i.e. having a sensor and using error to correct the output). Once you have a PID loop you can analytically find the PID values (pain in the ass) then finally build a prototype that works first try.
      The problem? It's basically a bachelors degree in engineering. (I'd do mechanical if you want to mess around with physical stuff)

  • @marshmellominiapple
    @marshmellominiapple 22 ชั่วโมงที่ผ่านมา +2

    First 5 seconds made me go from "why the fuck would you need PID on a faucet" to "oh yea"

  • @MichielvanderMeulen
    @MichielvanderMeulen วันที่ผ่านมา +4

    cool (shall I mention you can buy thermostatic faucets in the DIY store?)

    • @pizzablender
      @pizzablender 4 ชั่วโมงที่ผ่านมา +1

      I have a similar situation with the tap. I've put an extra thermostat micxe rin the hot water supply. So now I have a "correct warm" tap and a cold one.

  • @omartarakji521
    @omartarakji521 วันที่ผ่านมา +7

    Bro has got looong screw driver

  • @zyzzyva303
    @zyzzyva303 22 ชั่วโมงที่ผ่านมา

    This is very nice. I've got the old-school single knob mixing valve faucet, so maybe mounting a premixing under the sink and merely using the valve for turning flow on and off. I'm sure water flow can be detected with a piezo to run the temp control.

    • @pizzablender
      @pizzablender 4 ชั่วโมงที่ผ่านมา

      You can use a thermostat cartridge pre mix tap in the hot water feed. That you end up with a choice between warm, cold, or in between. But never too hot.

  • @arp_catchall
    @arp_catchall 12 ชั่วโมงที่ผ่านมา

    Thanks for sharing. What is the brand of tweezers you are using?

  • @abc321meins
    @abc321meins วันที่ผ่านมา +7

    This is really cool and all, but wouldn't it be easier to get a single lever mixer? xD

    • @bagoston325
      @bagoston325 วันที่ผ่านมา

      You have to also adjust the temperature there, and may I say it's less precise. We only have mixers in the house and it's way more convenient to manage water temp with (one lever only). But tbh I'd much better like an auto-adjuster like he built in the video.
      At work, we have an auto-adjuster that has a built-in thermostat, so it doesn't even need electronic bits, and I want one of those at home.

    • @abc321meins
      @abc321meins วันที่ผ่านมา

      @@bagoston325 I think a system like this would be awesome for the shower as you need a precise temperature over a longer time. You could even have different set points per user.

  • @Grant5321
    @Grant5321 วันที่ผ่านมา +1

    Do you think you could go into detail on how you did the simulation using weighted averages? I’m a controls engineer working on large scale battery sites and have been working on a sim for the PLCs. It’s difficult to generate feedback for the control loops and your method looks very straight forward to do this.

  • @quest2user437
    @quest2user437 22 ชั่วโมงที่ผ่านมา

    I always thought about making something like this, but for the shower. It takes a few minutes for the hot water to kick in, but it kicks in faster when I turn it to the maximum, but then it burns me few seconds later.

  • @slabua
    @slabua 14 ชั่วโมงที่ผ่านมา

    What was the purpose of the relay? There are some mosfet boards also, I think

  • @JeromeDemers
    @JeromeDemers 21 ชั่วโมงที่ผ่านมา

    Haha! That’s awesome! Just forgot to remove protected film over lcd! 😆

  • @wildniscamper7276
    @wildniscamper7276 วันที่ผ่านมา

    very nice bro! i like the clean and logic design!

  • @v037_
    @v037_ 18 ชั่วโมงที่ผ่านมา

    2:48 my eyes🥲

  • @andrewhofmann5453
    @andrewhofmann5453 21 ชั่วโมงที่ผ่านมา

    I wonder how it would react if you turned on the cold water ONLY during a heat wave when the tap water was coming out super hot.. :)

  • @RicaFett
    @RicaFett 12 ชั่วโมงที่ผ่านมา

    Or you could just buy a thermostatic tap/valve... Still a nice project!

  • @horiaandrei24
    @horiaandrei24 วันที่ผ่านมา +1

    This is very cool!

  • @pingwin36
    @pingwin36 วันที่ผ่านมา

    Great video! I'm still somewhat new to electronics and such and I was curious why you chose to step down the 12v power to power the servo motors rather than just powering them from the 5v on the Arduino?

    • @the555timer
      @the555timer วันที่ผ่านมา

      The arduinos built in regulator can't handle the current required by the servos

    • @pingwin36
      @pingwin36 23 ชั่วโมงที่ผ่านมา

      @@the555timer oh ok that makes sense thank you!

  • @rklauco
    @rklauco 6 ชั่วโมงที่ผ่านมา

    I wonder how long till you learn about bi-metalic faucets that do the same thing in seconds, without electricity :D

  • @hexburner4157
    @hexburner4157 วันที่ผ่านมา

    Awesome project! Been dreaming about something like this myself - thanks for open sourcing it! 🙌
    Quick suggestion though: Instead of letting water run continuously (which wastes water), maybe add a container (and some extra valves and stuff) with a temperature sensor? That way, the system could pre-adjust the temp in the container before releasing it. I know manual adjustment probably wastes more water, but every drop counts for our planet! 💧
    Really impressed by the quality of your content - can't believe you don't have more subs! Keep up the great work! 👍

  • @MatthewSherborne
    @MatthewSherborne วันที่ผ่านมา +1

    Beautiful :)

  • @EmbeddedEnigma
    @EmbeddedEnigma 8 ชั่วโมงที่ผ่านมา

    subbed

  • @gavgoose3647
    @gavgoose3647 2 วันที่ผ่านมา +1

    Thats so cool. Did you learn robotics at college or self taught?

    • @lifeai1889
      @lifeai1889 วันที่ผ่านมา +5

      I can tell you, at school you never learn useful things

    • @Tagraff
      @Tagraff วันที่ผ่านมา +1

      You're better off to learn it online, a lot of tutorials, readily available electronic kits, and GPIO programming.

  • @dabozz88
    @dabozz88 ชั่วโมงที่ผ่านมา

    Look man, I love this as a project, but it's really a bad idea overall with all the electronics around water.
    Also for temperature loops you shouldn't ever really need a D term. Feel free to ask me any questions.

  • @Ariccio123
    @Ariccio123 5 ชั่วโมงที่ผ่านมา

    Hehe I mean I like this it's a fun project but thermostatic valves are already a thing

  • @TilmanBaumann
    @TilmanBaumann 5 ชั่วโมงที่ผ่านมา

    Cool project. And entirely useless since thermostatic mixers exist