Short answer: move the parts onto a hinged stainless steel enclosure that carries its own removable mounting panel, and size the box about 1 in [25 mm] larger than the panel on every side. A 12 x 8 in plastic hobby box maps to a 14 x 12 x 6 in steel box, H x W x D. Order it rated NEMA 4X / IP66, take every cable through a threaded gland (a 20.5 mm hole for an M20 body), and bolt the box down with a strap behind it. Plastic fails on a moving mount at its thinnest ribs: lid bosses, hinge pillars and snap tabs. Steel hands that load to the mount instead of cracking. The sections below size the box, the holes and the mounting, and end with the material call for a wet or salty site.
Why the plastic box loses on a moving mount
A vehicle trunk, a mobile machine base and a panel next to a press punish an enclosure the same way. Every bump multiplies the effective weight of the contents and delivers it through four screws into the thinnest plastic features: lid bosses and hinge pillars. The bosses creep, the lid starts to rattle, and vibration walks sheet-metal screws out of plastic threads within a few hundred miles. Steel walls and steel hinges take the same hit at the mount, where a bolt into sheet metal does not care. The knowledge-base piece on metal housings for mounted electronics makes the same case from the component side.
Temperature does the rest. Design the replacement for -20 to 130 F (-29 to 54 C) parked across a year: summer sun through glass sets the top of that range and winter nights set the bottom. Steel takes the cycling without stress-cracking, and its wall spreads a power supply's heat instead of trapping it beside the device. The metal vs plastic comparison for electronics heat and cooling carries that arithmetic.
The rating the replacement needs
NEMA 1 is a drip shield for a clean indoor wall and nothing more. Type 4 covers hose-directed water from any direction, which is what a car wash, a spilled drink or wet camping gear becomes inside a trunk. The X in Type 4X adds corrosion resistance, and NEMA 250 backs it with a 200 h salt-spray test. On the IEC side, IP65 means dust-tight with jets (a 6.3 mm nozzle at 12.5 L/min), and IP66 steps up to 12.5 mm jets at 100 L/min. In US installations, NEC 110.28 states that IP ratings are not a substitute for enclosure type ratings, so a specification that says Type 4X wants the type marked on the box. Our wall-mount stainless line is rated NEMA 4X / IP66 by the manufacturer; not UL listed. A trunk with dust, damp gear and an occasional hose sits comfortably inside Type 4X. The NEMA 12 vs NEMA 4 guide carries the full type-to-environment chart.
304 or 316L for the site
Order 304 stainless with a #4 brushed finish for a dry trunk or an indoor machine mount. Step up to 316L when salt water stands: a boat-trailer tow vehicle, a coastal garage, or slush that sits on the box until spring. Heat does not pick the grade, because the chloride stress-corrosion threshold sits near 60 C (140 F) for both 304 and 316L. Standing brine does, since wet salt deposits pit 304 even at room temperature. The stainless box selection article runs the full 304 vs 316L comparison.
Size the box from the panel you already laid out
Measure the panel, not the old box. The rule is 1 in [25 mm] of fresh air beyond the panel on every side, so cords enter without a fight and the door closes past the tallest device. Depth is its own stack: panel standoff, device depth, wiring loop.
Worked example, for a panel 12 in high by 10 in wide carrying DIN-rail gear 3.5 in deep:
- Height: 12 + (2 x 1) = 14 in
- Width: 10 + (2 x 1) = 12 in
- Depth: 0.75 in standoff + 3.5 in device + 1.5 in wiring loop = 5.75 in, so take the 6 in depth
That lands on a 14 x 12 x 6 in outside box (H x W x D), with a DIN rail row above the panel. The wall-mount line runs from 6 x 4 x 4 in to 60 x 36 x 16 in outside, so this class sits inside it; the stainless size finder filters the exact size. For a splice-and-terminal build on a smaller footprint, the stainless junction boxes page covers the nine smallest wall-mount sizes. Leave the wiring loop behind the device generous; the internal cable management article shows how to support it so vibration cannot work a splice loose.
Glands and the holes to drill
Size each gland by cable OD, then drill for the gland body. A 0.500 in (12.7 mm) cord sits in the 10-14 mm clamp range of a common M20 body, and typical datasheets drill M20 at 20.5 mm (0.81 in). A 5/8 in (0.625 in) hole left over from another project takes only a grommet sized about 1/16 in (1.5 mm) over the cable OD. The rubber grommet vs cable gland comparison explains why a grommet leaves the dust and washdown protection behind.
| Cable or cord | Fitting | Hole to drill (typical datasheet values) |
|---|---|---|
| 0.24-0.35 in (6-9 mm) OD | M16 gland | 16.5 mm (0.65 in) |
| 0.39-0.55 in (10-14 mm) OD | M20 gland | 20.5 mm (0.81 in) |
| 0.55-0.71 in (14-18 mm) OD | M25 gland | 25.5 mm (1.00 in) |
| NM sheathed cable | twin-screw clamp, 3/4 in trade size | 1-1/8 in (28.6 mm) knockout |
Match the clamp range and hole printed on the gland you buy; the table is the usual trade layout, and the M20 gland hole size article shows where the numbers come from. In stainless, step-drill under cutting oil for gland holes and run a hole saw at low speed for anything over 3/4 in: the drill speed and feed article and the cutout how-to carry the details.
Mounting that survives a crash
Bolt through the trunk floor with rubber well nuts: the rubber expands behind the panel, seals the penetration and needs no access underneath. Use the factory anchor points where they line up, and put a dab of paint under each foot so the floor stays ahead of rust. The steel itself is heavy enough to matter. At 0.048 in thick and 0.29 lb/in3, 18-gauge sheet puts a 14 x 12 x 6 in box with its panel at roughly 10 lb empty, about 20 lb loaded with gear and cable.
Crash arithmetic: assume a 20 g pulse in a hard impact. F = m x a = 20 lb x 20 g = 400 lbf on the mounts, from any direction. High-bond acrylic foam tape and reclosable fasteners quote hold in the tens of pounds, so tape passes every pothole and fails the one crash that matters. Bolt the box through its feet, isolate squeaks with a rubber washer under each one, and back it with a 1 in webbing strap rated 500 lb. Thread-lock the panel screws and re-torque after the first 500 miles.
One safety step: pull the negative battery lead before drilling in a car, because a slipped bit through a live harness or fuel line costs more than the enclosure ever will.
What to put on the order
One piece, cutouts on the drawing, delivered in 10 business days:
| Order line | What to write |
|---|---|
| Material | 304 stainless, #4 brushed (316L if salt water stands on the box) |
| Outside size | 14 x 12 x 6 in class, H x W x D, from your panel arithmetic |
| Rating | NEMA 4X / IP66, manufacturer rated |
| Door and panel | Hinged gasketed door, removable mounting panel |
| Cutouts | M20 gland holes at 20.5 mm, on a side wall low down, per the drawing |
| Feet | Wall-mount feet, so the same four bolts carry the strap |
The custom enclosure builder takes material, three dimensions and every cutout from one piece, from a minimum of one unit.
The decision by site
- Dry commuter trunk or indoor machine mount: 304 stainless, 14 x 12 x 6 in, Type 4X / IP66, M20 glands on 20.5 mm holes, through-bolted with a 500 lb strap behind.
- Coastal garage or boat-trailer towing: the same box in 316L, since standing brine pits 304 at room temperature.
- Wet trunk with gear that drips: 316L, glands on the lowest side wall, and a drip loop on every cord.
- Snow-belt slush that sits until spring: 316L.
Wherever it lands, order the box around the panel you already laid out: 1 in of air per side and a 6 in depth carry DIN-rail electronics with room for the glands.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 14 × 12 × 6 in | 304 stainless | 14 x 12 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 16 × 14 × 8 in | 304 stainless | 16 x 14 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 20 × 16 × 8 in | 304 stainless | 20 x 16 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Does the steel enclosure include the internal mounting panel?
Yes. Every wall-mount size ships with a hinged gasketed door, a removable mounting panel and wall-mount feet, so the layout you built on the plastic insert transfers straight onto steel. The panel lifts out, so you wire it on the bench and slide it home. Outside sizes run from 6 x 4 x 4 in to 60 x 36 x 16 in, each box is built to your drawing, and it is delivered in 10 business days.
What hole do I drill for a 0.500 in cable?
A 5/8 in hole you already have takes a rubber grommet drilled about 1/16 in over the cable OD, but a grommet leaves the dust and washdown protection behind.
Can I stick the enclosure down with high-bond tape instead of bolts?
Tape survives potholes and loses crashes. A 20 lb loaded box at an assumed 20 g impact pulse pulls on its mount with F = 20 lb x 20 g = 400 lbf, and tape charts quote hold in the tens of pounds. Through-bolt the floor with rubber well nuts and add a 1 in strap rated 500 lb behind the box.
Is 304 stainless enough for a car trunk, or do I need 316L?
304 handles a dry trunk with road splash. Go 316L when salt water stands: boat-trailer towing, coastal garages, or slush that sits on the box until spring. Heat is not the deciding factor, since the chloride stress-corrosion threshold sits near 60 C (140 F) for both grades, but wet salt deposits pit 304 even at room temperature.
What does a NEMA 4X rating actually cover in a vehicle?
Type 4 covers hose-directed water from any direction, and the X adds corrosion resistance backed by a 200 h salt-spray test in NEMA 250. The paired IP66 code means dust-tight plus 12.5 mm jets at 100 L/min. Ours are manufacturer ratings, not UL listed, and NEC 110.28 keeps US specifications on the NEMA type rather than the IP code alone.





