Now that I have a half-height rack and a 3D Printer, I figured I should finally move all my Raspberry Pis from sitting in odd places in my office to the rack. And what better way than to print my own 1U Raspberry Pi Rack mount unit?
The rack unit you see above was assembled from 6 'frames', 6 hot-swappable Pi carrier trays, 2 rack mount ears, and a couple lengths of threaded rod for rigidity.
It was printed from these plans from russross on Thingiverse; Russ Ross also made an assembly video, and shows how you can build a 2U 12-Pi enclosure using the same basic design, with interchangeable Pi trays!
Video
There is more detail and a full walkthrough of my home rack in this video:
Rack printing and assembly
Firstly, I should note that I still consider myself a 3D Printing novice. It's not like you can go to the store, buy a 3D Printer, unbox it, plug it in, and get good prints right away. Even the more expensive models require a lot of 'tuning' to get right, and that assumes you also know at least a decent amount about slicing and at least have rudimentary 3D CAD skills!
My first attempt at printing the frame resulted in the printer trying to bridge 10cm gaps and printing on air. It tried, but I've found time and time again, if you ask the printer to do the impossible, it'll blindly trust your input, no matter the result:
But once I figured out I needed supports, and to be extra careful about bed leveling and shrinkage—compensated for by using a brim in this case—I was able to get the frames, trays, and ears printed without issue. The full process involved:
- Printing 6 'frames' that hold the Pi trays and are put together through threaded rod running underneath.
- Printing 6 'trays' that hold the Raspberry Pis using 12mm M2.5 screws.
- Printing 2 'ears' that allow the trays to be mounted to a standard 1U rack space.
- Assembling everything together using 2 #10-24 threaded rods cut to precisely 17 5/8", and secured with a #10-24 nut on each side
It came together very well after I sorted the frame printing issues:
You can see the whole structure gets its rigidity from the two threaded rods running underneath:
And while the frames in this enclosure don't block the ports on the Pi, there's not really enough room between frames to fit standard connectors in except on the left-most Pi. The rear is also open for ventilation, but don't expect to be able to pop out a microSD card unless you slide the Pi out in its tray:
The enclosure feels great, and besides being a little 'proud' of the other metal rack units on the front (there's more depth to provide more strength in the 3D print), it looks right at home in my rack:
What do I do with the Pis?
The first Pi is running my internet-pi configuration, which sets up Pi-hole for ad-blocking and DNS on my home network, and also runs a Prometheus + Grafana internet-monitoring dashboard so I can see how my home Internet is doing (and whether I am getting the full speeds I pay for).
The second Pi is currently running the Raspberry Pi Dramble website solo—at some point I'll migrate my K3s Kubernetes cluster into the rack, and it will be running that way again, but right now the site is just running on one Pi with Docker and Docker Compose.
The Pi at the end is monitoring my Starlink Internet connection, and is on a separate PoE switch.
In the video, I go into a little more detail about the rack itself, as well as some of the other things I intend to do with my rack and home network in general, so check it out if you haven't watched it already.
Comments
How long does something like this take to print?
Took me a few days total.
This is really cool. I’m doing something similar for my home network/smart home (right down to having a UPS to keep core functionality running as long as possible), though I chose to go with the Uctronics rack you showed from Amazon. They have their own POE hats. Mounting the Pi’s with the hat is rather fiddly. And sooner or later the 4 Pi limit is going to bite. I use UniFi for my network. And like you I’m happy with overkill :-)
First, impressive piece of engineering. Well presented also. I did not catch whether your rack mounts support attaching an SSD drive? Also, I noticed that there is no accommodation for a HDMI port. I find this to be helpful with debugging issues with Pi and I find an SSD drive to be more reliable than microSSD. Interested in your thoughts on this.
If I didn't want to configure for POE, is there still room to power via the micro-USB?
Very nice design. It would be nice to see trays that can hold SSDs as well. Where did you get the custom rods from? Much appreciated!
Waveshare has a hat for the pi 5 that adds PoE *and* an M.2 SSD slot on the top for about $25. I'm waiting for one on order to try it out but seems like it will be a pretty tidy package for a PoE Pi w/ fast storage