3D printing
OctoPrint Enclosure for a Raspberry Pi 4B
A 3D printable enclosure for a Raspberry Pi 4B running OctoPrint, with a relay module, vents and a USB camera, printed in PLA on an Ender 3 V2.
- Raspberry Pi
- OctoPrint
- Safety notes
- 2 min read
OctoPrint turns a Raspberry Pi into the control centre of a 3D printer: you start, watch and stop prints from a browser. This 3D printable enclosure is made for that job. It holds a Raspberry Pi 4B with a relay module, has vents for the air, and carries an OctoPrint logo on the lid.
It is used with USB cameras from Action, so you can watch the print.
The design
The renders show the enclosure from several sides: the lid with the vents and the OctoPrint logo, the side with the network port and the USB ports of the Raspberry Pi, and the inside with the Pi and the relay module.




The printed enclosure
The photos show the printed parts in white PLA and the build:






The photo of the tap wrench and tap is there for cutting threads in the printed holes. Screw the lid on and the enclosure is closed.
The camera
OctoPrint shows the print through a USB camera on the Raspberry Pi. Cheap USB cameras from Action are used for this.

Print it
| Setting | Value |
|---|---|
| Printer | Ender 3 V2 |
| Material | PLA |
| For | Raspberry Pi 4B |
The model is on Thingiverse. The GitHub repository has the STEP file, Raspberry case v3.step, which most CAD programs can open. The renders in the repository show a newer version of the design as well, so check Thingiverse for the latest.
Mains voltage
The enclosure holds a relay module and has openings for sockets. If you use it to switch a device on the mains, unplug everything before you touch the wiring, never work on it while it is connected, and only take on mains wiring if you have the experience for it. Ask a certified electrician if you do not.
Good to know
- The repository holds the STEP file and the images, and is under the MIT licence.
The project is in the Octoprint—Enclosure repository on GitHub.
More projects
Keep building.
Electronics, 3D printing and CNC builds, documented from the first idea to the last screw.
All projects

