Level 7 · Build real things · about 30 minutes · free

Electronics enclosure with a USB-C port

A small box for a circuit board: rounded corners, 2 mm walls, a slot for a USB-C cable and four screw holes in the floor. Then you hand it to two people: the printer gets a print file, the electronics designer gets a STEP file to check the board fits.

Start the interactive lesson: narrated demo, steps and quiz →

What you’ll learn

Step by step

  1. Draw the footprint. New design. New Sketch on the XY plane. Choose Rectangle, click the origin and type 80, Tab, 60. Finish Sketch.
  2. Make the block. Extrude the rectangle 30 mm. OK.
  3. Round the corners. Fillet the four vertical edges, radius 5. One edge hides behind the block: switch the display style to Wireframe to pick it, then back to Shaded.
  4. Hollow it. Shell, click the top face (it is removed), Thickness 2, Direction Inside. OK. The box keeps its outside size and gets 2 mm walls and floor.
  5. Sketch the USB-C slot. New Sketch on the XZ plane: you look straight at the front wall. Choose Rectangle › Center rectangle, click at 40, 8 (the readout next to the cursor shows it), then type 10, Tab, 4. Finish Sketch.
  6. Cut it through the wall. Extrude, the rectangle is picked. Set Distance 5 and Operation Cut, and tick Reverse Direction so the arrow points into the box. OK. Don’t press Enter in the Distance box: it confirms the whole feature as it is.
  7. Sketch the screw holes. New Sketch on XY, press End to see the whole box. Choose Circle, click at 10, 10, type 3.4 and Enter. Repeat at 70, 10, 10, 50 and 70, 50. Finish Sketch.
  8. Cut all four at once. Extrude, then click Sketch3 in the browser: 4 selected, Operation Cut. Distance 5 (anything over 2 mm goes through the floor). OK.
  9. Check it. INSPECT › Properties on Body1: Volume 24251.88 mm³, bounding box 80 × 60 × 30 mm, 31.3 g in the default material. Save as enclosure.
  10. Hand it to the printer. File › Send to Slicer. For Print face, look from below (click the blue −Z dot on the view cube) and click the outside of the floor. The box prints open side up with no supports: the 10 mm top of the USB slot is a short bridge any printer can span.
  11. Hand it to the electronics designer. File › Export › CAD & 2D › STEP… STEP keeps exact curves and sizes, so they can load the box next to the circuit board in their PCB tool and check that the USB-C socket lines up with the slot and the four holes match the board’s mounting holes.

Tips

Check yourself

Why fillet the corners before the shell, not after?

Shell then offsets the rounded corners, so the inside gets matching R3 corners and an even 2 mm wall all the way round.

← Drone arm with a motor mountSteel L-bracket from sheet metal →

SolidCraft is an open-source project by its own authors. Craftpath is an independent, free learning resource.