Email us

Este artículo está en inglés. Ver el sitio en español

Compact electronics enclosure layout for small projects

Lay out the enclosure around connected cables, mounted boards, and positively retained parts storage—not just bare component footprints. Confirm lid clearance and service movements with a full-size mock-up before fixing dimensions or approving cutouts.

NEMA4 Enclosure engineering team · Published October 31, 2026 · 7 min read

Lay out a compact electronics enclosure around three things: the connected hardware, the service operations, and positively retained storage. The bare controller board is only one part of the required space. Cable plugs, breadboard wiring, lid hardware, and removable trays often determine the finished dimensions.

Start with a full-size mock-up before committing to the enclosure or its openings. Keep this arrangement for appropriately powered, current-limited prototype circuits. It does not establish suitability for mains wiring, hazardous energy, or machine safety functions.

What you need before laying it out

Collect the actual parts, not just their nominal dimensions:

  • Controller board, including any expansion boards and mounting hardware.
  • Breadboard with the tallest intended components and representative wiring installed.
  • Every cable plug that must connect while the enclosure is closed.
  • Divided parts container with its own closure and proposed retaining feature.
  • Lid, fasteners, mounting plate, and any internal brackets.
  • Calipers, a ruler, card for a full-size mock-up, and the relevant component drawings.

Record the usable internal dimensions separately from the enclosure's external dimensions. Wall thickness, corner geometry, mounting bosses, and lid features reduce the space you can actually use.

Treat connector access and storage removal as moving envelopes rather than fixed rectangles. A plug must enter and leave. A tray must lift or slide without catching wires.

For the broader sequence of choosing a housing around electronics, use choosing the case before board layout. The process below concentrates on fitting connected modules and contained parts into one serviceable assembly.

Lay out the enclosure in this order

  1. Define how the assembly will be used.

    Decide whether the lid stays open during experiments or closes around a working circuit. Identify which connectors, controls, and indicators need access with the lid fitted. Also decide whether stored parts remain inside during operation and transport.

    Write down the removal sequence before drawing compartments. You should be able to disconnect the supply, unplug external cables, and reach the board fasteners without emptying loose components over the electronics. If frequent changes require dismantling the enclosure, change the layout now.

  2. Place the controller against its connector face.

    Position the controller so frequently used connectors face an accessible enclosure wall. Fit the actual cable plugs before marking any opening. Measure the plug body, strain relief, insertion direction, and space needed to grip it.

    A smaller board-mounted connector does not automatically work through an opening intended for a larger one. Its position or recess may prevent the plug from seating. For interchangeable board versions, verify each version physically or specify a replaceable interface plate rather than assuming compatibility.

  3. Allocate the breadboard and its wiring envelope.

    Place the breadboard where connections remain visible and reachable without crossing the storage opening. Leave room above it for component leads, jumpers, and fingers. Keep wiring away from the lid joint and fastening points.

    For an illustrative footprint calculation, consider modules measuring 3 x 2 in [76 x 51 mm] and 3.5 x 2.25 in [89 x 57 mm]. Side-by-side placement with a 0.5 in [13 mm] gap consumes 7 in [178 mm] of width. That excludes outer clearances, plugs, and storage. These are example module dimensions, not catalog enclosure sizes.

    Use breadboard enclosure layout for serviceable prototypes for the breadboard's detailed wiring arrangement. Here, reserve its complete working envelope before adding other compartments.

  4. Make small-parts storage independently contained.

    Use a divided container with a positive closure rather than an open pocket beside exposed circuitry. Resistors, clipped leads, screws, and other conductive parts must not migrate onto the controller or breadboard.

    Retain the container itself with a latch, captive bracket, or other positive mechanical feature. A snug fit alone can loosen with wear or dimensional variation. The container should remain secured when the outer enclosure is carried or tipped. Its removal path must clear wiring, and its closure should remain accessible without moving the controller.

  5. Establish mounting and electrical clearances.

    Mount the controller using its intended mounting holes and compatible hardware. Support the board without bending it, and keep fasteners clear of components and underside solder joints. Do not let a metal enclosure wall become an unintended contact surface.

    Give the breadboard a defined mounting position, but keep its retention separate from the controller's mounting. An adhesive backing should not be the only restraint if release could cause damage. The article on mounting electronics inside an enclosure securely covers mounting choices beyond this layout exercise.

  6. Calculate depth from the complete stack.

    Measure from the actual internal mounting surface to the lowest obstruction on the closed lid. Include standoffs, board thickness, components, fitted connectors, and wiring above the board. Check the tallest point in each zone rather than applying one average height.

    This illustrative stack shows the calculation method:

    Stack element Example height
    Standoff above mounting surface 0.25 in [6.4 mm]
    Circuit board thickness 0.063 in [1.6 mm]
    Tallest component above the board 0.75 in [19.1 mm]
    Chosen clearance above that component 0.25 in [6.4 mm]
    Total required clear height Approximately 1.31 in [33 mm]

    The example clearance is a layout allowance, not an electrical clearance rule. Increase the stack for taller jumper loops, connector bodies, insulation requirements, manufacturing tolerances, or lid hardware.

  7. Mock up the opening and service movements.

    Make a card model using the proposed internal dimensions and connector locations. Fit the hardware, connect every cable, close the lid, and remove the storage container. Try the intended screwdriver at each mounting screw.

    Include lid screws, hinge movement, latch intrusion, and any internal mounting plate. Check the combined variation between board position, connector location, and enclosure opening. Use PCB enclosure tolerance stack checks when several separate dimensions determine whether the plug will fit.

  8. Freeze the layout before defining cutouts.

    Dimension connector openings from a named enclosure datum, not from a nearby feature that might move. Identify the face, opening dimensions, corner radii, board mounting locations, and any required interface plate. State whether each dimension is nominal or has a functional tolerance.

    The cutout designer can lay out openings and send the layout with a quote request. An open connector aperture is not a sealed interface. If water or dust protection is required, specify a suitable connector assembly and its installation requirements before approving the opening.

