3D print your own Raspberry Pi 5 case
Nicely Packaged

© Lead Image © tom-Geschenk, Fotolia.com
The official Raspberry Pi 5 case is not the perfect solution for all applications, so it makes perfect sense to design and 3D print your own case.
The Raspberry Pi 5 offers many new functions. Unfortunately, the original case that is sold by the Raspberry Pi Foundation is too small to make full use of all the options. This starts with the GPIO header: The 40-pin plug is very awkward to connect. The lid does not close properly, and it covers the fan. The case itself is so tightly dimensioned that the factory-fitted fan struggles to circulate the air. Things get even more cramped if you use the Active Cooler [1]. Apparently no one considered the fact that the battery [2] for the Real Time Clock (RTC) also needs some space. All in all, a usable case needs to offer more space and offer some openings for cooling. Ideally, it should be large enough to provide space for any Hardware Attached on Top (HAT) you choose to install.
My plan was to develop a case to meet even the toughest requirements; it also had to be sufficiently flexible to cope with future requirements. The "Requirements" box summarizes the design goals and describes how I've dealt with some of the problems of the official case. I built the case myself using a 3D printer. To create the model for printing, I used Onshape [3], an online CAD program that is free for private use. Note that all models created with Onshape are publicly accessible. Video tutorials will help you familiarize yourself with the program [4].
Model
Creating a 3D model is an iterative process that usually requires several attempts until everything fits as desired. Precise measurements are a great help here. Let's take a look at the data sheet (Figure 1) of the Raspberry Pi 5 [7]. We can take some measurements for our case from this, such as the space between the mounting holes. But not all of the required dimensions can be found here; you will need a caliper gauge to determine the others.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
Linux Mint 20 Reaches EOL
With Linux Mint 20 at its end of life, the time has arrived to upgrade to Linux Mint 22.
-
TuxCare Announces Support for AlmaLinux 9.2
Thanks to TuxCare, AlmaLinux 9.2 (and soon version 9.6) now enjoys years of ongoing patching and compliance.
-
Go-Based Botnet Attacking IoT Devices
Using an SSH credential brute-force attack, the Go-based PumaBot is exploiting IoT devices everywhere.
-
Plasma 6.5 Promises Better Memory Optimization
With the stable Plasma 6.4 on the horizon, KDE has a few new tricks up its sleeve for Plasma 6.5.
-
KaOS 2025.05 Officially Qt5 Free
If you're a fan of independent Linux distributions, the team behind KaOS is proud to announce the latest iteration that includes kernel 6.14 and KDE's Plasma 6.3.5.
-
Linux Kernel 6.15 Now Available
The latest Linux kernel is now available with several new features/improvements and the usual bug fixes.
-
Microsoft Makes Surprising WSL Announcement
In a move that might surprise some users, Microsoft has made Windows Subsystem for Linux open source.
-
Red Hat Releases RHEL 10 Early
Red Hat quietly rolled out the official release of RHEL 10.0 a bit early.
-
openSUSE Joins End of 10
openSUSE has decided to not only join the End of 10 movement but it also will no longer support the Deepin Desktop Environment.
-
New Version of Flatpak Released
Flatpak 1.16.1 is now available as the latest, stable version with various improvements.