Skip to content
My Account

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
No ratings yet, be the first.

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.

A render of the closed enclosure with vents and an OctoPrint logo on the lid
A render of the front of the enclosure with the network port and four USB ports
A render of the open enclosure with the Raspberry Pi and the relay module inside
A render of the enclosure with two socket openings on the side

The printed enclosure

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

The printed base of the enclosure with small mounting holes
A relay module fitted in the printed base
A tap wrench and a tap on a wooden table
The base with the Raspberry Pi, the relay module and the wiring fitted
The same build with the Raspberry Pi switched on and its red led lit
The printed lid with vents and the OctoPrint logo

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.

A small black USB camera on a wooden table

Print it

SettingValue
PrinterEnder 3 V2
MaterialPLA
ForRaspberry 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.

Advertisement
All projects

More projects

Keep building.

Electronics, 3D printing and CNC builds, documented from the first idea to the last screw.

All projects