RUE Logo

Tutorial 5.8: Mechanical & Enclosure Fit

Verifying PCB integration with enclosure, connectors, mounting hardware, and mechanical constraints

Introduction to Mechanical Integration

A PCB that works electrically but does not fit its enclosure is useless. Mechanical integration verification must happen early and continuously throughout the layout process. The most common reason for PCB respins in production is mechanical interference - not electrical failures. This checkpoint ensures the board physically fits, connectors align, and assembly is feasible.

Why Mechanical Issues Cause Respins

Issue CategoryDiscovery StageCost ImpactPrevention Method
Board outline wrongFirst prototype assemblyFull respin (4-8 weeks)DXF import from MCAD + dimensional verification
Connector misalignmentPrototype assemblyRespin or mechanical rework3D model fit check with tolerance analysis
Height interferenceEnclosure assemblyComponent relocation (respin)3D collision detection before tape-out
Mounting hole position errorAssemblyBoard stress or respinVerify hole coordinates against MCAD datum
Missing keep-outSystem integration testComponent damage or respinImport complete mechanical model with all features

Mechanical Integration Workflow

  1. Import mechanical constraints: Board outline, keep-outs, height limits from MCAD
  2. Place mechanically-fixed components: Connectors, mounting holes, switches at defined positions
  3. 3D verification: Export PCB 3D model, import into MCAD for interference check
  4. Iterate: Resolve conflicts between electrical placement needs and mechanical constraints
  5. Final verification: Complete 3D fit check with all components, cables, and thermal solutions

Critical Dimensions to Verify

Data Exchange Formats for ECAD-MCAD

FormatDirectionContentSupported Tools
STEP (AP214)ECAD to MCAD3D board + componentsAll major tools
IDF 3.0BidirectionalBoard outline, placement, heightsLegacy, widely supported
IDX (IPC-2581)BidirectionalFull design data exchangeNewer tools (Altium, Allegro)
DXF/DWGMCAD to ECAD2D outlines and keep-outsAll tools (2D only)
Native (CoDesigner)Bidirectional real-timeFull synchronizationAltium + SolidWorks/Inventor
VRML (.wrl)ECAD to MCAD3D visualization (no parametric)KiCad export, browser viewing

Checkpoint: Board Outline Matches Enclosure

Review Criteria

The PCB board outline exactly matches the mechanical drawing dimensions within manufacturing tolerance. All corners, notches, cutouts, and curved sections are correctly defined. Board thickness matches the enclosure slot/guide dimensions.

Board Outline Verification Steps

  1. Overlay the PCB outline on the mechanical drawing (import DXF from MCAD)
  2. Verify all dimensions match within +/- 0.1mm (manufacturing tolerance for routed boards)
  3. Check corner radii match - internal corners must have minimum router radius (typically 0.5-1.0mm)
  4. Verify all cutouts and slots have correct dimensions and placement
  5. Confirm board thickness specification matches enclosure slot width
  6. Check that V-score or tab-routing locations do not interfere with enclosure features

Board Outline Manufacturing Constraints

FeatureMinimum ValueRecommendedNotes
Outline tolerance (routed)+/- 0.15mm+/- 0.1mmBetter tolerance costs more
Internal corner radius0.5mm1.0mmLimited by router bit diameter
Minimum slot width0.8mm1.0mmRouter bit minimum diameter
Slot length minimum1.5mm2.0mmRouter bit engagement length
Board edge to copper0.2mm0.3mmPrevents copper exposure at edge
Board edge to component0.5mm1.0mmAssembly pick-and-place clearance
V-score to component1.0mm2.0mmStress zone during depanelization
Altium Designer - Board Outline from MCAD

Use File > Import > DXF/DWG to import the enclosure outline onto the mechanical layer. Then use Design > Board Shape > Define from Selected Objects to create the board outline. Alternatively, use Place > Board Region for complex shapes. For MCAD collaboration, use the native CoDesigner plugin for real-time synchronization with SolidWorks, Inventor, or CATIA.

KiCad - Board Outline

Import DXF to the Edge.Cuts layer via File > Import > Graphics. Ensure all lines form a closed polygon. KiCad requires the board outline to be a single closed shape on Edge.Cuts. For MCAD collaboration, export as STEP (File > Export > STEP) and verify in the mechanical CAD tool.

Cadence Allegro - Board Outline

Import DXF via File > Import > DXF to the Board Geometry/Outline subclass. Use Shape > Compose Shape to create the board outline from imported geometry. For MCAD integration, use the IDX or IDF format exchange, or Cadence's direct integration with PTC Creo.

Common Pitfall: Missing Internal Corner Radius

