Electronics enclosure
Customizable 3D model by shapeninja · version 2
Electronics enclosure / project box with lid: a case with cutouts you draw on every wall, the bottom and the lid (USB, power jack, buttons, LEDs, displays, vents), e.g. as a Raspberry Pi, Arduino or ESP32 case. The lid screws on (nut slot, heat-set insert or self-tapping), snaps or presses on, or leave it off for an open-top case; optional board standoffs (Raspberry Pi, Pi Zero, Arduino Uno or any hole pattern you draw), side vents, cable hole, mounting ears and an engraved label, logo or QR code on the lid.
How to use
Enter the clear space your board and parts need (Interior); the outside is two walls bigger. Choose how the lid holds: screwed into the corner posts (screw length = lid thickness + 3 mm + 6-8 mm into the post, e.g. M3 x 12 countersunk for the 2 mm lid, socket heads in the counterbore about 3 mm shorter; with the nut slot a nut slides into each post from the inside), snap-fit, press-fit, or no lid for an open-top case. Under Cutouts draw the openings on each wall (seen from outside), the bottom and the lid (seen from above), or import an SVG, DXF or picture of a connector or vent pattern. Under Lid label engrave text, a logo, a photo or a QR code (import it as PNG or SVG). Case and lid print side by side without supports: the case upright, the lid upside down (its top lies on the bed); under Parts you can print only one of them again. Board standoffs: presets for a Raspberry Pi, Pi Zero or Arduino Uno (board in the middle), or choose Custom and draw a circle the size of each mounting hole of your board where it should sit ((0, 0) is the inside front-left corner; the circle size picks the screw). Related: the PCB mount plate generator (a plate with standoffs), the DIN rail clip (for 35 mm top-hat rails) and the sliding lid box. For low-voltage electronics only: a printed box is no certified enclosure for mains voltage.
Parameters
- Interior: The clear space inside the case for your board and parts (the outside is 2 × wall bigger; the lid adds its thickness on top)
- Width: Inside width (X), wall to wall (20–500 mm, default 80 mm)
- Depth: Inside depth (Y), wall to wall (20–500 mm, default 60 mm)
- Height: Inside height, from the floor to the underside of the lid (8–300 mm, default 30 mm)
- Lid fastening: How the lid holds on the case. Every lid has a lip that centres it in the case. (one of: Screwed, Snap-fit, Press-fit, No lid (open top), default Screwed)
- Wall: Side wall thickness (1.2–10 mm, default 2 mm)
- Floor: Thickness of the case floor (1.2–10 mm, default 2 mm)
- Parts: Which parts to make: print only the case or only the lid again
- Case: Make the case. Switch it off to print only the lid again. (on or off, default on)
- Lid: Make the lid. Switch it off to print only the case again (it keeps its posts or groove so the old lid fits). For a box without lid choose Lid: No lid. (on or off, default on)
- Lid & screws: Lid thickness, fit and the lid screws
- Lid thickness: Thickness of the lid plate (the lip under it comes on top) (1.2–10 mm, default 2 mm)
- Fit clearance: Gap between the lid's lip and the case wall on each side. 0.2 mm suits most printers; more if the lid does not go in, less if a press-fit or snap-fit lid is loose. (0–1 mm, default 0.2 mm)
- Screw: Lid screws. Length with countersunk or pan heads: lid thickness + 3 mm + 6 mm (M2, M2.5), 7 mm (M3) or 8 mm (M4) into the post, e.g. M3 × 12 for the 2 mm lid; socket heads in the counterbore about 3 mm shorter (M3 × 8 to 10). (one of: M2, M2.5, M3, M4, default M3)
- Thread: How the lid screws hold in the corner posts (one of: Nut slot (slide in), Heat-set insert, Self-tapping, default Nut slot (slide in))
- Nut clearance: Extra room around the nut in its slot (added to the width across flats and the height) (0–1 mm, default 0.2 mm)
- Screw head: How the screw heads sit in the lid: countersunk (flat-head screws, flush), counterbore (socket/cap head screws, sunk in) or a plain hole (pan head on top). (one of: Countersunk, Counterbore, Plain hole, default Countersunk)
- Vents, cable & mounting: Side vents, cable hole and mounting ears
- Side vents: Ventilation slots in the left and right walls (on or off, default off)
- Cable hole Ø: Round cable pass-through in the middle of the back wall, chamfered on both sides (0 = none). For other shapes and places use the drawings under Cutouts. (0–60 mm, default 0 mm)
- Teardrop holes: Gives horizontal holes a pointed top so they print without supports. Only needed for large holes or printers that bridge badly. (on or off, default off)
- Mounting ears: Two ears at the bottom of the left and right walls to screw the case to a wall, a desk or a board (on or off, default off)
- Mounting screw: Screws through the ears into the wall or desk (one of: M3 / 3 mm wood screw, M4 / 4 mm wood screw, M5 / 5 mm wood screw, default M4 / 4 mm wood screw)
- Mounting head: How the mounting screw heads sit in the ears (one of: Countersunk, Counterbore, Plain hole, default Countersunk)
- Board standoffs: Standoffs for a Raspberry Pi, Arduino or your own board
- Board: Standoffs on the floor for a board's mounting holes. The presets put the board in the middle of the case; with Custom you draw the holes where you want them. Make the interior big enough for the board and its connectors. (one of: None, For Raspberry Pi 3/4/5 Model B, For Raspberry Pi Zero, For Arduino Uno, Custom (draw the holes), default None)
- Standoff height: How far the board sits above the floor (room for solder joints underneath) (2–50 mm, default 5 mm)
- Board screws: How the board screws hold in the standoffs (one of: Self-tapping, Heat-set insert, default Self-tapping)
- Board holes: The case floor seen from above, front wall at the bottom: (0, 0) is the inside front-left corner (where the left and the front wall meet the floor), x to the right, y towards the back, in mm. Draw a circle on every mounting hole of your board where it should sit; each circle's centre gets a standoff. Draw the circles at the hole size (2.2 mm for M2, 2.7 mm for M2.5, 3.2 mm for M3): with Board screw on Auto that picks the screw, otherwise the size only shows. The canvas is the default 80 × 60 mm interior; on another size the holes stay measured from the front-left corner. The board is taken to reach 3 mm past the outer holes; it and the standoffs have to stay clear of the lid screw posts in the corners (hatched: default size with M3 screws; with a snap-fit or press-fit lid the corners are free). (drawing on 80 × 60 mm)
- Board screw: Screw size of the board's mounting holes. Auto picks the biggest screw whose hole fits the smallest drawn circle (2.2 mm hole for M2, 2.7 mm for M2.5, 3.2 mm for M3). (one of: Auto (from the circle size), M2, M2.5, M3, default Auto (from the circle size))
- Finish: Rounding of the outer corners and edges
- Corner radius: Rounding of the outer vertical corners of case and lid. The inside corners stay sharp so boards fit; with a radius bigger than about 1.6 × the wall they get a 45° fill so the wall stays as thick as everywhere else. (0–30 mm, default 3 mm)
- Round edges: Rounds the outer top and bottom edges of case, lid and ears so the box is nicer to hold. 0 = off. Big values cannot fit at small details; those edges then get as much as fits. Edges on the print bed (case bottom, lid top) get at most 1 mm so they do not droop. (0–5 mm, default 1 mm)
- Cutouts: Draw the openings on each wall, the bottom and the lid: rectangles, circles, polygons and curves with exact sizes, or import an SVG, DXF or image (connector outlines, a vent pattern, a logo)
- Front: Openings through the front wall (connectors, USB, switches, LEDs, displays), seen from outside: x to the right, y up, (0, 0) in the centre of the wall. Drawn for the default 84 × 32 mm wall; on another size the drawing stays centred and is clipped to the wall (above the floor, clear of the corners and screw posts). Shapes reaching the top edge become notches under the lid. Import an SVG, DXF or picture of a connector outline to get it exact. (drawing on 84 × 32 mm)
- Back: Openings through the back wall (connectors, USB, switches, LEDs, displays), seen from outside: x to the right, y up, (0, 0) in the centre of the wall. Drawn for the default 84 × 32 mm wall; on another size the drawing stays centred and is clipped to the wall (above the floor, clear of the corners and screw posts). Shapes reaching the top edge become notches under the lid. Import an SVG, DXF or picture of a connector outline to get it exact. (drawing on 84 × 32 mm)
- Left: Openings through the left wall (connectors, USB, switches, LEDs, displays), seen from outside: x to the right, y up, (0, 0) in the centre of the wall. Drawn for the default 64 × 32 mm wall; on another size the drawing stays centred and is clipped to the wall (above the floor, clear of the corners and screw posts). Shapes reaching the top edge become notches under the lid. Import an SVG, DXF or picture of a connector outline to get it exact. (drawing on 64 × 32 mm)
- Right: Openings through the right wall (connectors, USB, switches, LEDs, displays), seen from outside: x to the right, y up, (0, 0) in the centre of the wall. Drawn for the default 64 × 32 mm wall; on another size the drawing stays centred and is clipped to the wall (above the floor, clear of the corners and screw posts). Shapes reaching the top edge become notches under the lid. Import an SVG, DXF or picture of a connector outline to get it exact. (drawing on 64 × 32 mm)
- Bottom: Openings through the floor (vents, keyhole slots for wall hanging, a speaker grille), seen from above: x to the right, y towards the back, (0, 0) in the centre. Drawn for the default 84 × 64 mm case; clipped to the inside of the walls, clear of the screw posts. (drawing on 84 × 64 mm)
- Lid: Openings through the lid (display window, buttons, LEDs, a vent pattern), seen from above on the closed case: x to the right, y towards the back, (0, 0) in the centre. Drawn for the default 84 × 64 mm lid; on another size the drawing stays centred and is clipped to the inside of the lid's lip, clear of the screw posts. (drawing on 84 × 64 mm)
- Lid label: A label, logo or QR code engraved into the top of the lid
- Lid design: Engraved into the top of the lid, seen from above on the closed case (x to the right, y towards the back): a label, a logo, a photo or a QR code (import it as PNG or SVG; QR modules of at least 1 mm, about 25 × 25 mm for a short link; best filled with paint or printed in a second colour). A shape inside another one is cut out of it, e.g. text inside a filled frame. Clipped to the flat top, clear of the screw heads. (drawing on 84 × 64 mm)
- Engraving depth: How deep the design is engraved into the lid (0.2–3 mm, default 0.6 mm)
Adjust the parameters, preview the model in 3D and download it as STL or STEP. The configurator needs JavaScript and WebGL.