Quick answer
Design the circuit board and the enclosure together from the first layout, because each sets limits on the other.
Agree the board outline, mounting points, component heights, connector and button positions, battery space, antenna zone and the path heat will take out, before either side is frozen. Treat EMC, radio performance, test access, programming and component supply as design inputs rather than late checks. Most expensive surprises in electronic products come from integration, not from the circuit itself.
Contents
- Why integration is where the risk sits
- Design the board and enclosure together
- Power and batteries
- Heat needs a path out
- EMC and radio as design inputs
- Cables, connectors and assembly
- Firmware, test points and programming in production
- How electronics prototypes usually progress
- Component supply and second sources
- What to hand to an electronics partner
- Worked example: a small battery-powered handheld device
- Common mistakes
- Decision rules
Why integration is where the risk sits
Often an electronics engineer designs a circuit that works on the bench while a designer draws a housing that looks right. Both can succeed and the product still fail: the board does not fit, the antenna sits behind metal, the battery is too small, or the assembled board cannot be programmed. These problems are cheap to avoid early and expensive to fix after tooling.
Design the board and enclosure together
The printed circuit board (PCB) and the enclosure share one space, so treat their interface as a design item with an owner. In practice that means a shared 3D model: the mechanical designer exports the board outline and keep-outs, the electronics designer places parts within them and exports the populated board back. Agree, and revise together:
- Board outline and mounting. Shape, thickness and fixing points (screws, bosses, clips or slots), with clearance around fixings.
- Keep-out zones. Where no parts or tracks may go: under ribs and bosses, near the antenna and along edges that slide into guides.
- Component heights. Height limits for each region, so tall capacitors, connectors and modules sit where the housing has room.
- Openings that line up. Connectors, buttons, LEDs, displays and sensors must meet a hole, window or actuator, within the tolerance of both parts, including light pipes and button actuators. Designing buttons, switches and controls covers choosing switches and getting the button stack-up right.
Neither side should be frozen first. Freezing the enclosure forces the board into awkward shapes or extra cables; freezing the board forces the housing to grow around it. Iterate both, then freeze them together.
Power and batteries
The battery is often the largest and heaviest part inside, so power decisions shape the product. At a planning level:
- Runtime and capacity. Estimate average power across real use, including standby and radio activity, then size the battery for the runtime you promise. Capacity scales roughly with cell size, so the runtime target sets the size of the product.
- Type and charging. Replaceable cells, a built-in rechargeable pack or mains power each change the enclosure; for charging, decide the port position, the indicator and what charger you supply or specify.
- Access. Whether the battery can be reached for replacement, and how it is held so it cannot move, rub or be crushed. See design for repair and disassembly.
Lithium cells also bring battery safety, transport and producer-responsibility requirements, which product certification basics lists among the things to identify at the requirements stage.
Heat needs a path out
A board that runs cool in open air on a bench can run much hotter inside a closed housing. Identify the parts that get warm (processors, regulators, chargers, motor drivers and the battery while charging) and decide how their heat reaches the outside: board copper, a thermal pad to the case wall, a metal part, vents or airflow. Plastics conduct heat poorly, and a surface safe for the electronics may still feel too hot in the hand. Measure temperatures inside a representative enclosure early. The guide to managing heat in a product enclosure covers thermal paths, simple temperature estimates and testing in more detail.
EMC and radio as design inputs
Electromagnetic compatibility (EMC) means the product neither emits too much interference nor is upset by it. It depends largely on layout, grounding, cabling and the enclosure, so it belongs in the mechanical design too.
- Cables act as antennas. Keep internal cables short and consistently routed, and plan where external cables leave.
- Grounding and shielding. Decide early whether the enclosure is plastic, metal or coated, and how the board connects to any metal parts.
- Antenna placement. An antenna needs clear space near an outside wall, away from the battery, metal parts, displays and the user's hand. Metal housings block radio unless the design provides a window or non-metal section; plastics are more forgiving.
A pre-certified radio module can greatly reduce the radio testing needed, but it does not certify the whole product, and its antenna guidance still applies in your enclosure. Book pre-compliance checks on engineering prototypes while the layout can still change. Product certification basics explains how EMC and radio testing fit into conformity, and the Certification Readiness Checklist helps you see what is still open.
Cables, connectors and assembly
Every internal cable is a part to buy, route, fit and inspect, and a common source of faults; fewer boards and cables usually mean easier assembly. Where cables are needed:
- Fix them so they cannot be pinched, rub on sharp edges or move near hot parts.
- Give external cables strain relief, so a pull is taken by the housing, not the solder joints.
- Use keyed connectors that cannot be fitted the wrong way round and can be reached during assembly.
- Plan the assembly order, and whether the product can be reopened for rework or repair.
The guide to estimating assembly time shows how fixings and cable connections add up. Cables, wiring and connectors inside a product covers routing, strain relief, choosing connectors and harness drawings in more detail.
Firmware, test points and programming in production
In production every unit must be loaded with firmware, tested and often serialised or calibrated, quickly and repeatably. Plan for this in the first custom board:
- Test points for power, programming and key signals, placed so a fixture can reach them, usually from one side.
- A programming route that works before the board goes into the enclosure, and ideally a way to update firmware afterwards.
- A board-level functional test, so faults are found before assembly.
- Firmware version control, so you know which version is in which batch.
Write these into your test plan alongside product-level tests. Product testing and validation plans covers the wider testing picture, and the Product Test Plan Builder turns requirements into a test list.
How electronics prototypes usually progress
Electronics prototyping usually moves from off-the-shelf parts towards a custom board, in step with the looks-like and works-like streams described elsewhere.
| Stage | What it is | What it answers |
|---|---|---|
| Development boards | Off-the-shelf boards and modules wired together on a bench | Can the chosen sensors, radio and processor do the job? Early firmware and power measurements |
| Breakout or interim board | A simple custom board or carrier for the chosen parts, not yet in the final shape | Does the chosen circuit work together, and what does it really draw in power? |
| Custom PCB in an integrated prototype | A board in the real outline, fitted in a printed or cast housing | Fit, heat, antenna performance, assembly, test access and pre-compliance checks |
Expect more than one revision of the custom board. How many prototypes do you need? explains how to plan rounds so each answers a clear question.
Component supply and second sources
A board is only as available as its scarcest part. Before committing, check that each part is in active production, stocked by more than one distributor and not marked as not recommended for new designs. Prefer parts with a second source or drop-in alternative, and list approved alternatives on the bill of materials. Processors, radio modules, displays, batteries and custom parts are hardest to replace without redesign. Discuss stock and lead-time risk with your manufacturer before setting a launch date.
What to hand to an electronics partner
Whether briefing an electronics design partner or an assembly manufacturer, a clear pack avoids quotes based on guesses:
- Requirements: functions, power and runtime, environment, interfaces, markets and known regulations.
- Mechanical interface: outline, keep-outs, height limits, mounting and opening positions, ideally as a 3D model.
- Bill of materials with part numbers and approved alternatives.
- Manufacturing files for the board and assembly, plus programming and test instructions.
- Volumes, timing and target cost, including prototype and pilot quantities.
The documents to prepare before talking to a manufacturer covers the wider pack, and the RFQ Pack Builder helps you assemble a request for quotation.
Worked example: a small battery-powered handheld device
Illustrative example. A start-up is developing a small handheld device with a rechargeable battery, a Bluetooth link to a phone, two buttons, a status LED and a sensor at one end. The industrial design has a slim, rounded form that users liked in looks-like testing.
| Question | Decision |
|---|---|
| Will the battery give the runtime promised? | Power measured on a development-board rig; the battery needed was larger than assumed, so the housing was lengthened slightly rather than cutting runtime |
| Where does the antenna go? | A pre-certified module placed at the end opposite the sensor, near a plastic wall, away from the battery and outside the area covered by the user's hand |
| Do buttons, LED and charging port line up? | Board outline and heights shared as a 3D model; light pipe and actuators designed with the housing; charging port backed by a housing rib |
| How does heat get out while charging? | Charger placed away from the battery, with a thermal pad to the housing wall; temperature checked inside a printed housing |
| How will each unit be programmed and tested? | Test pads on the underside for a fixture, programming before assembly, and a short functional test of buttons, LED, sensor and radio |
| What if a part becomes hard to get? | Alternatives listed for the passive parts and charger; the module and battery flagged as single-source risks to monitor |
None of these decisions needed advanced circuit design; they needed both sides working from one model early enough that each change was made in CAD, not in a tool.
Common mistakes
Decision rules
- If different people design the board and housing, share one 3D model and agree the interface list first.
- If the product has a radio, reserve the antenna zone in the first layout.
- If runtime is a selling point, measure power on a rig before fixing the product's size.
- If a part has no alternative, accept the risk, hold stock or design it out, and record the decision.
- Freeze the board and enclosure together, after an integrated prototype passes fit, heat and pre-compliance checks.
Next steps
- List the interface items between your board and enclosure and give each an owner.
- Plan board, product and production tests with the Product Test Plan Builder.
- Check what compliance work is still open with the Certification Readiness Checklist.
- See where this work sits in the wider journey in the development and prototyping hub.
