Use one round locating feature and one slotted feature to control PCB alignment, then use separate fasteners to hold the board down. Refer both the locators and the enclosure opening to the same functional datums. Two close-fitting round holes can bind when their spacing differs, even if each hole fits its pin individually.
Holding ±0.020 in [±0.5 mm] requires a tolerance budget for the complete assembly, not just accurate pins. The critical measurement is usually the connector, switch or indicator position relative to its opening. Include board fabrication, component placement, enclosure geometry, assembly clearance and temperature in that budget.
What you need
Collect the following before selecting pin diameters or drilling the enclosure:
- A board drawing showing locating features, thickness and component keep-out areas.
- An enclosure drawing showing the opening, internal supports and available engagement depth.
- The connector or actuator drawing, including its permissible offset and insertion loads.
- Dimensional tolerances for the actual board, enclosure and locating hardware.
- The operating temperature range and expected assembly temperature.
- A measurement fixture or suitable dimensional inspection equipment.
Start with PCB enclosure fit before board layout if the board outline and connector locations remain flexible. This procedure assumes those choices are sufficiently defined to establish functional datums.
Disconnect power before assembly work. Keep drilling debris and inspection tools away from populated electronics, and follow suitable ESD handling procedures.
Steps to establish repeatable alignment
-
Define what must remain within tolerance.
State the measured feature, reference feature, axes and temperature. For example: the connector center must remain within ±0.020 in [±0.5 mm] horizontally and vertically relative to the enclosure opening center.
That requirement defines separate limits in two axes. It is not equivalent to a circular positional tolerance zone. If the drawing requires a circular zone, evaluate the combined displacement vector against that zone instead.
Also check angular alignment, insertion depth and clearance around the connector body. A connector can meet its center-position requirement while still contacting the opening at one corner.
-
Establish a stable seating plane.
Use the board support plane as datum A. Three non-collinear support points establish a plane without relying on the enclosure floor being perfectly flat. Add further supports where fastening or connector loads require them, while controlling their height to avoid board bending.
Keep copper, components and solder joints clear of support contact areas. Board thickness variation also affects connector height when the functional feature sits above the supported surface.
-
Use a round locator to establish position.
Use a controlled round hole over a round pin as datum B. This establishes the board's in-plane position while allowing assembly clearance.
Do not assume a threaded screw shank or molded boss outside diameter is a precision locator. Their useful accuracy depends on documented dimensions and tolerances. Select a controlled locating surface, then verify its fit against the finished board feature.
Avoid an interference fit through the PCB. The board should seat without force, scraping or visible distortion.
-
Use a slot to establish rotation without trapping the pitch.
Place a second pin in a slot whose long direction runs along the line between locator centers. The slot width controls rotation. Its length accommodates differences in pin spacing, board-hole spacing and thermal expansion.
Put the locators reasonably far apart to reduce angular movement. Check slot end clearance at both tolerance extremes and across the operating temperature range. A slot that bottoms against its pin behaves like another constrained round hole.
Keep the functional opening near the locator system where practical. Features far beyond the locator spacing amplify small angular errors.
-
Support the locating pins properly.
Use a boss, reinforced feature or rigid carrier with enough engagement to resist assembly and service loads. A thin plastic wall alone is not a dependable press-fit support without a validated design.
Specify interference from the pin and plastic material data, boss geometry, temperature and required retention. Excessive interference can split a boss. Insufficient retention can let the pin migrate as plastic creeps.
A threaded insert can retain a standoff, but its thread does not automatically establish an accurate locating axis. Where existing plastic features lack dimensional control, use a separately manufactured carrier referenced to the opening. The options in mounting a PCB where the enclosure has no posts address support; precision location still needs its own drawing requirements.
-
Separate location from clamping.
Give the fastening holes enough clearance that screw insertion does not pull the board away from its locators. Tighten against controlled supports, using the hardware manufacturer's torque guidance.
Do not force a bowed board flat with the mounting screws. Provide separate mechanical support for connectors that see repeated plugging or cable loads. Alignment pins should not become the only path carrying those loads.
-
Reference enclosure openings to the same locating system.
Dimension the cutout and locator mounting features from common datums, rather than unrelated enclosure edges. If the opening is in a removable cover, include cover movement and closure repeatability in the stack.
Door hinges, gasket compression and latch adjustment can move a door-mounted opening relative to a body-mounted board. For a moving actuator, the additional travel and side-loading checks in sealed push-button actuation through an enclosure wall apply as well.
Budget the error at the functional feature
Allocate tolerances at the connector or actuator, not independently at each mounting hole. The following is an illustrative worst-case budget for one axis. Each allowance is already expressed as its maximum contribution at the functional feature.
| Contribution | Example maximum error in one axis | What must be controlled |
|---|---|---|
| Board locating features to functional feature | ±0.004 in [±0.10 mm] | Board fabrication and component placement |
| Enclosure locator system to opening | ±0.006 in [±0.15 mm] | Carrier position, cutout position and cover movement |
| Locator clearance, including angular effect | ±0.006 in [±0.15 mm] | Pin diameters, hole diameter, slot width and lever arm |
| Seating, tightening and temperature effects | ±0.004 in [±0.10 mm] | Support heights, stiffness, assembly and expansion |
| Worst-case total | ±0.020 in [±0.50 mm] | All contributions acting in the unfavorable direction |
These are design allocations, not catalog tolerances or a manufacturing capability claim. Obtain agreement on achievable tolerances before releasing the drawing. Repeat the calculation for the other axis and for connector depth.
Clearance contributes more than simple sideways movement. Consider locators spaced 3.15 in [80 mm] apart, with a functional feature 3.94 in [100 mm] from the round locator.
Assume the maximum diametral clearance at the round locator is 0.0031 in [0.08 mm]. Its maximum radial movement is therefore 0.0016 in [0.04 mm]. Assume the slot permits the same transverse movement at the second pin.
Opposing movements permit approximately 0.08/80 = 0.001 rad of rotation. At the functional feature, rotation contributes about 0.0039 in [0.10 mm]. Adding round-locator translation gives approximately 0.0055 in [0.14 mm], before feature-location errors.
Use maximum hole size and minimum pin diameter for this clearance calculation. Include hole and slot location errors separately, and project their angular effects to the functional feature. Do not count the same contribution twice.
Temperature can consume the remaining margin. With an assumed expansion-coefficient difference of 50 µm/m/°C, a 3.94 in [100 mm] span changes by 0.0079 in [0.20 mm] over 40°C. That exceeds the example temperature allocation. Shorten the critical span, change the reference structure or revise the budget using actual material data.
Check position after fastening
Measure the completed assembly in its normal mounted condition. Do not judge alignment only with the cover removed or screws loose.
- Confirm that the board drops onto both locators without force.
- Verify full seating on every intended support.
- Check that the slotted feature has clearance at both ends.
- Measure connector position before and after tightening the fasteners.
- Close removable covers using the specified assembly procedure, then measure again.
- Mate the connector or operate the actuator without forcing it against the opening.
- Repeat removal and installation to check positional repeatability.
- Verify representative assemblies across dimensional limits and operating temperatures.
Repeatability and accuracy are different. A board can return to the same incorrect position every time. Measure absolute position relative to the opening as well as the spread between assemblies.
The outdoor PCB mounting procedure covers the broader mounting and environmental checks. Here, record the positional results against the defined acceptance limits.
Put the locating requirements on the drawing
Send the board outline, locating-hole and slot details, support heights, cutout geometry and functional tolerance together. Identify datum A, the round locator and the slotted locator explicitly. State which surfaces and features the inspection fixture will reference.
Include board thickness limits, component placement limits, fastener clearance, pin retention requirements and connector loads. Specify the temperature at which dimensions apply. Identify any enclosure-cover movement included in the budget.
For a metal enclosure with an internal carrier, show how the carrier references the opening. Our custom stainless enclosure and cutout options support drawing-based review, but an opening alone does not establish PCB alignment. Agree the locating geometry and dimensional tolerances separately.
Use custom enclosure specifications when the body dimensions or material must change. Do not assume a molded plastic enclosure can receive revised bosses; confirm its existing internal geometry first.
Mistakes that lose alignment or sealing
Two tight round holes are a common source of binding. Enlarging both holes until assembly becomes easy can then create excessive positional movement. Keep one round locator and one properly oriented slot.
Other costly mistakes include locating from an uncontrolled board edge, ignoring component placement tolerance, and tightening screws against uneven supports. A flexible carrier or poorly retained pin can also pass initial inspection and move under connector loads.
Do not use enclosure-wall penetrations casually to support internal pins. Through-wall hardware introduces another sealing interface. Our enclosure ratings are manufacturer ratings for the specified design; the enclosures are not UL listed. Added holes require review of the sealing components and completed assembly.
Finally, do not enlarge the enclosure opening merely to hide an alignment problem. Increase clearance only when the connector's protection, retention and sealing requirements permit it. Fix the datum scheme or tolerance stack when the functional requirement still demands accurate location.
Enclosures for this job
Catalog sizes that suit the job this article answers, picked from its subject; open one for its full specifications.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 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 |
| 24 × 20 × 8 in | 304 stainless | 24 x 20 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Are two dowel pins enough to align a PCB within ±0.5 mm?
They can work when their spacing and fits are sufficiently controlled, but two close-fitting round holes can bind. A round locator plus a slot usually accommodates spacing variation more reliably. Separate fasteners should clamp the board without shifting it away from the locating surfaces.
How much clearance should the PCB locating hole have?
There is no universal clearance. Calculate it from the allowable movement, locator spacing and distance to the functional feature. Use the maximum finished hole diameter and minimum pin diameter to find worst-case clearance, then include the resulting translation and rotation in the assembly tolerance budget.
Can molded plastic bosses provide accurate PCB location?
Only if their dimensional control, stiffness and retention meet the tolerance budget. A threaded insert provides fastening strength but does not automatically provide a precision locating axis. If existing bosses are unsuitable, a controlled carrier can locate the board relative to the enclosure opening.
Does a locating slot eliminate thermal alignment errors?
Temperature changes the distance between board features and enclosure features when their supporting materials expand differently. A slot prevents spacing differences from trapping the board, but it does not eliminate connector movement relative to an opening. Calculate that movement using actual materials, span and temperature range.





