How to print cases for sensors and boards for home automation tinkerers
A practical guide to printing cases for sensors and boards for home automation, with steps, a tool that can help and mistakes to avoid.
TexHouse is published by the makers of LunarWerx 3D Print and VectorMagik, which are compared here alongside other tools.
A case for a sensor or board comes together in four steps: measure the board, design or pick a case that matches those measurements, print a fit test, then print the full case. LunarWerx 3D Print is a set of browser tools that work out ironing settings for your printer, check a part for injection moulding and design 3D-printable foam inserts [1]. Of these, the ironing helper and the foam insert designer are the parts most likely to be useful for a case, depending on what your print needs.
| Option | What it does | Fee |
|---|---|---|
| LunarWerx 3D Print | Browser tools that work out ironing settings, check parts for injection moulding and design 3D-printable foam inserts [1] | Free to use [1] |
| Other tools | Check each tool's own page for what it does | Not published |
What you need before you start
Before you print a case, have the board or sensor in hand and a set of calipers to measure it. Measure the length, width and height of the board, the position and spacing of its mounting holes, and the size of any port, button or sensor window that must stay reachable. Write these numbers down, because a small error can leave a connector out of reach or stop the board from sitting flat.
You also need a 3D printer with a build area large enough for the case, a spool of filament suited to the spot where the case will go, and a slicer, the program that turns a model into print instructions. A case for a warm or damp room may call for a different material than a case for an outdoor sensor, so check what the filament is rated for before you choose it.
Finally, decide whether you will design the case yourself in a CAD program or download a model. A downloaded model saves time, but its holes and openings must match your board, so measure before you print. Keep a notebook or text file of measurements and test results, because one small change often means printing the case again.
Step by step
Work through these steps in order, since each one depends on the measurements from the step before.
- Measure the board. Use calipers to record the outline, the mounting holes, and each opening the board needs, such as a USB port, a button or a sensor window.
- Plan the layout. Sketch where the board sits, where the cable leaves the case, and where air can reach any sensor. Leave room for the board's tallest component.
- Design the case or find one. Draw the walls, floor and lid in CAD, or open a downloaded model and check its size against your measurements.
- Add the mounting points. Place posts or screw holes that line up with the board's holes, and leave enough clearance for the screws to go in without forcing.
- Cut the openings. Make holes for cables, buttons and any sensor window. Make sure no wall or lid blocks the sensor.
- Slice the model. Load the file in your slicer, choose the material, and set the walls and infill so the posts are stiff enough to hold screws.
- Print a fit test. Print only the lid, or a thin section that includes the mounting posts and one opening. Check the fit against the board.
- Adjust and reprint. Change any dimension that was off, then print the test again if needed.
- Check the finished case. Fit the board, close the lid, and confirm the screws hold and the sensor still has a clear view or airflow.
Tools that can do it
Several kinds of tools can help with parts of this job. Each one covers its own part, so check its page for what it does.
Design software lets you draw a case to your measurements. Look for a program that accepts exact dimensions and exports a file your slicer can read.
Model libraries offer ready-made case designs. Check that the listed board matches yours and that the openings line up before you print.
LunarWerx 3D Print is made by the team that publishes this site. It is a set of browser tools that work out ironing settings for your printer, check a part for injection moulding and design 3D-printable foam inserts [1]. It runs in a web browser [1], and you use it on its website, which is hosted on Cloudflare [1].
The ironing helper works out settings for your printer, material and finish and exports a ready 3MF file [1].
Downloaded case models sometimes open with faces turned backwards. When you open an STL file like that, the tool turns the faces right side out and says how many it fixed [1].
For an uploaded Bambu or Orca project it adds per-object ironing settings and keeps the rest of the file unchanged [1].
The tools are free to use [1]. It runs in your browser, and sign-in with Connections lets your settings, recent test plates and print results follow you to every computer [1].
Common mistakes to avoid
Measuring from a spec sheet instead of the real board is a common mistake. Sheets often differ from the actual part, so measure the board you have with calipers before you design anything.
Leaving no clearance for connectors is another. A cable plug needs room to bend and seat, so give each port opening enough space around it.
Blocking a sensor is easy to miss. A wall, lid or label in front of a sensor window can change what it reads, so keep the sensor's face clear in both the design and the final build.
Skipping the fit test wastes time. Printing the full case before checking one section often means printing it again.
Choosing a filament without checking its rating can cause trouble. A case in a hot attic or a damp bathroom needs a material that handles that heat or moisture.
Forgetting strain relief is the last common error. A cable that pulls on the board can loosen connections, so add a clamp or a rounded exit for the wire.
Frequently asked questions
How do you design a case for a sensor or board?
Start with your measurements of the board, including its outline, mounting holes and any ports or sensor openings. Model the base with walls tall enough for the board and its connectors, then add posts that line up with the mounting holes. Cut openings for cables and the sensor, and check that no wall blocks the sensor's view or airflow. Print a fit test before the full case, and adjust the dimensions wherever the board does not sit right.
What should you measure before printing a case for a board?
Measure the length, width and height of the board, the spacing of its mounting holes, and the position and size of each port, button and sensor window. Also measure the height of the tallest component, because a case that clears the chips may still be too short for a header or a sensor cap. Write the numbers down and check them twice, since a small error can stop a connector from fitting.
What can LunarWerx 3D Print help with for a case?
It is a set of browser tools that work out ironing settings for your printer, check a part for injection moulding and design 3D-printable foam inserts [1]. For a downloaded case model with backwards faces, its STL step turns them right side out and says how many it fixed [1]. The ironing helper works out settings for your printer, material and finish and exports a ready 3MF file [1]. The tools run in a web browser [1] and are free to use [1].
Do you need a fit test before printing a full case?
A fit test is useful because a case can look right on screen and still miss a hole or a port by a small margin. Print only the lid, or a thin section that includes the mounting posts and one opening, then check it against the board. If the fit is off, change the dimensions and print the test again. Once the test fits, print the full case, which saves filament and time.
Which filament should you choose for a sensor case?
Pick a filament based on where the case will sit. Check what the filament is rated for, such as heat, moisture or sunlight, and match that to the room or outdoor spot. A case that will hold screws needs a material stiff enough for the posts to grip. A test print will show whether the chosen material holds up in the real spot before you print the full case.
The tools are free to use. [1]
Try LunarWerx 3D PrintSources
Related comparisons
- Adding alignment pegs to wearable armor parts
- How to Add Bridges for Metal Wall Art Cutouts
- How to add clean outlines to names and ornament shapes
- How to Add Internal Pegs for Strong Cosplay Weapon Joints
- How to add magnet holes to modular wargame terrain pieces
- How to Add Snap-Fit Lid Geometry to an Enclosure
- Adjust basic 3D printer settings in 2026
- How to adjust infill to change buoyancy for fishing lure makers
- Adjust Layer Height for Easier Sanding in 2026
- Adjust Wall Thickness for Load-Bearing Parts in 2026