Water-Cooled Raspberry Pi 4 Cluster

by thediylife in Circuits > Raspberry Pi

18461 Views, 138 Favorites, 0 Comments

Water-Cooled Raspberry Pi 4 Cluster

Building A Water Cooled Raspberry Pi 4 Cluster.jpg
Water Cooled Raspberry Pi 4 Cluster At Night.jpg
Building A Water Cooled Raspberry Pi 4 Cluster

A couple of weeks ago I built a water-cooled Raspberry Pi 4. It was a fun project and it came out looking pretty good, but was obviously crazy overkill for a single Raspberry Pi. This isn't actually why I bought the water-cooling kit, I bought it along with 7 other Raspberry Pis to try building my own water-cooled Pi cluster.

While water cooling a single Pi doesn't make much sense, it's actually quite an effective solution for a cluster. A single large fan means less noise and it actually works out cheaper than many other fan and heat sink solutions given that you'd need to buy 8 of them.

For those of you who don't know what a Pi cluster is, it's essentially a set of two or more Pis that are connected together over a network and work together to perform computing tasks by sharing the load.

If you enjoy this Instructable, please consider voting for it in the Make It Glow contest!

Supplies

To build my Pi cluster, I got together 8 Raspberry Pis, a network switch, a PC water cooling kit, some cooling blocks and then a bunch of network cables, USB charging cables, standoffs and screws.

Here's a summary list of the basic parts required with some suggested purchase links:

Some of the links above are affiliate links. By making a purchase through the links, you'll be helping to support my projects at no extra cost to you.

Making the Cooling Block Brackets

Laser Cutting Cooling Brackets.jpg
Water Cooling Block Bracket.jpg
Gluing Brackets Together.jpg
Spacer Blocks Installed.jpg
Water Cooling Blocks.jpg

I started off by making up 8 acrylic brackets to hold the cooling blocks in place over the CPU. These brackets were the same design I had used previously to cool the single Pi and consist of two acrylic parts that are glued together.

I laser cut the brackets from some 3mm translucent red acrylic.

I then also cut an aluminium spacer to put between the cooling block and the Raspberry Pi, to lift the inlet and outlet on the block a bit higher so that they clear the display connector. I put a drop of thermal paste between the spacer and the cooling block to help with conduction.

Mounting the Cooling Water Blocks

Installing Standoffs On Each Pi.jpg
Cooling Block Mounted With Standoffs.jpg

I then mounted the cooling blocks onto the 8 Raspberry Pis.

Each cooling block got a drop of thermal paste before being placed over a CPU.

The cooling block brackets clamp down on the cooling block by screwing into some nylon standoffs which are screwed into the four mounting holes on each Pi. These nylon standoffs are held in place by some aluminium standoffs underneath the Pi, which will be also used to mount the Pi onto the backboard.

Planning the Cluster Layout

All 8 Raspberry Pi's Prepared With Cooling Blocks.jpg
Raspberry Pi Cluster.jpg
Pi Cluster Chosen Layout Option.jpg

Raspberry Pi clusters are traditionally built by stacking the Pis on top of each other using some standoffs. This arrangement doesn't really work with my cooling block brackets and isn't particularly eye-catching. So I wanted to try and build something a bit different, something which looked more like a feature and could be mounted onto my wall.

I played around with a couple of layout options and eventually settled for having the radiator and fan at the centre, with four Pi's on either side. The cooling water reservoir and pump would be at the bottom of the cluster and the ethernet switch at the top.

Positioning the Cluster Components

Add A Display To The Middle Of The Cluster.jpg
Marking Out Layout On The MDF.jpg

Once I had the layout planned, I started marking out the component locations on the piece of 3mm MDF. I planned on using a square section of the sheet, approximately 600mm x 600mm.

I plugged an Ethernet cable and USB power cable into one of the Pis to ensure that there was enough clearance between them for the cabling.

There was an obvious gap in the middle of the cluster above the radiator. An old touch screen display which I had used for a previous project fitted into this gap perfectly. This display would be useful for displaying performance stats or metrics for the cluster or even to run basic scripts from and was powered using on of the Pis USB ports.

Making a Base for Each Pi

Designed And Cutout Bases For Pi's.jpg
Glued Bases Together.jpg

I then designed a small acrylic base for each of the Pis.

Each base consists of two layers of acrylic, a red bottom accent layer and then a black top layer. The bases have holes for the four mounting points and then a larger hole in the middle to route the power cable from the side of the Pi to the back of the board.

I laser cut the two pieces from some translucent red acrylic and opaque black acrylic and then glued them together with some acrylic cement.

Creating the Back Board

Use Dremel To Cut The Board.jpg
Drilled Holes For Mounting Components.jpg
Glue Wood Strips Onto Back Of Cluster Board.jpg
Cut Holes For Cabling.jpg
Spraying The Back Board Black.jpg

Now that I had all of the cluster components made and layout marked up, I could make the backboard.

I cut the backboard square and then trimmed the four corners at an angle to suit the geometry of the layout. I used a Dremel with a circular cutoff saw to trim the MDF and to cut out two holes in the middle, one for the radiator airflow and another for the cable routing behind the display.

I then drilled all of the component mounting holes. I planned on using 4 M3x8mm button head screws for each Pi and then the mounting hardware which came with the water cooling kit and the switch to mount those components.

I glued three sections of 20x40mm pine to the back of the board to stiffen it and to lift it away from the wall, creating a cavity at the back for cable management and the power supply. These were just glued into place with some PVA wood glue.

I used a hole saw to cut the holes for the USB C cables to route them to the back of the cluster, and then finished it off by spraying the front and back of the board using black spray paint.