Mechanical drawings often show internal corners as sharp 90-degree angles (because the enclosure is CNC milled with tiny end mills). The PCB, however, is routed with a 1.0mm or larger diameter router bit, requiring all internal corners to have at least 0.5mm radius. If sharp internal corners are needed, the fabricator must drill the corner first, then route - adding cost and potential stress concentration. Always add fillet radii to internal corners in the PCB outline.

Board Outline Dimensional Verification Checklist

  1. Import mechanical drawing DXF onto mechanical reference layer
  2. Overlay PCB outline on imported geometry - check for exact alignment
  3. Measure overall dimensions (L x W) against specification
  4. Verify all corner radii are >= 0.5mm (internal) and match drawing
  5. Check all cutouts and slots for correct position and size
  6. Verify board outline is a SINGLE CLOSED POLYGON (no gaps)
  7. Confirm outline is on the correct layer (Edge.Cuts in KiCad, Mechanical 1 or Board Shape in Altium)
  8. Check that board thickness in stackup matches enclosure slot dimension
  9. Verify V-score or tab-route lines are on correct mechanical layer
  10. Confirm panel dimensions if board is part of a multi-up panel

Panelization Considerations

MethodMin Board SizeKeep-Out from EdgeBest For
V-Score (Scored)30 x 30mm1.0mm from scoreRectangular boards, no overhanging components
Tab-Route (Breakaway)Any size2.0mm from tabIrregular shapes, boards with edge components
Stamp Hole (Perforated)Any size1.5mm from holesGentle separation required (flex circuits)
CombinationVariesPer methodComplex boards with mixed requirements

Checkpoint: Mounting Holes Placed Correctly

Review Criteria

All mounting holes are placed at exact positions specified in the mechanical drawing. Hole diameters, pad sizes, and plating specifications match requirements. Copper keep-out around mounting holes adequate for screw head clearance and voltage isolation.

Mounting Hole Specifications

Screw SizeHole Diameter (PTH)Hole Diameter (NPTH)Pad Diameter (min)Keep-Out Radius
M22.2mm2.1mm4.0mm3.5mm
M2.52.7mm2.6mm4.5mm4.0mm
M33.2mm3.1mm5.5mm4.5mm
M44.3mm4.2mm7.0mm5.5mm
#4-403.0mm2.9mm5.0mm4.5mm
#6-323.6mm3.5mm6.0mm5.0mm

Mounting Hole Design Decisions

Good: Mounting Hole Design

M3 mounting holes at exact positions from mechanical drawing (+/- 0.05mm). Plated through-hole connected to all ground planes with direct connection (no thermal relief). Keep-out zone of 4.5mm radius on all layers (no components, no routing). Bottom side has clearance for M3 nut + washer (8mm diameter). Silkscreen circle marks the keep-out boundary.

Bad: Mounting Hole Issues

Mounting holes placed at "approximate" positions without verifying against mechanical drawing. One hole is 0.5mm off, causing stress when board is screwed down. Traces route within 1mm of hole (risk of cracking from screw torque). No keep-out defined on bottom side - a capacitor is under the screw head area and will be crushed.

Checkpoint: Connector Positions Match Panel Cutouts

Review Criteria

All external-facing connectors align precisely with their enclosure panel cutouts. Connector mating face height, lateral position, and depth match the panel opening within tolerance. Cable connectors have adequate bend radius clearance.

Connector Alignment Verification

  1. Import panel cutout drawing as reference geometry on a mechanical layer
  2. Verify X/Y position: Connector center matches cutout center within 0.3mm
  3. Verify Z-height: Connector mating face is at correct height above/below board for the panel slot
  4. Check depth: Connector does not protrude beyond panel outer surface (unless specified)
  5. Verify retention features: Connector locking tabs/clips align with panel features
  6. Test with 3D model: Import mating connector model to verify no interference during insertion
  7. Cable clearance: Verify sufficient depth behind connector for mated cable and strain relief
  8. Insertion force direction: Ensure board mounting can handle connector insertion/removal force without flexing

Connector Position Verification Tips

Tolerance Stack-Up for Connectors

Total position tolerance from connector to panel cutout:

  T_total = sqrt(T_pcb^2 + T_mount^2 + T_enclosure^2 + T_connector^2)

Where:
  T_pcb = PCB outline tolerance (+/- 0.1mm)
  T_mount = Mounting hole clearance (hole_dia - screw_dia) / 2
  T_enclosure = Enclosure machining tolerance (+/- 0.1mm for CNC)
  T_connector = Connector body to pin tolerance (+/- 0.1mm typical)

