{"video_id":"fp_zkSSZBqoai","title":"Fixing My Pool Water Cooling (SPONSORED)","channel":"Linus Tech Tips","show":"Linus Tech Tips","published_at":"2024-09-14T16:31:00.039Z","duration_s":1453,"segments":[{"start_s":0.0,"end_s":3.68,"text":"On our last episode of Linus Tech Disasters,","speaker":null,"is_sponsor":0},{"start_s":3.68,"end_s":10.44,"text":"one of the custom liquid-cooled gaming machines in my home rack sprung a leak, pouring gallons of water","speaker":null,"is_sponsor":0},{"start_s":10.44,"end_s":13.88,"text":"over every system beneath it. And my initial thought was,","speaker":null,"is_sponsor":0},{"start_s":13.88,"end_s":18.24,"text":"oh, I forgot to screw in a fitting. But as it turned out,","speaker":null,"is_sponsor":0},{"start_s":18.24,"end_s":23.16,"text":"despite taking precautions to prevent it, it wasn't a fitting not being screwed in.","speaker":null,"is_sponsor":0},{"start_s":23.16,"end_s":27.2,"text":"It was a fitting completely corroding off of the block.","speaker":null,"is_sponsor":0},{"start_s":27.2,"end_s":30.76,"text":"Maybe some of the metals in our loop are incompatible.","speaker":null,"is_sponsor":0},{"start_s":30.76,"end_s":34.2,"text":"Nope, after spending hours inspecting them,","speaker":null,"is_sponsor":0},{"start_s":34.2,"end_s":37.72,"text":"every other system's fittings were spotless,","speaker":null,"is_sponsor":0},{"start_s":37.72,"end_s":43.16,"text":"not a hint of corrosion to be seen. I was so dumbfounded that I turned to the YouTube","speaker":null,"is_sponsor":0},{"start_s":43.16,"end_s":46.72,"text":"comments for help and it actually worked.","speaker":null,"is_sponsor":0},{"start_s":46.72,"end_s":51.76,"text":"There was a strong consensus on what the problem was. So today, with the help of Pulseway,","speaker":null,"is_sponsor":0},{"start_s":51.76,"end_s":56.12,"text":"who sponsored this video, we're gonna hopefully rectify this silent killer","speaker":null,"is_sponsor":0},{"start_s":56.12,"end_s":61.2,"text":"and add a remote monitoring system so that if there ever is another leak,","speaker":null,"is_sponsor":0},{"start_s":61.2,"end_s":65.6,"text":"hey, at least I'll know about it before I come home at the end of the day","speaker":null,"is_sponsor":0},{"start_s":65.6,"end_s":67.84,"text":"and find that my computer peed itself.","speaker":null,"is_sponsor":0},{"start_s":78.84,"end_s":84.04,"text":"The first really good community theory was that the fancy fuel hose we were using as our tubing","speaker":null,"is_sponsor":0},{"start_s":84.08,"end_s":89.2,"text":"might use steel webbing to reinforce it, which could introduce galvanic corrosion,","speaker":null,"is_sponsor":0},{"start_s":89.2,"end_s":92.96,"text":"but this was actually due to a miscommunication on my part.","speaker":null,"is_sponsor":0},{"start_s":92.96,"end_s":99.28,"text":"It's not fuel hose, it's a general purpose hose, and it uses a textile reinforcement rather than steel,","speaker":null,"is_sponsor":0},{"start_s":99.28,"end_s":102.28,"text":"so we could scratch that one.","speaker":null,"is_sponsor":0},{"start_s":102.28,"end_s":105.28,"text":"Another interesting theory was that a microcrack","speaker":null,"is_sponsor":0},{"start_s":105.28,"end_s":110.88,"text":"in the delrin plastic of the GPU block might have allowed the steel screws that hold it down","speaker":null,"is_sponsor":0},{"start_s":110.88,"end_s":115.64,"text":"to come in contact with the water, but a close visual inspection reveals no cracks,","speaker":null,"is_sponsor":0},{"start_s":115.64,"end_s":119.56,"text":"and the threading for all of those screws is completely clean,","speaker":null,"is_sponsor":0},{"start_s":119.56,"end_s":124.72,"text":"which suggests that no corrosion occurred there. A third theory was that a flaw in the plating","speaker":null,"is_sponsor":0},{"start_s":124.72,"end_s":129.76,"text":"of the affected fittings could allow galvanic corrosion to occur with the underlying metal,","speaker":null,"is_sponsor":0},{"start_s":129.76,"end_s":134.08,"text":"which would explain why some of them were eaten while others remained perfect.","speaker":null,"is_sponsor":0},{"start_s":134.08,"end_s":138.04,"text":"But the thing is, when you or EK in this case","speaker":null,"is_sponsor":0},{"start_s":138.04,"end_s":142.36,"text":"is designing anything that involves metal and water, galvanic corrosion is something","speaker":null,"is_sponsor":0},{"start_s":142.36,"end_s":147.68,"text":"that they carefully consider. So, while the most obvious way to avoid corrosion","speaker":null,"is_sponsor":0},{"start_s":147.68,"end_s":152.08,"text":"is to never mix metals, there are many metals that are safe to mix,","speaker":null,"is_sponsor":0},{"start_s":152.08,"end_s":157.84,"text":"especially when they're not directly connected, and the underlying material of these fittings is brass,","speaker":null,"is_sponsor":0},{"start_s":157.84,"end_s":164.08,"text":"which, if you consult this anodic index, should be fine with the copper and other metals in our loop.","speaker":null,"is_sponsor":0},{"start_s":164.08,"end_s":168.76,"text":"Should be fine. The story changes when you apply a voltage,","speaker":null,"is_sponsor":0},{"start_s":168.76,"end_s":172.08,"text":"and well, we obviously weren't intentionally doing that","speaker":null,"is_sponsor":0},{"start_s":172.12,"end_s":177.6,"text":"when you have a large power draw in one spot, like a couple thousand watts of computers in a rack,","speaker":null,"is_sponsor":0},{"start_s":177.6,"end_s":182.96,"text":"and a low power draw in another spot, like a couple hundred watts from a pump,","speaker":null,"is_sponsor":0},{"start_s":182.96,"end_s":188.88,"text":"you're gonna end up with a difference in voltage between them, which accelerates corrosion dramatically,","speaker":null,"is_sponsor":0},{"start_s":188.88,"end_s":192.72,"text":"and can make compatible metals far less compatible.","speaker":null,"is_sponsor":0},{"start_s":192.72,"end_s":198.48,"text":"But the good news is for this solution, oh boy, we don't have to worry about the details.","speaker":null,"is_sponsor":0},{"start_s":198.48,"end_s":203.4,"text":"This is an isolation transformer, and you might be familiar with transformers,","speaker":null,"is_sponsor":0},{"start_s":203.4,"end_s":207.08,"text":"you would use one to take a low voltage and make it a higher voltage, or vice versa.","speaker":null,"is_sponsor":0},{"start_s":207.08,"end_s":212.36,"text":"Sure, like to run your sewing machine from Asia. Yeah, if you're in a different country, that's a big one.","speaker":null,"is_sponsor":0},{"start_s":212.36,"end_s":215.8,"text":"In this case, it's 120 volt on both sides.","speaker":null,"is_sponsor":0},{"start_s":215.8,"end_s":219.36,"text":"You see that? Made in Canada, thanks Hammond Manufacturing,","speaker":null,"is_sponsor":0},{"start_s":219.36,"end_s":222.76,"text":"but it decouples the circuit giving us galvanic isolation,","speaker":null,"is_sponsor":0},{"start_s":223.6,"end_s":227.12,"text":"or preventing a loop. So in a nutshell, we're taking anything","speaker":null,"is_sponsor":0},{"start_s":227.12,"end_s":231.2,"text":"that's plugged into this guy, and we're giving it absolutely no path","speaker":null,"is_sponsor":0},{"start_s":231.2,"end_s":235.48,"text":"back to the main panel. It's almost like Wi-Fi for your electricity.","speaker":null,"is_sponsor":0},{"start_s":235.48,"end_s":240.04,"text":"I feel like our analogies are making this worse. The point is, no voltage difference.","speaker":null,"is_sponsor":0},{"start_s":240.04,"end_s":241.48,"text":"Wrap it before you tap it.","speaker":null,"is_sponsor":0},{"start_s":244.16,"end_s":247.96,"text":"Where do you want to put this thing? How about up here? On top of the tank?","speaker":null,"is_sponsor":0},{"start_s":247.96,"end_s":252.32,"text":"The tank full of water? I mean, it should be fine, right? Yeah, I mean. Realistically, while we're here,","speaker":null,"is_sponsor":0},{"start_s":252.32,"end_s":255.92,"text":"I should probably have the pumps running off the UPS. You'd have to run an extension cord","speaker":null,"is_sponsor":0},{"start_s":255.92,"end_s":260.32,"text":"all the way over there. Conveniently. Is that an extension cord that's all the way right there?","speaker":null,"is_sponsor":0},{"start_s":260.32,"end_s":263.88,"text":"Yeah, I really don't think that's longer than that. I don't think it's worse than that. Yeah, I don't think it's longer than that.","speaker":null,"is_sponsor":0},{"start_s":263.88,"end_s":267.72,"text":"Look how long that is. That's a 25-footer. It'll work. You want to bet everyone's lunch on it?","speaker":null,"is_sponsor":0},{"start_s":267.72,"end_s":270.96,"text":"If I'm right, you pay for everyone's lunch. If I'm wrong, nothing happens.","speaker":null,"is_sponsor":0},{"start_s":270.96,"end_s":274.88,"text":"Fine. It has to go all the way down to plug into the bottom UPS.","speaker":null,"is_sponsor":0},{"start_s":274.88,"end_s":278.44,"text":"It has to be managed. Sure. He's literally trying to cable manage it","speaker":null,"is_sponsor":0},{"start_s":278.44,"end_s":281.48,"text":"as much as possible to prevent it from reaching.","speaker":null,"is_sponsor":0},{"start_s":281.48,"end_s":285.6,"text":"Dude, these are so satisfying. I will admit, they are quite good.","speaker":null,"is_sponsor":0},{"start_s":285.6,"end_s":290.88,"text":"LTTstore.com, let's go. That might be the best thing you've ever done.","speaker":null,"is_sponsor":0},{"start_s":290.88,"end_s":294.36,"text":"My kid's right there. What? No, he's not. Probably somewhere.","speaker":null,"is_sponsor":0},{"start_s":294.36,"end_s":297.6,"text":"It's gonna be so funny when you lose. Wow, it reaches.","speaker":null,"is_sponsor":0},{"start_s":297.6,"end_s":301.52,"text":"No way, no way. You're buying everyone's lunch. Get wrecked.","speaker":null,"is_sponsor":0},{"start_s":301.52,"end_s":306.36,"text":"Fine. Even though I owe him lunch, technically? Yeah.","speaker":null,"is_sponsor":0},{"start_s":306.36,"end_s":310.44,"text":"One of the big things that you guys said was, hey, no matter what caused this problem,","speaker":null,"is_sponsor":0},{"start_s":310.44,"end_s":315.24,"text":"you should really have monitoring in place so that if it were to ever happen again, you would know.","speaker":null,"is_sponsor":0},{"start_s":315.24,"end_s":320.88,"text":"And on top of that, we can make automation. So if there's a leak, shut off the pumps.","speaker":null,"is_sponsor":0},{"start_s":320.88,"end_s":326.56,"text":"Yeah, it's going to be good. Theoretically, everything is fine now.","speaker":null,"is_sponsor":0},{"start_s":326.56,"end_s":330.24,"text":"I mean, but. Maybe. But that doesn't mean we're going to stop here.","speaker":null,"is_sponsor":0},{"start_s":330.24,"end_s":333.6,"text":"OK, what's next? Grounding. Grounding.","speaker":null,"is_sponsor":0},{"start_s":333.6,"end_s":338.08,"text":"All right. You're not going out for a week. Says who?","speaker":null,"is_sponsor":0},{"start_s":338.08,"end_s":343.44,"text":"You going to stop me? I have your stepdad's number. Keyword being step.","speaker":null,"is_sponsor":0},{"start_s":343.48,"end_s":346.88,"text":"Are you going to take that? He might actually see this.","speaker":null,"is_sponsor":0},{"start_s":346.88,"end_s":350.2,"text":"To take things to another level, we're going to follow another recommendation that","speaker":null,"is_sponsor":0},{"start_s":350.2,"end_s":356.6,"text":"came up a lot in the comments. Some of you noticed that I never grounded my rack.","speaker":null,"is_sponsor":0},{"start_s":356.6,"end_s":359.88,"text":"While the systems themselves are theoretically grounded","speaker":null,"is_sponsor":0},{"start_s":359.88,"end_s":366.56,"text":"using the third prong of the plug that we plug into them, the rack itself is not necessarily connected to ground.","speaker":null,"is_sponsor":0},{"start_s":366.56,"end_s":370.96,"text":"So we've got a whole bunch of these grounding leads.","speaker":null,"is_sponsor":0},{"start_s":370.96,"end_s":374.2,"text":"And then what? We just connect these from the back of every chassis","speaker":null,"is_sponsor":0},{"start_s":374.2,"end_s":377.72,"text":"to the rack? You could. But we also got this. Here, catch.","speaker":null,"is_sponsor":0},{"start_s":381.72,"end_s":384.96,"text":"Like a grounding bus bar. So you just stick that in the rack","speaker":null,"is_sponsor":0},{"start_s":384.96,"end_s":389.24,"text":"and then screw all the little thingies onto it. Keyword management. No, no, we got this. We got this.","speaker":null,"is_sponsor":0},{"start_s":389.24,"end_s":392.32,"text":"OK. Oh, that just barely fits. Yeah, so that could go right there.","speaker":null,"is_sponsor":0},{"start_s":392.32,"end_s":396.36,"text":"It's almost like it's made for a rack. Naturally, we have to ground our grounding bar","speaker":null,"is_sponsor":0},{"start_s":396.36,"end_s":401.88,"text":"to something for it to work as a grounding bar. Unfortunately, the rack is a bit of a ways from the panel.","speaker":null,"is_sponsor":0},{"start_s":401.92,"end_s":405.76,"text":"And our electrician who is going to do this properly for us is unavailable today.","speaker":null,"is_sponsor":0},{"start_s":405.76,"end_s":410.16,"text":"So instead, we're going to have to open up the panel and tie the wires directly into the grounding bar.","speaker":null,"is_sponsor":0},{"start_s":410.16,"end_s":417.92,"text":"It also means I didn't have the correct wire. So Linus happened to have these two pretty thick gauge wires.","speaker":null,"is_sponsor":0},{"start_s":417.92,"end_s":421.16,"text":"So we're going to use those instead. I also didn't have the correct connectors.","speaker":null,"is_sponsor":0},{"start_s":421.16,"end_s":426.76,"text":"So I cut these Hammond ones, butt connected them onto the long wire, and now we have the right connector.","speaker":null,"is_sponsor":0},{"start_s":426.76,"end_s":430.36,"text":"Is this how you should do this? Probably not. But it's just a ground.","speaker":null,"is_sponsor":0},{"start_s":430.36,"end_s":435.96,"text":"It's probably right, Rhys. I don't know what I'm doing.","speaker":null,"is_sponsor":0},{"start_s":435.96,"end_s":440.36,"text":"Got it? Hey, it worked. There we go, grounded.","speaker":null,"is_sponsor":0},{"start_s":440.36,"end_s":444.76,"text":"I'm going to let Linus be the one to open the panel and stick his fingers in there because it's his house.","speaker":null,"is_sponsor":0},{"start_s":444.76,"end_s":449.56,"text":"So we're just going to leave this for now. Hammond sent us these sick little grounding kits,","speaker":null,"is_sponsor":0},{"start_s":449.56,"end_s":453.76,"text":"and they have little just blade connectors. So you hook one set up to the server,","speaker":null,"is_sponsor":0},{"start_s":453.76,"end_s":457.48,"text":"one set up to the grounding bar, and then if you need to take the server out for some reason,","speaker":null,"is_sponsor":0},{"start_s":457.48,"end_s":461.36,"text":"you can easily disconnect it. Let's try it with one of Linus's Nasty units here.","speaker":null,"is_sponsor":0},{"start_s":461.36,"end_s":462.36,"text":"Let's screw that.","speaker":null,"is_sponsor":0},{"start_s":464.6,"end_s":470.0,"text":"Look at that. Wow. Now we just repeat like 10 times.","speaker":null,"is_sponsor":0},{"start_s":470.0,"end_s":473.32,"text":"While Rhys works on getting all the systems grounded, let's talk sensors.","speaker":null,"is_sponsor":0},{"start_s":473.32,"end_s":479.1,"text":"We have three different types. Starting with our leak sensor, although calling it a sensor might be a bit generous.","speaker":null,"is_sponsor":0},{"start_s":479.1,"end_s":482.64,"text":"This is basically just like two wires. You apply voltage to one side,","speaker":null,"is_sponsor":0},{"start_s":482.64,"end_s":485.92,"text":"and as your leak bridges the gap with water, it creates an electrical connection","speaker":null,"is_sponsor":0},{"start_s":485.92,"end_s":489.4,"text":"between the other side, and on that side, you're just sensing for any voltage.","speaker":null,"is_sponsor":0},{"start_s":489.4,"end_s":494.56,"text":"So when there's no water, it should be zero volts-ish, and when there is water, say if we did five volts","speaker":null,"is_sponsor":0},{"start_s":494.56,"end_s":498.08,"text":"on this side, or probably should like one, or two volts on this side. So that works.","speaker":null,"is_sponsor":0},{"start_s":498.08,"end_s":501.64,"text":"And then we've got a flow sensor. This one is really just to tell us if, say,","speaker":null,"is_sponsor":0},{"start_s":501.64,"end_s":505.36,"text":"the water runs out, or the pump stops working, which would obviously be bad,","speaker":null,"is_sponsor":0},{"start_s":505.36,"end_s":508.72,"text":"because then the water inside the computers would boil, which might cause a leak.","speaker":null,"is_sponsor":0},{"start_s":508.72,"end_s":514.08,"text":"This way we can notify ourselves if the water is not flowing, and then we've also got a little float switch.","speaker":null,"is_sponsor":0},{"start_s":514.08,"end_s":517.96,"text":"Very simple. This one, if it's at the bottom current passes, if it's at the top current doesn't pass.","speaker":null,"is_sponsor":0},{"start_s":517.96,"end_s":521.28,"text":"So we stick it in the water tank here, at the top,","speaker":null,"is_sponsor":0},{"start_s":521.28,"end_s":523.44,"text":"and we can tell if it's full or not.","speaker":null,"is_sponsor":0},{"start_s":524.4,"end_s":529.76,"text":"I should do not, this is how we're gonna test it later.","speaker":null,"is_sponsor":0},{"start_s":529.76,"end_s":534.96,"text":"But before we can install it, we have to drain the loop, which is going to be interesting.","speaker":null,"is_sponsor":0},{"start_s":534.96,"end_s":539.6,"text":"This valve is open, and nothing is coming out.","speaker":null,"is_sponsor":0},{"start_s":539.6,"end_s":543.6,"text":"I saw a comment. Somebody said they had experience with hose bibs like that,","speaker":null,"is_sponsor":0},{"start_s":543.6,"end_s":547.88,"text":"and they said that some of the manufacturers started using really crappy cheap materials in them","speaker":null,"is_sponsor":0},{"start_s":547.88,"end_s":551.24,"text":"that are not necessarily compatible with plumbing, and I just looked up in there,","speaker":null,"is_sponsor":0},{"start_s":551.24,"end_s":555.36,"text":"and you know what I saw? Corrosion. I read the comment, and I was like,","speaker":null,"is_sponsor":0},{"start_s":555.36,"end_s":557.16,"text":"this is too stupid to be true.","speaker":null,"is_sponsor":0},{"start_s":558.6,"end_s":562.44,"text":"Linus! Guess what doesn't happen when you open this hose bib?","speaker":null,"is_sponsor":0},{"start_s":562.44,"end_s":563.76,"text":"Oh, no.","speaker":null,"is_sponsor":0},{"start_s":565.64,"end_s":569.96,"text":"You're ballsy. Let's take your phone light up there. Uh-oh. Can you imagine if that's literally","speaker":null,"is_sponsor":0},{"start_s":569.96,"end_s":573.24,"text":"what caused all of this? You've gotta be kidding me.","speaker":null,"is_sponsor":0},{"start_s":573.24,"end_s":577.4,"text":"You know, whole room water cooling was exactly the same thing.","speaker":null,"is_sponsor":0},{"start_s":577.4,"end_s":582.6,"text":"It was a vendor cheeping out on the parts. That reservoir was supposed to be stainless steel.","speaker":null,"is_sponsor":0},{"start_s":582.6,"end_s":586.8,"text":"I mean, you should've just used a plastic one. But it wasn't made of stainless steel.","speaker":null,"is_sponsor":0},{"start_s":586.8,"end_s":589.88,"text":"I used a plastic one. Yeah, you also were the one who specced this.","speaker":null,"is_sponsor":0},{"start_s":589.88,"end_s":593.32,"text":"Supposedly brass hose bibs, smart guy. I bought it from a plumbing store.","speaker":null,"is_sponsor":0},{"start_s":593.32,"end_s":596.56,"text":"So it looks like we were both bamboozled. You don't get to be all...","speaker":null,"is_sponsor":0},{"start_s":596.56,"end_s":601.36,"text":"Yeah, but at least my idea was like a good one. It's also good that I got this particulate filter.","speaker":null,"is_sponsor":0},{"start_s":601.36,"end_s":605.96,"text":"Yeah. It's plastic, actually. Oh, it's a polypropylene, I think.","speaker":null,"is_sponsor":0},{"start_s":605.96,"end_s":609.88,"text":"Nice. Oh, no, it's polyester. It's like a t-shirt, basically. What are these made of?","speaker":null,"is_sponsor":0},{"start_s":609.88,"end_s":614.08,"text":"Ah, well, those are metal, but that's the same type that's already in the loop. Because I don't feel like going to the plumbing store","speaker":null,"is_sponsor":0},{"start_s":614.08,"end_s":617.52,"text":"and because I don't trust those things ever again, I'm going to make my own valve.","speaker":null,"is_sponsor":0},{"start_s":617.52,"end_s":621.72,"text":"I've got a little guy and a little valve.","speaker":null,"is_sponsor":0},{"start_s":621.72,"end_s":623.12,"text":"Oh, look, I fixed the leak.","speaker":null,"is_sponsor":0},{"start_s":625.32,"end_s":626.92,"text":"Just gonna get water everywhere.","speaker":null,"is_sponsor":0},{"start_s":633.2,"end_s":637.32,"text":"Ooh. We have to make sure that we put it the right way.","speaker":null,"is_sponsor":0},{"start_s":637.32,"end_s":641.76,"text":"There's these very helpful arrows that I should follow.","speaker":null,"is_sponsor":0},{"start_s":641.76,"end_s":646.16,"text":"Oh, look, I even drew arrows on the tubes. So I just matched the arrow with the arrow","speaker":null,"is_sponsor":0},{"start_s":646.16,"end_s":647.68,"text":"and then I can't screw it up.","speaker":null,"is_sponsor":0},{"start_s":649.44,"end_s":651.68,"text":"Hey, Reese, you leak tested this filter, right?","speaker":null,"is_sponsor":0},{"start_s":656.08,"end_s":660.28,"text":"Filter installed. Is that closed? Beautiful.","speaker":null,"is_sponsor":0},{"start_s":660.28,"end_s":666.0,"text":"Water in the filter, yay. The sensors are great and all, but they don't exactly work without something to read them.","speaker":null,"is_sponsor":0},{"start_s":666.0,"end_s":672.16,"text":"In the past, we've bought little like relay or input output boards for Z-Wave or Wi-Fi on Amazon.","speaker":null,"is_sponsor":0},{"start_s":672.16,"end_s":677.56,"text":"But if you've seen anything about how Linus's wireless has been working, eh, I wanted something hardwired.","speaker":null,"is_sponsor":0},{"start_s":677.56,"end_s":683.56,"text":"And then I stumbled upon a company called Sequent Micro Systems, which sounds super nerdy","speaker":null,"is_sponsor":0},{"start_s":683.56,"end_s":687.36,"text":"and to be honest, it kind of is. All they sell are these custom home","speaker":null,"is_sponsor":0},{"start_s":687.36,"end_s":690.96,"text":"and industrial automation boards. And this one, which is a Raspberry Pi hat,","speaker":null,"is_sponsor":0},{"start_s":690.96,"end_s":695.4,"text":"just plugs into a Raspberry Pi. Weep, this one has 16 universal sensors on it.","speaker":null,"is_sponsor":0},{"start_s":695.4,"end_s":699.84,"text":"That means we could handle all seven of the gaming computers in here for leak sensors.","speaker":null,"is_sponsor":0},{"start_s":699.84,"end_s":703.56,"text":"We could put a couple on the floor, our two flow sensors and still have room to spare.","speaker":null,"is_sponsor":0},{"start_s":703.56,"end_s":707.72,"text":"It was a little complicated to get set up, but they actually had really good customer service.","speaker":null,"is_sponsor":0},{"start_s":707.72,"end_s":711.64,"text":"The guy was emailing me back within the hour, responding. They have a bunch of different boards.","speaker":null,"is_sponsor":0},{"start_s":711.64,"end_s":715.48,"text":"You can get ones that have some sensors, some power outputs, you can get ones that have MOSFETs,","speaker":null,"is_sponsor":0},{"start_s":715.48,"end_s":719.84,"text":"you can get ones that have just cereal. Like, they make a lot of different products","speaker":null,"is_sponsor":0},{"start_s":719.84,"end_s":725.28,"text":"and it's actually pretty awesome. This one in particular requires separate power.","speaker":null,"is_sponsor":0},{"start_s":725.28,"end_s":728.84,"text":"So you plug in a five volt power lead here","speaker":null,"is_sponsor":0},{"start_s":728.84,"end_s":732.28,"text":"and then it powers the Raspberry Pi through it directly.","speaker":null,"is_sponsor":0},{"start_s":732.28,"end_s":736.36,"text":"There's also a battery for a real time clock that's on the board that they use for hardware monitoring.","speaker":null,"is_sponsor":0},{"start_s":736.36,"end_s":741.2,"text":"So if the Raspberry Pi becomes unresponsive, this board can reboot the Raspberry Pi.","speaker":null,"is_sponsor":0},{"start_s":741.2,"end_s":746.0,"text":"It's one of those things where you wouldn't really think about it for a house setup, but if you were stuffing this in a wall somewhere","speaker":null,"is_sponsor":0},{"start_s":746.0,"end_s":749.24,"text":"for industrial controls, you want to make sure this thing is operational","speaker":null,"is_sponsor":0},{"start_s":749.24,"end_s":753.36,"text":"if there's an issue, it fixes itself. Imagine if you had like 200 of them, right?","speaker":null,"is_sponsor":0},{"start_s":753.36,"end_s":757.36,"text":"In a perfect world, I just hooked that sensor pin right up to this board and be done with it.","speaker":null,"is_sponsor":0},{"start_s":757.36,"end_s":760.48,"text":"But unfortunately, electronics can sometimes be a bit more complicated.","speaker":null,"is_sponsor":0},{"start_s":760.48,"end_s":765.28,"text":"In our case, we need to add something called a pull-up resistor. And that just makes sure that when there's no pulse","speaker":null,"is_sponsor":0},{"start_s":765.28,"end_s":770.88,"text":"being sent, the sensor reads a high signal, like close to our voltage around five volts.","speaker":null,"is_sponsor":0},{"start_s":770.88,"end_s":775.24,"text":"If we didn't have that, the sensor wire can actually sometimes float between ground and five volts,","speaker":null,"is_sponsor":0},{"start_s":775.24,"end_s":779.92,"text":"which looks a lot like a pulse, which obviously we don't want.","speaker":null,"is_sponsor":0},{"start_s":779.92,"end_s":785.12,"text":"The pull-up resistor makes sure it's only ever reading the correct value, so it's very important to add.","speaker":null,"is_sponsor":0},{"start_s":785.12,"end_s":789.32,"text":"If you had an Arduino that was reading this sensor instead, they actually have a pull-up pin mode,","speaker":null,"is_sponsor":0},{"start_s":789.32,"end_s":792.88,"text":"which does it on the board. But in our case, we're just going to add one","speaker":null,"is_sponsor":0},{"start_s":792.88,"end_s":796.08,"text":"on this breadboard, and in the future, we'll just solder it into a piece of wire","speaker":null,"is_sponsor":0},{"start_s":796.08,"end_s":797.08,"text":"and be done with it.","speaker":null,"is_sponsor":0},{"start_s":803.68,"end_s":807.16,"text":"Does the flow sensor work? Yeah, we literally just finished wiring it.","speaker":null,"is_sponsor":0},{"start_s":808.16,"end_s":811.4,"text":"Is it in like a home assistant, or like, what is even going to control this?","speaker":null,"is_sponsor":0},{"start_s":811.4,"end_s":817.16,"text":"No, it can be, if you want. Right now, I just wrote a little script.","speaker":null,"is_sponsor":0},{"start_s":817.16,"end_s":820.4,"text":"Obviously, we have to interpret the data, because all we're getting is pulses.","speaker":null,"is_sponsor":0},{"start_s":820.4,"end_s":824.68,"text":"Luckily, they just give you a formula. You take the pulses per second, or hertz,","speaker":null,"is_sponsor":0},{"start_s":824.68,"end_s":828.76,"text":"and divide by 5.5, that's your leader per minute. So I made a little script to do that.","speaker":null,"is_sponsor":0},{"start_s":828.76,"end_s":835.12,"text":"Hey, nine liters per minute. So we're getting roughly, almost exactly, 50 pulses","speaker":null,"is_sponsor":0},{"start_s":835.12,"end_s":838.6,"text":"per second, 50 hertz. The heartbeat of the whole setup.","speaker":null,"is_sponsor":0},{"start_s":838.6,"end_s":844.56,"text":"And then if we go to the other sensor, which I did flow to, it's off right now.","speaker":null,"is_sponsor":0},{"start_s":844.56,"end_s":849.48,"text":"Right, no flow. Oh, no flow to the pool right now. So what we'll do is adjust this script","speaker":null,"is_sponsor":0},{"start_s":849.48,"end_s":853.72,"text":"to send that data to the PulseWay API, and then we can make whatever workflows we want","speaker":null,"is_sponsor":0},{"start_s":853.72,"end_s":857.52,"text":"in PulseWay, and then on top of that, we can just make a little script","speaker":null,"is_sponsor":0},{"start_s":857.52,"end_s":861.16,"text":"that sends it to Home Assistant, if you want. Super cool. Because Home Assistant also allows, like,","speaker":null,"is_sponsor":0},{"start_s":861.16,"end_s":865.2,"text":"custom components, so you can have it on your phone. Now that the pool loop is refilled and running,","speaker":null,"is_sponsor":0},{"start_s":865.2,"end_s":868.52,"text":"we should be able to take a look at our flow from both of the pumps.","speaker":null,"is_sponsor":0},{"start_s":868.52,"end_s":872.56,"text":"I found this cute little terminal app called TTYplot, and you can plumb data from a script to it,","speaker":null,"is_sponsor":0},{"start_s":872.56,"end_s":876.96,"text":"and it makes a little graph in your terminal. It's very cute. This top one is the local loop,","speaker":null,"is_sponsor":0},{"start_s":876.96,"end_s":881.6,"text":"so if I adjust the speed on the pump here, right now it's on low.","speaker":null,"is_sponsor":0},{"start_s":881.6,"end_s":885.44,"text":"If we go to high, hey, look at that.","speaker":null,"is_sponsor":0},{"start_s":885.44,"end_s":890.76,"text":"This is the outdoor loop, only pushing around five liters per minute,","speaker":null,"is_sponsor":0},{"start_s":890.76,"end_s":895.88,"text":"which is pretty low. And then the indoor loop seems to hang out around 10.","speaker":null,"is_sponsor":0},{"start_s":895.88,"end_s":899.92,"text":"Five liters per minute? Yeah, that's pretty bad. Oh, hey, look, everything's grounded.","speaker":null,"is_sponsor":0},{"start_s":899.92,"end_s":905.68,"text":"Yeah, look at that. It's all grounded. We won't be out for weeks. We were overthinking it.","speaker":null,"is_sponsor":0},{"start_s":905.68,"end_s":908.8,"text":"Each of them we just found a screw and put it underneath the screw.","speaker":null,"is_sponsor":0},{"start_s":908.8,"end_s":912.32,"text":"The only thing is we didn't ground it into the panel yet, so it's not technically grounded anything.","speaker":null,"is_sponsor":0},{"start_s":912.32,"end_s":915.68,"text":"Right. I did run the wire over there. Oh, okay. Mostly.","speaker":null,"is_sponsor":0},{"start_s":915.68,"end_s":920.36,"text":"Is this you? Yeah, I grounded it. Okay. We should probably shut the panel off before we open it.","speaker":null,"is_sponsor":0},{"start_s":920.36,"end_s":924.4,"text":"Yeah, where's the one for this? Oh, this one.","speaker":null,"is_sponsor":0},{"start_s":924.4,"end_s":928.08,"text":"Oh my gosh, okay. This is not an insulated screwdriver","speaker":null,"is_sponsor":0},{"start_s":928.08,"end_s":931.76,"text":"and is not rated for electrical work. The only reason I'm doing this","speaker":null,"is_sponsor":0},{"start_s":931.76,"end_s":936.16,"text":"is because this panel is completely off, de-energized.","speaker":null,"is_sponsor":0},{"start_s":936.16,"end_s":939.4,"text":"I do not recommend this. Don't try it at home, et cetera.","speaker":null,"is_sponsor":0},{"start_s":939.4,"end_s":945.48,"text":"Oh my goodness, who put this in here? The screw is shallow.","speaker":null,"is_sponsor":0},{"start_s":945.48,"end_s":948.56,"text":"It's just camming out every time. Can I try to do it? Hold on, hold on.","speaker":null,"is_sponsor":0},{"start_s":948.56,"end_s":950.72,"text":"We might not even need it. My God.","speaker":null,"is_sponsor":0},{"start_s":951.88,"end_s":957.12,"text":"Oh my God. Zero. Zero. Okay, so everything in here is safe.","speaker":null,"is_sponsor":0},{"start_s":957.12,"end_s":962.0,"text":"I mean, well, we hope. The rack is hooked up now. See, you got a little ground cable going in there.","speaker":null,"is_sponsor":0},{"start_s":962.0,"end_s":965.36,"text":"Definitely not spliced inside the panel. That one.","speaker":null,"is_sponsor":0},{"start_s":973.8,"end_s":977.64,"text":"Now that the flow sensors are working, let's wire up a leak sensor. Like I mentioned before,","speaker":null,"is_sponsor":0},{"start_s":977.64,"end_s":981.36,"text":"we have to apply power to one side. So we'll plug this into five volt here.","speaker":null,"is_sponsor":0},{"start_s":981.36,"end_s":985.72,"text":"And then the other side, instead of getting a pull up resistor, gets a pull down resistor.","speaker":null,"is_sponsor":0},{"start_s":985.72,"end_s":990.72,"text":"It functions in a very similar way, but instead of pulling the voltage up to your kind of voltage supply level,","speaker":null,"is_sponsor":0},{"start_s":990.72,"end_s":995.26,"text":"it's pulling it down to zero because the path goes to ground. The last thing we've got to do is adjust the sensor","speaker":null,"is_sponsor":0},{"start_s":995.26,"end_s":997.92,"text":"on the board to be a zero to 10 volt sensor.","speaker":null,"is_sponsor":0},{"start_s":999.04,"end_s":1003.44,"text":"We can see that it's reading about 0.17 volts","speaker":null,"is_sponsor":0},{"start_s":1003.44,"end_s":1006.6,"text":"when, in theory, nothing is connected.","speaker":null,"is_sponsor":0},{"start_s":1006.6,"end_s":1010.2,"text":"Okay, if I bridge this now with a screwdriver, which is metal,","speaker":null,"is_sponsor":0},{"start_s":1010.2,"end_s":1013.4,"text":"it goes from like 0.1 volts right up to five,","speaker":null,"is_sponsor":0},{"start_s":1013.4,"end_s":1018.16,"text":"which makes sense. When I let go, there's no path and it reads 0.14.","speaker":null,"is_sponsor":0},{"start_s":1018.16,"end_s":1020.16,"text":"Now we just need to try it with some water.","speaker":null,"is_sponsor":0},{"start_s":1021.52,"end_s":1025.04,"text":"Hey, it immediately registered 0.5 volts.","speaker":null,"is_sponsor":0},{"start_s":1025.04,"end_s":1028.6,"text":"Now, instead of printing this the terminal, let's send this data to Pulseway.","speaker":null,"is_sponsor":0},{"start_s":1028.6,"end_s":1034.0,"text":"Fortunately for us, Pulseway has a cool feature called custom fields and it allows you to attach custom bits of data","speaker":null,"is_sponsor":0},{"start_s":1034.0,"end_s":1037.64,"text":"to systems and entire site. You can do it globally if you want.","speaker":null,"is_sponsor":0},{"start_s":1037.64,"end_s":1041.28,"text":"Typically you would use this with their script system, say if you wanted to store the bit locker keys","speaker":null,"is_sponsor":0},{"start_s":1041.28,"end_s":1045.66,"text":"for all the systems on your network or the Windows licenses or check battery data,","speaker":null,"is_sponsor":0},{"start_s":1045.66,"end_s":1048.7,"text":"things that you would only need to read like once a day or something like that.","speaker":null,"is_sponsor":0},{"start_s":1048.7,"end_s":1053.88,"text":"But in our case, we want to read these sensors like every five seconds. Fortunately, they also have an API.","speaker":null,"is_sponsor":0},{"start_s":1053.88,"end_s":1057.6,"text":"So we can just edit our little script instead of printing it to the console,","speaker":null,"is_sponsor":0},{"start_s":1057.6,"end_s":1062.48,"text":"send it to the Pulseway API and then that'll set the data. While I don't technically need the Pulseway agent","speaker":null,"is_sponsor":0},{"start_s":1062.48,"end_s":1066.8,"text":"running on our sensor Raspberry Pi, I'm gonna install it anyways because then we can have monitoring.","speaker":null,"is_sponsor":0},{"start_s":1066.8,"end_s":1071.64,"text":"Obviously if the sensor Raspberry Pi dies, that would be not great and we'd want to know about that.","speaker":null,"is_sponsor":0},{"start_s":1071.64,"end_s":1076.92,"text":"Once it is installed, it's really easy to connect to the account. They actually have a command called Pulseway registration.","speaker":null,"is_sponsor":0},{"start_s":1076.92,"end_s":1080.32,"text":"Just go register, no proxy, custom server, yes.","speaker":null,"is_sponsor":0},{"start_s":1080.32,"end_s":1084.4,"text":"It just pops out this big QR code. And bam, it updates the config file","speaker":null,"is_sponsor":0},{"start_s":1084.4,"end_s":1087.72,"text":"and starts running Pulseway. We should be able to see it in the Pulseway window now.","speaker":null,"is_sponsor":0},{"start_s":1087.72,"end_s":1092.16,"text":"Hey, look at that, dream house sensor Pi for, now let's send some data.","speaker":null,"is_sponsor":0},{"start_s":1092.16,"end_s":1095.52,"text":"I went ahead and created a couple of custom fields in Pulseway, one for the flow rate","speaker":null,"is_sponsor":0},{"start_s":1095.52,"end_s":1099.64,"text":"of the loop inside the house and one for the flow rate of the loop that goes to the pool.","speaker":null,"is_sponsor":0},{"start_s":1099.64,"end_s":1105.68,"text":"And then when we run this, output updated account, 9.45.","speaker":null,"is_sponsor":0},{"start_s":1105.68,"end_s":1111.44,"text":"And then if we go to the site, if we go to Sebastian, dream house, custom fields,","speaker":null,"is_sponsor":0},{"start_s":1111.44,"end_s":1115.36,"text":"we can see that it's 9.45. Let's see if it stays that way.","speaker":null,"is_sponsor":0},{"start_s":1115.36,"end_s":1118.36,"text":"If I go ahead and turn the pump down,","speaker":null,"is_sponsor":0},{"start_s":1118.36,"end_s":1121.48,"text":"boom, 8.72, perfect.","speaker":null,"is_sponsor":0},{"start_s":1121.48,"end_s":1127.2,"text":"Now we just have to install Pulseway on some machines so we can make them turn off when bad things happen.","speaker":null,"is_sponsor":0},{"start_s":1127.2,"end_s":1131.76,"text":"We're first gonna make a workflow in Pulseway. I made one here called shut off water cooled computers.","speaker":null,"is_sponsor":0},{"start_s":1131.76,"end_s":1136.04,"text":"Ideally you would make a system group and then put all the systems in it, but for now we're just gonna use this one,","speaker":null,"is_sponsor":0},{"start_s":1136.04,"end_s":1140.0,"text":"which is LAN 5 and just set that manually. I'm creating this as an ad hoc workflow,","speaker":null,"is_sponsor":0},{"start_s":1140.0,"end_s":1143.84,"text":"which means you have to manually trigger it, but you can also set them up to run on a schedule,","speaker":null,"is_sponsor":0},{"start_s":1143.84,"end_s":1148.08,"text":"say like every day at 2 a.m. Or you can set it to run based off of a notification","speaker":null,"is_sponsor":0},{"start_s":1148.08,"end_s":1152.92,"text":"like CPU usage too high or disk full. Then we just say shut down.","speaker":null,"is_sponsor":0},{"start_s":1152.96,"end_s":1158.52,"text":"And there isn't an option to just shut off computer because this is like an IT management solution, right?","speaker":null,"is_sponsor":0},{"start_s":1158.52,"end_s":1163.2,"text":"Generally you don't want to like fully shut off on computer because now you can't manage it anymore.","speaker":null,"is_sponsor":0},{"start_s":1163.2,"end_s":1166.52,"text":"They do have an option for reboot, but we're gonna say execute a PowerShell command","speaker":null,"is_sponsor":0},{"start_s":1166.52,"end_s":1171.96,"text":"of shut down. I'm also gonna add a send email task if the condition check fails","speaker":null,"is_sponsor":0},{"start_s":1171.96,"end_s":1178.72,"text":"because it would be a little weird for this workflow to get triggered and then the custom field read a value that's fine.","speaker":null,"is_sponsor":0},{"start_s":1178.72,"end_s":1184.32,"text":"Like there's something wrong at that point. So we should get notified if that's the case.","speaker":null,"is_sponsor":0},{"start_s":1184.32,"end_s":1187.88,"text":"If the flow goes below one liter per minute, it should shut off LAN 5.","speaker":null,"is_sponsor":0},{"start_s":1187.88,"end_s":1193.44,"text":"It should have done it. Did it do it? Uh, I wouldn't say that.","speaker":null,"is_sponsor":0},{"start_s":1195.12,"end_s":1200.4,"text":"It's definitely run the workflow. You're about to be signed out. Windows will shut down in less than a minute.","speaker":null,"is_sponsor":0},{"start_s":1200.4,"end_s":1204.52,"text":"What, no way. Wait, it's gonna shut down in a minute, it says?","speaker":null,"is_sponsor":0},{"start_s":1204.52,"end_s":1208.0,"text":"It says less than a minute. She's shutting down, boys.","speaker":null,"is_sponsor":0},{"start_s":1208.0,"end_s":1211.28,"text":"That's great. Maybe I need to adjust that script a little bit to make it a little more urgent","speaker":null,"is_sponsor":0},{"start_s":1211.28,"end_s":1217.28,"text":"in terms of the shutting down, but not bad. Yeah, and when we combine that with the leak sensors,","speaker":null,"is_sponsor":0},{"start_s":1217.28,"end_s":1224.4,"text":"basically we can set it so that in the event that something goes bad, everything shuts off.","speaker":null,"is_sponsor":0},{"start_s":1224.4,"end_s":1228.0,"text":"The last part of our little electronics project here is being able to turn the pumps on and off.","speaker":null,"is_sponsor":0},{"start_s":1228.0,"end_s":1231.0,"text":"So if we detect a leak from one of the leak sensors,","speaker":null,"is_sponsor":0},{"start_s":1231.0,"end_s":1234.36,"text":"we can shut off the pump and limit the amount of water that gets out and the amount of damage.","speaker":null,"is_sponsor":0},{"start_s":1234.36,"end_s":1241.48,"text":"How do you do that? With relays. Each of these is a 40 amp, 250 volt relay,","speaker":null,"is_sponsor":0},{"start_s":1241.56,"end_s":1245.36,"text":"which is way overkill for what we need.","speaker":null,"is_sponsor":0},{"start_s":1245.36,"end_s":1251.08,"text":"I can just plug a serial cable into this, which is, in this case, an Ethernet cable,","speaker":null,"is_sponsor":0},{"start_s":1251.08,"end_s":1255.08,"text":"and plug the other side into our sensor board and then control this remotely","speaker":null,"is_sponsor":0},{"start_s":1255.08,"end_s":1259.0,"text":"from the Raspberry Pi and the sensor board. That means we can put this right next to the pumps,","speaker":null,"is_sponsor":0},{"start_s":1259.0,"end_s":1263.72,"text":"run an Ethernet cable back over here, and Bob's rungo, we can control the pumps remotely.","speaker":null,"is_sponsor":0},{"start_s":1263.72,"end_s":1266.92,"text":"Long term, I think we could mount it in the big isolation transformer box.","speaker":null,"is_sponsor":0},{"start_s":1266.92,"end_s":1270.64,"text":"That actually has a switch already, so we could probably just wire this up to the switch,","speaker":null,"is_sponsor":0},{"start_s":1270.64,"end_s":1276.16,"text":"but for now, we're just gonna do this to try it. This is not my finest work,","speaker":null,"is_sponsor":0},{"start_s":1276.16,"end_s":1279.52,"text":"but I've spliced the relay in between the load wire","speaker":null,"is_sponsor":0},{"start_s":1279.52,"end_s":1284.64,"text":"on this power bar. And these are all connected with Wego nuts, so they should be relatively safe.","speaker":null,"is_sponsor":0},{"start_s":1284.64,"end_s":1288.32,"text":"And if we plug this in, this power bar should not be powered.","speaker":null,"is_sponsor":0},{"start_s":1288.32,"end_s":1289.92,"text":"Dun dun, dun dun.","speaker":null,"is_sponsor":0},{"start_s":1292.36,"end_s":1297.48,"text":"Power bar, not powered, that's good. And now, let's plug in the relay board.","speaker":null,"is_sponsor":0},{"start_s":1297.48,"end_s":1302.04,"text":"It does need its own source of power, specifically 12 volt instead of five volt this time.","speaker":null,"is_sponsor":0},{"start_s":1302.04,"end_s":1305.76,"text":"So we'll wire that up here. There's also a few dip switches you wanna toggle.","speaker":null,"is_sponsor":0},{"start_s":1305.76,"end_s":1310.2,"text":"On this board, we enabled TX and RX, and then the termination switch,","speaker":null,"is_sponsor":0},{"start_s":1310.2,"end_s":1314.88,"text":"and then we just did the termination switch on this side. That's because each of these is the end device.","speaker":null,"is_sponsor":0},{"start_s":1314.88,"end_s":1319.48,"text":"If you had a bunch in between, daisy chains, you would just turn the termination one on,","speaker":null,"is_sponsor":0},{"start_s":1319.48,"end_s":1323.08,"text":"on each one on the end. If the board was mounted directly on the Raspberry Pi,","speaker":null,"is_sponsor":0},{"start_s":1323.08,"end_s":1326.72,"text":"we could use their command line library directly. But instead, since it's going over serial,","speaker":null,"is_sponsor":0},{"start_s":1326.72,"end_s":1330.68,"text":"I had to turn off the serial functionality on there, so it's just passing through,","speaker":null,"is_sponsor":0},{"start_s":1330.68,"end_s":1337.2,"text":"and then enable serial on the Raspberry Pi. And in theory, hey, cool.","speaker":null,"is_sponsor":0},{"start_s":1337.2,"end_s":1343.2,"text":"You see him clicking? Now, we can plug this in.","speaker":null,"is_sponsor":0},{"start_s":1346.08,"end_s":1351.64,"text":"You ready? On, see that's lit up, and then we go off.","speaker":null,"is_sponsor":0},{"start_s":1351.68,"end_s":1354.8,"text":"Now I've just gotta make a little script to toggle it based on the leak sensor,","speaker":null,"is_sponsor":0},{"start_s":1354.8,"end_s":1360.0,"text":"and hope it works. So we've done the demo, where if the pump fails, the systems turn off.","speaker":null,"is_sponsor":0},{"start_s":1360.0,"end_s":1365.24,"text":"But what we haven't demoed, is if a leak sensor gets triggered, the pump turns off.","speaker":null,"is_sponsor":0},{"start_s":1365.24,"end_s":1368.24,"text":"Well, let's do it. Okay. I'll go lick a leak sensor.","speaker":null,"is_sponsor":0},{"start_s":1369.36,"end_s":1372.8,"text":"Five volts not gonna hurt. I've licked a battery before us. But how many amps is it?","speaker":null,"is_sponsor":0},{"start_s":1372.8,"end_s":1376.56,"text":"Five amps, it's fine. Five amps? Yeah. I wouldn't lick that.","speaker":null,"is_sponsor":0},{"start_s":1376.56,"end_s":1379.92,"text":"I'm gonna lick it. I wouldn't lick that. I'm gonna do it. Well, make sure you get it on camera.","speaker":null,"is_sponsor":0},{"start_s":1379.92,"end_s":1383.84,"text":"Fine, fine, I won't lick it. I'll just dip it in the water on the floor. Go for it.","speaker":null,"is_sponsor":0},{"start_s":1383.84,"end_s":1385.52,"text":"And dip.","speaker":null,"is_sponsor":0},{"start_s":1387.36,"end_s":1391.64,"text":"Oh my God. Right, we've got a light on that same power bar.","speaker":null,"is_sponsor":0},{"start_s":1391.64,"end_s":1395.64,"text":"Oh, well did the flow stop? I didn't, yeah. Okay, now let me un-lick.","speaker":null,"is_sponsor":0},{"start_s":1395.64,"end_s":1399.04,"text":"Okay, obviously we have to fix up the wiring here a little bit.","speaker":null,"is_sponsor":0},{"start_s":1399.04,"end_s":1402.08,"text":"Is it going? And she's going. Hey!","speaker":null,"is_sponsor":0},{"start_s":1403.32,"end_s":1406.84,"text":"So theoretically, well there's a lot more protections","speaker":null,"is_sponsor":0},{"start_s":1406.84,"end_s":1410.32,"text":"than there were before. Most of them are just sitting on the concrete floor.","speaker":null,"is_sponsor":0},{"start_s":1410.32,"end_s":1412.56,"text":"So if it leaks, I'm sure they'll work great.","speaker":null,"is_sponsor":0},{"start_s":1413.72,"end_s":1417.32,"text":"I have a box, we'll put it all in a box. We'll make it nice. You know, it also worked great.","speaker":null,"is_sponsor":0},{"start_s":1417.32,"end_s":1421.68,"text":"Thank you so much for sponsoring this video. Pulseway is your solution for remote management","speaker":null,"is_sponsor":0},{"start_s":1421.68,"end_s":1426.64,"text":"of all manner of systems, not just janky basement water cooled ones.","speaker":null,"is_sponsor":0},{"start_s":1426.64,"end_s":1430.4,"text":"Yeah, we built our own monitoring system and then used Pulseway to do all the system stuff.","speaker":null,"is_sponsor":0},{"start_s":1430.4,"end_s":1435.24,"text":"And they have a fully featured mobile app so you can diagnose and even fix problems on the go.","speaker":null,"is_sponsor":0},{"start_s":1435.24,"end_s":1439.6,"text":"Yeah, like if your pump stops working, you'll know, even when you're in France.","speaker":null,"is_sponsor":0},{"start_s":1439.6,"end_s":1443.64,"text":"There's updates, temperature monitoring. You won't be able to do anything about it.","speaker":null,"is_sponsor":0},{"start_s":1443.64,"end_s":1446.68,"text":"Disc usage monitoring. But you'll know. Yeah, you can call your team.","speaker":null,"is_sponsor":0},{"start_s":1446.68,"end_s":1450.24,"text":"Get them to do it. You think I'm gonna come to your house and fix your water cooling while you're in France?","speaker":null,"is_sponsor":0},{"start_s":1450.24,"end_s":1453.36,"text":"It's the Pulseway pitch. Oh, that would be helpful.","speaker":null,"is_sponsor":0}],"full_text":"On our last episode of Linus Tech Disasters, one of the custom liquid-cooled gaming machines in my home rack sprung a leak, pouring gallons of water over every system beneath it. And my initial thought was, oh, I forgot to screw in a fitting. But as it turned out, despite taking precautions to prevent it, it wasn't a fitting not being screwed in. It was a fitting completely corroding off of the block. Maybe some of the metals in our loop are incompatible. Nope, after spending hours inspecting them, every other system's fittings were spotless, not a hint of corrosion to be seen. I was so dumbfounded that I turned to the YouTube comments for help and it actually worked. There was a strong consensus on what the problem was. So today, with the help of Pulseway, who sponsored this video, we're gonna hopefully rectify this silent killer and add a remote monitoring system so that if there ever is another leak, hey, at least I'll know about it before I come home at the end of the day and find that my computer peed itself. The first really good community theory was that the fancy fuel hose we were using as our tubing might use steel webbing to reinforce it, which could introduce galvanic corrosion, but this was actually due to a miscommunication on my part. It's not fuel hose, it's a general purpose hose, and it uses a textile reinforcement rather than steel, so we could scratch that one. Another interesting theory was that a microcrack in the delrin plastic of the GPU block might have allowed the steel screws that hold it down to come in contact with the water, but a close visual inspection reveals no cracks, and the threading for all of those screws is completely clean, which suggests that no corrosion occurred there. A third theory was that a flaw in the plating of the affected fittings could allow galvanic corrosion to occur with the underlying metal, which would explain why some of them were eaten while others remained perfect. But the thing is, when you or EK in this case is designing anything that involves metal and water, galvanic corrosion is something that they carefully consider. So, while the most obvious way to avoid corrosion is to never mix metals, there are many metals that are safe to mix, especially when they're not directly connected, and the underlying material of these fittings is brass, which, if you consult this anodic index, should be fine with the copper and other metals in our loop. Should be fine. The story changes when you apply a voltage, and well, we obviously weren't intentionally doing that when you have a large power draw in one spot, like a couple thousand watts of computers in a rack, and a low power draw in another spot, like a couple hundred watts from a pump, you're gonna end up with a difference in voltage between them, which accelerates corrosion dramatically, and can make compatible metals far less compatible. But the good news is for this solution, oh boy, we don't have to worry about the details. This is an isolation transformer, and you might be familiar with transformers, you would use one to take a low voltage and make it a higher voltage, or vice versa. Sure, like to run your sewing machine from Asia. Yeah, if you're in a different country, that's a big one. In this case, it's 120 volt on both sides. You see that? Made in Canada, thanks Hammond Manufacturing, but it decouples the circuit giving us galvanic isolation, or preventing a loop. So in a nutshell, we're taking anything that's plugged into this guy, and we're giving it absolutely no path back to the main panel. It's almost like Wi-Fi for your electricity. I feel like our analogies are making this worse. The point is, no voltage difference. Wrap it before you tap it. Where do you want to put this thing? How about up here? On top of the tank? The tank full of water? I mean, it should be fine, right? Yeah, I mean. Realistically, while we're here, I should probably have the pumps running off the UPS. You'd have to run an extension cord all the way over there. Conveniently. Is that an extension cord that's all the way right there? Yeah, I really don't think that's longer than that. I don't think it's worse than that. Yeah, I don't think it's longer than that. Look how long that is. That's a 25-footer. It'll work. You want to bet everyone's lunch on it? If I'm right, you pay for everyone's lunch. If I'm wrong, nothing happens. Fine. It has to go all the way down to plug into the bottom UPS. It has to be managed. Sure. He's literally trying to cable manage it as much as possible to prevent it from reaching. Dude, these are so satisfying. I will admit, they are quite good. LTTstore.com, let's go. That might be the best thing you've ever done. My kid's right there. What? No, he's not. Probably somewhere. It's gonna be so funny when you lose. Wow, it reaches. No way, no way. You're buying everyone's lunch. Get wrecked. Fine. Even though I owe him lunch, technically? Yeah. One of the big things that you guys said was, hey, no matter what caused this problem, you should really have monitoring in place so that if it were to ever happen again, you would know. And on top of that, we can make automation. So if there's a leak, shut off the pumps. Yeah, it's going to be good. Theoretically, everything is fine now. I mean, but. Maybe. But that doesn't mean we're going to stop here. OK, what's next? Grounding. Grounding. All right. You're not going out for a week. Says who? You going to stop me? I have your stepdad's number. Keyword being step. Are you going to take that? He might actually see this. To take things to another level, we're going to follow another recommendation that came up a lot in the comments. Some of you noticed that I never grounded my rack. While the systems themselves are theoretically grounded using the third prong of the plug that we plug into them, the rack itself is not necessarily connected to ground. So we've got a whole bunch of these grounding leads. And then what? We just connect these from the back of every chassis to the rack? You could. But we also got this. Here, catch. Like a grounding bus bar. So you just stick that in the rack and then screw all the little thingies onto it. Keyword management. No, no, we got this. We got this. OK. Oh, that just barely fits. Yeah, so that could go right there. It's almost like it's made for a rack. Naturally, we have to ground our grounding bar to something for it to work as a grounding bar. Unfortunately, the rack is a bit of a ways from the panel. And our electrician who is going to do this properly for us is unavailable today. So instead, we're going to have to open up the panel and tie the wires directly into the grounding bar. It also means I didn't have the correct wire. So Linus happened to have these two pretty thick gauge wires. So we're going to use those instead. I also didn't have the correct connectors. So I cut these Hammond ones, butt connected them onto the long wire, and now we have the right connector. Is this how you should do this? Probably not. But it's just a ground. It's probably right, Rhys. I don't know what I'm doing. Got it? Hey, it worked. There we go, grounded. I'm going to let Linus be the one to open the panel and stick his fingers in there because it's his house. So we're just going to leave this for now. Hammond sent us these sick little grounding kits, and they have little just blade connectors. So you hook one set up to the server, one set up to the grounding bar, and then if you need to take the server out for some reason, you can easily disconnect it. Let's try it with one of Linus's Nasty units here. Let's screw that. Look at that. Wow. Now we just repeat like 10 times. While Rhys works on getting all the systems grounded, let's talk sensors. We have three different types. Starting with our leak sensor, although calling it a sensor might be a bit generous. This is basically just like two wires. You apply voltage to one side, and as your leak bridges the gap with water, it creates an electrical connection between the other side, and on that side, you're just sensing for any voltage. So when there's no water, it should be zero volts-ish, and when there is water, say if we did five volts on this side, or probably should like one, or two volts on this side. So that works. And then we've got a flow sensor. This one is really just to tell us if, say, the water runs out, or the pump stops working, which would obviously be bad, because then the water inside the computers would boil, which might cause a leak. This way we can notify ourselves if the water is not flowing, and then we've also got a little float switch. Very simple. This one, if it's at the bottom current passes, if it's at the top current doesn't pass. So we stick it in the water tank here, at the top, and we can tell if it's full or not. I should do not, this is how we're gonna test it later. But before we can install it, we have to drain the loop, which is going to be interesting. This valve is open, and nothing is coming out. I saw a comment. Somebody said they had experience with hose bibs like that, and they said that some of the manufacturers started using really crappy cheap materials in them that are not necessarily compatible with plumbing, and I just looked up in there, and you know what I saw? Corrosion. I read the comment, and I was like, this is too stupid to be true. Linus! Guess what doesn't happen when you open this hose bib? Oh, no. You're ballsy. Let's take your phone light up there. Uh-oh. Can you imagine if that's literally what caused all of this? You've gotta be kidding me. You know, whole room water cooling was exactly the same thing. It was a vendor cheeping out on the parts. That reservoir was supposed to be stainless steel. I mean, you should've just used a plastic one. But it wasn't made of stainless steel. I used a plastic one. Yeah, you also were the one who specced this. Supposedly brass hose bibs, smart guy. I bought it from a plumbing store. So it looks like we were both bamboozled. You don't get to be all... Yeah, but at least my idea was like a good one. It's also good that I got this particulate filter. Yeah. It's plastic, actually. Oh, it's a polypropylene, I think. Nice. Oh, no, it's polyester. It's like a t-shirt, basically. What are these made of? Ah, well, those are metal, but that's the same type that's already in the loop. Because I don't feel like going to the plumbing store and because I don't trust those things ever again, I'm going to make my own valve. I've got a little guy and a little valve. Oh, look, I fixed the leak. Just gonna get water everywhere. Ooh. We have to make sure that we put it the right way. There's these very helpful arrows that I should follow. Oh, look, I even drew arrows on the tubes. So I just matched the arrow with the arrow and then I can't screw it up. Hey, Reese, you leak tested this filter, right? Filter installed. Is that closed? Beautiful. Water in the filter, yay. The sensors are great and all, but they don't exactly work without something to read them. In the past, we've bought little like relay or input output boards for Z-Wave or Wi-Fi on Amazon. But if you've seen anything about how Linus's wireless has been working, eh, I wanted something hardwired. And then I stumbled upon a company called Sequent Micro Systems, which sounds super nerdy and to be honest, it kind of is. All they sell are these custom home and industrial automation boards. And this one, which is a Raspberry Pi hat, just plugs into a Raspberry Pi. Weep, this one has 16 universal sensors on it. That means we could handle all seven of the gaming computers in here for leak sensors. We could put a couple on the floor, our two flow sensors and still have room to spare. It was a little complicated to get set up, but they actually had really good customer service. The guy was emailing me back within the hour, responding. They have a bunch of different boards. You can get ones that have some sensors, some power outputs, you can get ones that have MOSFETs, you can get ones that have just cereal. Like, they make a lot of different products and it's actually pretty awesome. This one in particular requires separate power. So you plug in a five volt power lead here and then it powers the Raspberry Pi through it directly. There's also a battery for a real time clock that's on the board that they use for hardware monitoring. So if the Raspberry Pi becomes unresponsive, this board can reboot the Raspberry Pi. It's one of those things where you wouldn't really think about it for a house setup, but if you were stuffing this in a wall somewhere for industrial controls, you want to make sure this thing is operational if there's an issue, it fixes itself. Imagine if you had like 200 of them, right? In a perfect world, I just hooked that sensor pin right up to this board and be done with it. But unfortunately, electronics can sometimes be a bit more complicated. In our case, we need to add something called a pull-up resistor. And that just makes sure that when there's no pulse being sent, the sensor reads a high signal, like close to our voltage around five volts. If we didn't have that, the sensor wire can actually sometimes float between ground and five volts, which looks a lot like a pulse, which obviously we don't want. The pull-up resistor makes sure it's only ever reading the correct value, so it's very important to add. If you had an Arduino that was reading this sensor instead, they actually have a pull-up pin mode, which does it on the board. But in our case, we're just going to add one on this breadboard, and in the future, we'll just solder it into a piece of wire and be done with it. Does the flow sensor work? Yeah, we literally just finished wiring it. Is it in like a home assistant, or like, what is even going to control this? No, it can be, if you want. Right now, I just wrote a little script. Obviously, we have to interpret the data, because all we're getting is pulses. Luckily, they just give you a formula. You take the pulses per second, or hertz, and divide by 5.5, that's your leader per minute. So I made a little script to do that. Hey, nine liters per minute. So we're getting roughly, almost exactly, 50 pulses per second, 50 hertz. The heartbeat of the whole setup. And then if we go to the other sensor, which I did flow to, it's off right now. Right, no flow. Oh, no flow to the pool right now. So what we'll do is adjust this script to send that data to the PulseWay API, and then we can make whatever workflows we want in PulseWay, and then on top of that, we can just make a little script that sends it to Home Assistant, if you want. Super cool. Because Home Assistant also allows, like, custom components, so you can have it on your phone. Now that the pool loop is refilled and running, we should be able to take a look at our flow from both of the pumps. I found this cute little terminal app called TTYplot, and you can plumb data from a script to it, and it makes a little graph in your terminal. It's very cute. This top one is the local loop, so if I adjust the speed on the pump here, right now it's on low. If we go to high, hey, look at that. This is the outdoor loop, only pushing around five liters per minute, which is pretty low. And then the indoor loop seems to hang out around 10. Five liters per minute? Yeah, that's pretty bad. Oh, hey, look, everything's grounded. Yeah, look at that. It's all grounded. We won't be out for weeks. We were overthinking it. Each of them we just found a screw and put it underneath the screw. The only thing is we didn't ground it into the panel yet, so it's not technically grounded anything. Right. I did run the wire over there. Oh, okay. Mostly. Is this you? Yeah, I grounded it. Okay. We should probably shut the panel off before we open it. Yeah, where's the one for this? Oh, this one. Oh my gosh, okay. This is not an insulated screwdriver and is not rated for electrical work. The only reason I'm doing this is because this panel is completely off, de-energized. I do not recommend this. Don't try it at home, et cetera. Oh my goodness, who put this in here? The screw is shallow. It's just camming out every time. Can I try to do it? Hold on, hold on. We might not even need it. My God. Oh my God. Zero. Zero. Okay, so everything in here is safe. I mean, well, we hope. The rack is hooked up now. See, you got a little ground cable going in there. Definitely not spliced inside the panel. That one. Now that the flow sensors are working, let's wire up a leak sensor. Like I mentioned before, we have to apply power to one side. So we'll plug this into five volt here. And then the other side, instead of getting a pull up resistor, gets a pull down resistor. It functions in a very similar way, but instead of pulling the voltage up to your kind of voltage supply level, it's pulling it down to zero because the path goes to ground. The last thing we've got to do is adjust the sensor on the board to be a zero to 10 volt sensor. We can see that it's reading about 0.17 volts when, in theory, nothing is connected. Okay, if I bridge this now with a screwdriver, which is metal, it goes from like 0.1 volts right up to five, which makes sense. When I let go, there's no path and it reads 0.14. Now we just need to try it with some water. Hey, it immediately registered 0.5 volts. Now, instead of printing this the terminal, let's send this data to Pulseway. Fortunately for us, Pulseway has a cool feature called custom fields and it allows you to attach custom bits of data to systems and entire site. You can do it globally if you want. Typically you would use this with their script system, say if you wanted to store the bit locker keys for all the systems on your network or the Windows licenses or check battery data, things that you would only need to read like once a day or something like that. But in our case, we want to read these sensors like every five seconds. Fortunately, they also have an API. So we can just edit our little script instead of printing it to the console, send it to the Pulseway API and then that'll set the data. While I don't technically need the Pulseway agent running on our sensor Raspberry Pi, I'm gonna install it anyways because then we can have monitoring. Obviously if the sensor Raspberry Pi dies, that would be not great and we'd want to know about that. Once it is installed, it's really easy to connect to the account. They actually have a command called Pulseway registration. Just go register, no proxy, custom server, yes. It just pops out this big QR code. And bam, it updates the config file and starts running Pulseway. We should be able to see it in the Pulseway window now. Hey, look at that, dream house sensor Pi for, now let's send some data. I went ahead and created a couple of custom fields in Pulseway, one for the flow rate of the loop inside the house and one for the flow rate of the loop that goes to the pool. And then when we run this, output updated account, 9.45. And then if we go to the site, if we go to Sebastian, dream house, custom fields, we can see that it's 9.45. Let's see if it stays that way. If I go ahead and turn the pump down, boom, 8.72, perfect. Now we just have to install Pulseway on some machines so we can make them turn off when bad things happen. We're first gonna make a workflow in Pulseway. I made one here called shut off water cooled computers. Ideally you would make a system group and then put all the systems in it, but for now we're just gonna use this one, which is LAN 5 and just set that manually. I'm creating this as an ad hoc workflow, which means you have to manually trigger it, but you can also set them up to run on a schedule, say like every day at 2 a.m. Or you can set it to run based off of a notification like CPU usage too high or disk full. Then we just say shut down. And there isn't an option to just shut off computer because this is like an IT management solution, right? Generally you don't want to like fully shut off on computer because now you can't manage it anymore. They do have an option for reboot, but we're gonna say execute a PowerShell command of shut down. I'm also gonna add a send email task if the condition check fails because it would be a little weird for this workflow to get triggered and then the custom field read a value that's fine. Like there's something wrong at that point. So we should get notified if that's the case. If the flow goes below one liter per minute, it should shut off LAN 5. It should have done it. Did it do it? Uh, I wouldn't say that. It's definitely run the workflow. You're about to be signed out. Windows will shut down in less than a minute. What, no way. Wait, it's gonna shut down in a minute, it says? It says less than a minute. She's shutting down, boys. That's great. Maybe I need to adjust that script a little bit to make it a little more urgent in terms of the shutting down, but not bad. Yeah, and when we combine that with the leak sensors, basically we can set it so that in the event that something goes bad, everything shuts off. The last part of our little electronics project here is being able to turn the pumps on and off. So if we detect a leak from one of the leak sensors, we can shut off the pump and limit the amount of water that gets out and the amount of damage. How do you do that? With relays. Each of these is a 40 amp, 250 volt relay, which is way overkill for what we need. I can just plug a serial cable into this, which is, in this case, an Ethernet cable, and plug the other side into our sensor board and then control this remotely from the Raspberry Pi and the sensor board. That means we can put this right next to the pumps, run an Ethernet cable back over here, and Bob's rungo, we can control the pumps remotely. Long term, I think we could mount it in the big isolation transformer box. That actually has a switch already, so we could probably just wire this up to the switch, but for now, we're just gonna do this to try it. This is not my finest work, but I've spliced the relay in between the load wire on this power bar. And these are all connected with Wego nuts, so they should be relatively safe. And if we plug this in, this power bar should not be powered. Dun dun, dun dun. Power bar, not powered, that's good. And now, let's plug in the relay board. It does need its own source of power, specifically 12 volt instead of five volt this time. So we'll wire that up here. There's also a few dip switches you wanna toggle. On this board, we enabled TX and RX, and then the termination switch, and then we just did the termination switch on this side. That's because each of these is the end device. If you had a bunch in between, daisy chains, you would just turn the termination one on, on each one on the end. If the board was mounted directly on the Raspberry Pi, we could use their command line library directly. But instead, since it's going over serial, I had to turn off the serial functionality on there, so it's just passing through, and then enable serial on the Raspberry Pi. And in theory, hey, cool. You see him clicking? Now, we can plug this in. You ready? On, see that's lit up, and then we go off. Now I've just gotta make a little script to toggle it based on the leak sensor, and hope it works. So we've done the demo, where if the pump fails, the systems turn off. But what we haven't demoed, is if a leak sensor gets triggered, the pump turns off. Well, let's do it. Okay. I'll go lick a leak sensor. Five volts not gonna hurt. I've licked a battery before us. But how many amps is it? Five amps, it's fine. Five amps? Yeah. I wouldn't lick that. I'm gonna lick it. I wouldn't lick that. I'm gonna do it. Well, make sure you get it on camera. Fine, fine, I won't lick it. I'll just dip it in the water on the floor. Go for it. And dip. Oh my God. Right, we've got a light on that same power bar. Oh, well did the flow stop? I didn't, yeah. Okay, now let me un-lick. Okay, obviously we have to fix up the wiring here a little bit. Is it going? And she's going. Hey! So theoretically, well there's a lot more protections than there were before. Most of them are just sitting on the concrete floor. So if it leaks, I'm sure they'll work great. I have a box, we'll put it all in a box. We'll make it nice. You know, it also worked great. Thank you so much for sponsoring this video. Pulseway is your solution for remote management of all manner of systems, not just janky basement water cooled ones. Yeah, we built our own monitoring system and then used Pulseway to do all the system stuff. And they have a fully featured mobile app so you can diagnose and even fix problems on the go. Yeah, like if your pump stops working, you'll know, even when you're in France. There's updates, temperature monitoring. You won't be able to do anything about it. Disc usage monitoring. But you'll know. Yeah, you can call your team. Get them to do it. You think I'm gonna come to your house and fix your water cooling while you're in France? It's the Pulseway pitch. Oh, that would be helpful."}