Installing the Components Onto the Back Board

Mounting The Raspberry Pi 4Bs.jpg
Pis Secured With Button Head Screws.jpg
All Raspberry Pis Mounted In Position.jpg
Mounted Switch And Cooling Water Components.jpg
RGB Strip For Back Accent Colour.jpg

Once the paint had dried, I started mounting all of the cluster components.

As mentioned in the previous step, I used M3x8mm screws to secure each Pi, screwing through the backboard and the acrylic base and into the aluminium standoffs.

I mounted the 8 Pis, then the cooling water components and switch.

I finished off the backboard by adding an RGB LED strip to the back so that it would light up the wall behind it. The strip has a remote control with a range of display colours and dimming options, but I think I'll mainly just use the red accent.

I didn't mount the display yet, as I wanted to get all of the cabling in place before covering up the cable routing hole with the display.

Adding the Power & Ethernet Cables

Feed Cables Through To Back Of Pi.jpg
Plugging In Network Cables.jpg

I then added the cables.

I first plugged a USB C cable into each Pi and routed these through the holes in the base and to the back of the board. I mounted the USB hub to the back of the cluster and then plugged the Pis into the available ports. I had to use a splitter for each of the last two sets of Pis, as the hub only had 6 ports.

I wasn't sure if the hub would have enough power to run all 8 Pis. The official power supply for the Pi 4 is a 3 amp supply, but I had never seen any of my Pis run over 1A during use, so I thought I'd try it out and see. I could always add a second hub later if need be.

I then plugged and Ethernet cable into each Pi and routed these up the sides and through the hole behind the display before coming back out and into the switch. This enabled the excess cable to be coiled up at the back of the cluster, out of sight.

Making Tube & Cable Holders

Cut Out Some Cable And Tube Mounts.jpg

I designed and cut some cable and tube holders to assist with the positioning of the cables.

I initially tried cable tying the Ethernet cables together, but this just looked messy. So I designed a series of brackets to position the cables next to each other and hold them in place.

I also designed a bracket to hold the cooling water tube in place. There were only a few areas where these would come in handy, but they would still be useful.

Connecting the Cooling Water Tubing & Display

Installed Water Cooling Tubing.jpg
Use Stands To Secure Network Cables.jpg
Radiator and Fan Components.jpg
Colour Added To Cooling Water.jpg
Assembly Complete.jpg

I cut the cooling water tubing to the correct lengths and then pushed it over the fittings.

The cooling water circuit is a series loop, meaning that the water flows from one Pi to the next before going back to the reservoir. This has one main disadvantage, being that the Pis are cooled at different temperatures. The first receives the coolest water and the water gets progressively warmer as it passes through each Pi, with the last being the warmest. The other option was to put them all in parallel, but then I'd need to add a valve to each so that the flow rates are balanced, otherwise its quite likely that the Pis furthest away from the pump would receive little to no flow.

Once the cooling water tubing was complete, I added the display. I laser cut a bezel to fit around the display and then some acrylic brackets to mount it on.

You'll notice that I recessed the master Pi (top left) a little so that the HDMI cable fitted in underneath the adjacent Pi. without there being an obviously large space next to this Pi.

Routing Cables

Cable Routing On The Back Of The Cluster.jpg

The cables were all routed to the back of the cluster where they were then coiled up, cable-tied and then either routed back to the front, to the switch, or plugged into the USB hub.

I also made up a connector to take the 12V supply to the switch and branch off another supply for the 120mm radiator fan and the pump.

Filling the Cooling Water Loop & Adding Some Colour

Adding Some Colour To The Cooling Water.jpg
Filling Water Reservoir.jpg
Cluster Running.jpg

Next, I had to fill up the cooling water circuit and hope that I didn't drown one of the Pis - which is something I was quite worried about with the number of connections.

I put the cluster onto its side so that the reservoir was upright and then filled it up. I kept the power to the Pis off while filling it but had to cycle the pump and fan a couple of times to move the water into the radiator and tubing.

There was one small slow leak at the inlet to the first cooling water block, I think because of the weird angle and twist to get to the radiator. I put a small cable tie around this joint to clamp it and the leak stopped.

I then added some red colouring to the water to highlight the cooling water lines.

Preparing the Raspberry Pi OS SD Cards

Burned Pi Os Images To SD Cards.jpg

I prepared a copy of Raspberry Pi OS for the master node, which was connected to the display, and then 7 copies of Raspberry Pi OS Lite for the other nodes.

I'm not going to get into the software side of the cluster in this build, as this was focused on the hardware assembly, and the software you choose depends significantly on what you're going to be doing with the cluster and how experienced you are with networking. Here's a guide on getting a very basic Raspberry Pi cluster running, while one of the best solutions is to use Kubernetes.

The preparation of the SD cards was done mainly to check that the Pis all booted up correctly, had enough power, and could be seen and interacted with on the network.

Running the Pi Cluster

System Running And Booted Up.jpg
Running Scripts On Touch Screen.jpg
Stats Display.jpg

I powered the cluster up and waited for the operating system to load. All 8 booted up fine the first time and were able to be seen on the network.

The touch display worked quite well too. It's a little bit small for everyday use, but it's usable to launch applications, run scripts and to display basic data. As an example, I ran the CPU temperature monitoring script which I set up for my cooling solution comparison.

That's it, the Pi cluster is now ready to be set up and take on its first cluster computing operation!

If you enjoyed this Instructable, please remember to vote for it in the Make It Glow contest below and let me know what you think of it and what you'd do differently in the comments section.