Example: Standard assembly
  T_pcb = 0.1mm
  T_mount = (3.2 - 3.0) / 2 = 0.1mm (M3 screw in 3.2mm hole)
  T_enclosure = 0.1mm (CNC aluminum)
  T_connector = 0.1mm

  T_total = sqrt(0.01 + 0.01 + 0.01 + 0.01) = 0.2mm

Panel cutout must be oversized by T_total on each side.
For a USB-A connector (12mm wide): cutout = 12 + 2*0.2 = 12.4mm minimum
Recommended cutout: 12.5-12.8mm (with gasket for aesthetics)
            

Common Connector Panel Cutout Sizes

Connector TypeMating Face (WxH)Recommended CutoutNotes
USB Type-A12.0 x 4.5mm12.5 x 5.2mmAllow for shell tolerance
USB Type-C8.94 x 3.26mm9.5 x 3.8mmTight tolerance required
RJ4516.0 x 13.0mm16.5 x 13.5mmInclude LED window if equipped
HDMI Type-A14.0 x 4.55mm14.5 x 5.2mmChamfer corners on cutout
DB-930.8 x 12.5mm31.5 x 13.0mmInclude screw boss holes
SMA (bulkhead)6.35mm dia6.5mm diaUse connector's own panel mount
DC barrel jack8-14mm diaPer connector specDepth clearance critical

Common Pitfall: Connector Height Mismatch

A USB connector is placed at the board edge, but the enclosure has the board mounted 2mm below the panel center. The connector mating face is now 2mm too low relative to the cutout, causing cable strain and poor contact. Solution: Use right-angle connectors with the correct offset, or mid-mount connectors that center the mating face relative to the board surface. Always verify Z-axis alignment in 3D, not just X-Y position.

Checkpoint: Keep-Out Zones for Mechanical Parts

Review Criteria

Keep-out zones are defined for all mechanical interference areas: heatsinks, shields, mounting hardware, cable routes, moving parts. Keep-outs are enforced on correct layers (top, bottom, or both) and verified by DRC.

Types of Keep-Out Zones

Keep-Out TypeApplies ToTypical Definition
Component height keep-outAreas under mechanical partsRegion with max height constraint
Routing keep-outAreas where no copper allowedUnder antenna, near board edge for EMC
Via keep-outAreas where no via drilling allowedUnder BGA center pad (pre-applied thermal compound)
Component keep-outNo components in regionUnder heatsink, access panel, test fixture
All-layer keep-outNo copper on any layerAntenna clearance, flex fold zone

Keep-Out Zone Margins

Checkpoint: Board Edge Clearance Maintained

Review Criteria

All copper features, components, and vias maintain minimum clearance from the board edge. Edge clearance prevents copper exposure during routing and provides manufacturing margin. V-score areas have additional component clearance.

Board Edge Clearance Rules

FeatureMin Distance from EdgeRecommendedReason
Copper trace/pour0.25mm (10mil)0.5mm (20mil)Router tolerance + copper exposure prevention
Via (edge of hole)0.5mm (20mil)0.75mm (30mil)Drill registration + structural integrity
SMD component (body)0.5mm1.0mmPick-and-place accuracy, wave solder clearance
Through-hole component1.0mm2.0mmLead clearance during wave soldering
BGA component3.0mm5.0mmRework access, underfill flow
Component near V-score1.0mm from score line2.0mmStress during depanelization

Common Pitfall: Edge-Plated Boards Without Proper Specification

Some designs require copper plating on the board edge (for EMC grounding to enclosure, or edge-mounted connectors). This requires a special fabrication process: the board is first plated as a larger panel, then routed. If not specified, the fabricator will route the edge and expose bare FR-4. Always call out "Edge Plating Required" on specific edges with minimum plating thickness (typically 25um copper).

Checkpoint: Tooling Holes for Assembly

Review Criteria

Assembly tooling holes (fiducials) are present for pick-and-place machine registration. Global fiducials at board corners and local fiducials near fine-pitch components are correctly specified. Fiducial design meets IPC-7351 requirements.

Fiducial Types and Requirements

Fiducial TypeQuantityPlacementSpecification
Global (board-level)Minimum 3At least 3 corners, maximum diagonal separation1.0mm copper dot, 2.0mm mask opening
Local (component-level)2 per componentDiagonal corners of fine-pitch ICs1.0mm copper dot, 2.0mm mask opening
Panel fiducial3 per panelPanel frame cornersSame as global

Fiducial Design Specifications (IPC-7351)

