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
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.
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.
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 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
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.
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...
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)
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.
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.
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.
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.
@@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.
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.
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.
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?
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! 👍
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.
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.
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
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.
very cool! I sometimes wonder why we don't have this as standard at home. Would make showering etc much more easy.
Thermostatic shower taps are pretty common around here. Basically similar functionality without all the electronics.
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.
Cool design! You've made me understand PID loops better.
I had this idea for such a long time, its time someone actually ended up doing it 😅
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.
I also wonder if sometimes moving gear miss the exact place and stuck in the process.
@@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
That’s awesome! I’ve wanted to do this for years on my sink. Cool to see it in action.
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.
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...
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)
First 5 seconds made me go from "why the fuck would you need PID on a faucet" to "oh yea"
cool (shall I mention you can buy thermostatic faucets in the DIY store?)
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.
Bro has got looong screw driver
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.
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.
Thanks for sharing. What is the brand of tweezers you are using?
This is really cool and all, but wouldn't it be easier to get a single lever mixer? xD
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.
@@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.
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.
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.
What was the purpose of the relay? There are some mosfet boards also, I think
Haha! That’s awesome! Just forgot to remove protected film over lcd! 😆
very nice bro! i like the clean and logic design!
2:48 my eyes🥲
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.. :)
Or you could just buy a thermostatic tap/valve... Still a nice project!
This is very cool!
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?
The arduinos built in regulator can't handle the current required by the servos
@@the555timer oh ok that makes sense thank you!
I wonder how long till you learn about bi-metalic faucets that do the same thing in seconds, without electricity :D
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! 👍
Beautiful :)
subbed
Thats so cool. Did you learn robotics at college or self taught?
I can tell you, at school you never learn useful things
You're better off to learn it online, a lot of tutorials, readily available electronic kits, and GPIO programming.
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.
Hehe I mean I like this it's a fun project but thermostatic valves are already a thing
Cool project. And entirely useless since thermostatic mixers exist