Checks before the layout is accepted

First check mechanical access with power disconnected. Then perform electrical and temperature checks under controlled operating conditions appropriate to the circuit.

  • Connect and disconnect every external cable with the lid fitted.
  • Remove the controller without disturbing unrelated parts or forcing a connector against an enclosure wall.
  • Open and remove the parts container without snagging wiring or exposing loose contents above the circuit.
  • With power disconnected, gently tip the closed assembly through its expected handling orientations. Nothing should shift, escape, or strike the board.
  • Inspect for pinched insulation, unsupported cables, conductive debris, and fasteners near solder joints.
  • Confirm that the lid closes without pressing on components or jumper wires.
  • Run the intended load at the expected maximum ambient temperature. Compare measured temperatures with each component's specified operating limits.

A successful fit check does not establish thermal suitability. Storage compartments can restrict air movement, and a closed lid changes heat rejection. If temperatures approach component limits, revise the arrangement or thermal design before reducing the enclosure size further.

Record the accepted cable types and board revisions with the drawing. Otherwise, a later substitution can invalidate an opening that fitted the original hardware.

Mistakes that cost fit or protection

Sizing from the board outline alone. This omits plugs, mounting hardware, cable movement, and the tools needed for service.

Using the outer lid to contain loose parts. Opening the enclosure can release components directly onto powered or exposed circuitry. Give storage its own closure.

Relying on friction for tray retention. A removable insert needs a defined restraint if movement could damage wiring or electronics.

Making connector openings generously oversized. Extra space may improve access but also creates a path for debris and accidental contact. Solve alignment before enlarging openings.

Clamping the lid onto breadboard wiring. Compression can dislodge connections or damage insulation even when the screws tighten normally.

Assuming the enclosure's protection survives every modification. Cutouts, fasteners, connectors, and mounting arrangements all affect the completed assembly. Any required environmental protection must cover the finished configuration, not just the empty shell.

What to send for a custom enclosure

Send a dimensioned layout showing the controller, breadboard, retained storage container, and their service envelopes. Include connector drawings, actual cable details, mounting coordinates, and the required clear internal depth.

State the enclosure material, external width, height, and depth, plus the internal clearances that must be preserved. Identify the environment and whether openings need sealed interfaces. Mark the storage restraint and mounting hardware as supplied parts or requested fabrication so their responsibility is explicit.

For custom enclosures, you define the material, dimensions, and every cutout, starting from one piece. Use the enclosure builder to configure the enclosure and submit it for a quote and approval drawing.

Check that returned drawing against the connected mock-up, not just the board outlines. Approve it only after the plug, lid, tray, and service movements all have confirmed clearance.

Enclosures for this job

Catalog sizes that suit the job this article answers, picked from its subject; open one for its full specifications.

EnclosureMaterialOutside H x W x D / displayRating
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
20 × 16 × 8 in304 stainless20 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
24 × 20 × 8 in304 stainless24 x 20 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

How do you determine the minimum internal enclosure size?

Measure the connected assembly rather than adding the bare board dimensions. Include plug bodies, cable movement, standoffs, lid hardware, storage retention, and tool access. Build a full-size mock-up using usable internal dimensions, then confirm that every part can be installed and removed in the intended sequence.

Can a smaller connector use an existing larger cutout?

Only if its location, recess, and surrounding clearance allow the actual mating plug to seat fully. The connector opening alone does not establish compatibility. Check each intended board revision with its cable, including the space needed to grip and remove the plug.

How should small electronic parts be stored beside a controller?

Use a closed, divided container with positive retention inside the enclosure. Its lid should contain components independently of the outer enclosure lid. Keep its opening and removal path away from exposed circuitry so loose conductive parts cannot fall onto the board.

Can a breadboard remain installed when the enclosure is closed?

Yes, for suitable prototype work when its mounting, wiring envelope, and service access are included in the layout. Keep jumper wires clear of the lid and storage mechanism. A solderless breadboard does not by itself establish suitability for vibration, permanent equipment, or safety-related control.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Build it from 12 × 10 × 6 inRequest a custom quote

NEMA 4X enclosures: sizes for this job

Keep reading

Related engineering answers

All articles

Buying guides

The guides behind this answer

All guides