Global Fiducial Mark:
  - Shape: Round copper pad (circle)
  - Diameter: 1.0mm (typical), range 1.0-3.0mm
  - Mask clearance: 1.0mm beyond pad edge (total opening = pad + 2mm)
  - No silkscreen within clearance zone
  - Copper: Bare copper (not covered by mask or silk)
  - Surface finish: Same as pads (HASL, ENIG, etc.)
  - Background: Solder mask (contrasting color) around the mark

Placement rules:
  - Minimum 5mm from board edge
  - Not symmetrically placed (machine needs orientation reference)
  - Clear area around fiducial: 3mm radius free of other copper features
  - At least 2 fiducials required; 3 recommended (allows rotation detection)
            

Tooling/Panelization Holes

STEP Model Alignment Check

  1. Export PCB as STEP file from EDA tool
  2. Import into mechanical CAD (SolidWorks, Fusion 360, FreeCAD)
  3. Import enclosure STEP model
  4. Align using mounting hole positions
  5. Check interference/clearance on all sides
  6. Verify connector mating faces align with cutouts
  7. Check cable routing clearances
  8. Verify thermal solution (heatsink) fitment
STEP Export by Tool

Altium: File > Export > STEP 3D. Ensure all 3D bodies are assigned to components. Set export options to include board body, components, and mounting hardware.
KiCad: File > Export > STEP. KiCad uses .wrl (VRML) or .step models from component libraries. Verify models are assigned in Footprint Properties > 3D Models tab.
Allegro: Export via File > Export > STEP or use Allegro's native 3D Viewer. Requires component 3D models in the library.

Industry Standards References
  • IPC-7351B Section 3.3: Land pattern fiducial requirements for assembly
  • IPC-2221B Section 8.3: Mounting and mechanical requirements
  • IPC-2615: Printed Board Dimensions and Tolerances (board outline specification)
  • IPC-D-300G: Printed Board Dimensions and Tolerances
  • IPC-7525B: Stencil Design Guidelines (fiducial requirements for stencil alignment)
  • ASME Y14.5: Dimensioning and Tolerancing (GD&T for mechanical drawings)

Mechanical Integration Review Checklist

Full Verification Procedure

  1. Board Outline:
    • Import DXF from MCAD and overlay on PCB outline - check dimensional match
    • Verify all internal corner radii >= router bit radius (0.5-1.0mm)
    • Confirm board thickness in stackup matches enclosure slot
    • Check V-score or tab-route locations for panelization
  2. Mounting Hardware:
    • All mounting holes at exact positions from mechanical drawing
    • Correct hole type (PTH for grounding, NPTH for isolation)
    • Keep-out zones on both sides for screw heads and nuts
    • No traces within 1mm of hole edge (stress cracking zone)
  3. Connectors:
    • X/Y position matches panel cutout within tolerance stack-up
    • Z-height (mating face elevation) correct for panel slot
    • Connector retention features (clips, locks) clear of enclosure
    • Cable bend radius clearance accounted for
  4. Height Restrictions:
    • All components within enclosure height envelope
    • Bottom-side components clear of chassis/mounting surface
    • Heatsink/thermal solution fits within available space
    • Cable routing clearance above tallest components
  5. Assembly Considerations:
    • Fiducial marks present and properly specified
    • Panel tooling holes at correct positions
    • Breakaway tabs do not stress nearby components
    • Test fixture access (bed-of-nails clearance if needed)

Common Mechanical Integration Failures

IssueRoot CauseCost of FailurePrevention
Board does not fit enclosureOutline dimensions wrong or tolerance stack-upNew board revision or enclosure modification3D fit check with tolerance analysis
Connector misaligned with cutoutPosition error or height mismatchMechanical rework or new panelSTEP model verification before tape-out
Component hits enclosure ribMissing height keep-out zoneComponent relocation = new board revisionImport full enclosure model with ribs/features
Screw crushes bottom componentNo bottom-side keep-out at mounting holesComponent damage at assemblyDefine keep-outs on BOTH sides
Board warps when screwed downMounting holes not coplanar with chassis bossesBoard stress, cracked solder jointsVerify flatness tolerance of chassis bosses
Cannot access test pointsTest points under heatsink or shieldCannot debug in productionTest point accessibility review with fixtures

ECAD-MCAD Collaboration Best Practices

Common Pitfall: 3D Model Inaccuracy

Many EDA library components have inaccurate or missing 3D models. A component shown as 5mm tall in the 3D viewer might actually be 8mm tall when the solder joint height, PCB thickness, and component body tolerance are considered. Always verify 3D model accuracy against the component datasheet dimensional drawing. For critical clearance checks (less than 2mm margin), measure the actual component sample with calipers rather than relying on the 3D model.