3D Printed Case (Modular!) for your DIY Project

Every time I build a DIY project I stumble upon the need to encase it. There is plenty available 3D Printed Case designs online but none truly met my needs for simplicity and modularity. This pushed me to design the case tailored exactly to my needs.

Business requirements

We need the project’s casing to:

  • enclose all the circuit parts
  • be easily extended with additional sensors, motors, and functionalities
  • be easy to modify
  • be easy to disassemble all the parts
  • limit the need for soldering and gluing
  • be 3D printed without support and bridges
  • be KISS (Keep It Simple, Stupid)

3D Printed Case’s body

First, let’s define some variables used to describe the 3D printed case’s size and properties.

Next, let’s build the box using variables we just defined.


Now we can cut the working space, where we can place our Arduino, Raspberry Pi or any other components. Measurements used here should match Arduino Uno.


We can now cut some space for excess wires. We will keep the pillars which should make our case more sturdy.


Cut the screw holes in the pillars. We will use those to screw the body and a cover together.


Next step is to cut the indent in which the cover will slide in.



As your project grows and evolves u might need more space in your box. We want the case to be KISS, so let’s just print one more box with different or the same dimensions and join boxes together. How? Here comes an ancient woodworking technique. A dovetail joint or simply dovetail is a joinery technique most commonly used in woodworking joinery (carpentry).

joinery-halfblinddovetail dovetails-1

We want to create a dovetail cuts on the opposite walls. We will use those to:

  • pull the wires between the boxes.
  • join boxes together with slide-in connector
  • air cool your project – which might be important for certain electrical circuits.

As we will use it very often we will encapsulate the code in the module for re-use purposes.


Finally, let’s create the connector. We just create two dovetails, mirror one and join them together.
You want the connectors to be slightly smaller than the holes so they fit closely and at the same time are easy to slide in and out . Let’s use “clearance” variable to create  little space between walls.



3D Printed Case’s Cover

So we’ve got the boxes we can change, duplicate and join together. Now let’s design a cover.

First, create the box with height=wallWidth + indentHeight and two other dimensions same as the box.



Next cut the indent so u can interlock the case with the cover.


And finally cut the screw holes in corresponding positions to the case’s ones.


Final result

Let’s put all parts together of our 3D Printed Case.


Here you can see how to use dovetail joints with two Modular 3D printed cases.


This is a base project. Take a look how can you easily extend it for your custom project:
3D Printed Case for Living Green Wall Project

You can find latest source files along with some examples how to modify this basic design at Github:

The STL files are available at: