Quick answer
Use as few internal wires as you can, and treat every one that remains as a designed part with a defined route, a fixing and a connector that cannot work loose.
Put parts on the main board or join boards directly where you can. Give the remaining cables moulded routes and clips, keep them clear of sharp edges, screws, moving and hot parts, and make sure any pull is taken by the housing, not a solder joint. Choose latching, keyed connectors rated from the datasheet, document each harness with a drawing and a part number on the bill of materials, and check every unit for continuity and pin-out in production.
Contents
- Why internal wiring causes problems
- Fewer wires first
- Routing and retention
- Choosing connectors
- Harnesses and harness drawings
- Mains wiring
- Testing wiring and connectors
- Worked example: a battery lead that fails after drops
- Common mistakes
Why internal wiring causes problems
On a CAD model a cable is often left out or drawn at the end. In the product it is a flexible part that is fitted by hand and goes wherever it is pushed, which makes wiring a common source of assembly faults and field failures:
- Assembly time and errors. Each cable is another manual step and another chance to use the wrong socket, leave a plug half-seated or route the wire wrongly. Estimating assembly time shows how these steps add up.
- Pinched or chafed wires. A wire trapped in a seam, crushed by a screw boss or rubbing on a sharp edge can work for months before the insulation wears through.
- Connectors working loose. Drops and vibration shake a friction-held plug until the contact becomes intermittent, one of the hardest faults to find.
- Solder joints taking cable loads. A solder joint makes an electrical connection; it is not meant to hold a load. If a tug on the cable or a heavy part pulls on it, it can crack over time.
- Heat near cables. Insulation ages faster beside motors, chargers, power parts and heaters. Managing heat in a product enclosure covers finding the hot spots.
- EMC. Cables can pick up and give off interference, and loose or inconsistent routes make results hard to repeat. Treat this as a design input, as electronics in a physical product explains, and take layout advice from your electronics partner.
- Service and repair. Cables and connectors wear and break at stress points, and wires that are glued down, too short or buried make repair harder. See design for repair and disassembly.
Fewer wires first
The most reliable cable is the one you do not need. Before designing routes, try to remove wires:
- Put components on the main board. Buttons, LEDs, sensors and ports mounted on the board need no wiring, provided the board and housing are laid out together so each part meets its opening.
- Board-to-board connectors. Two boards joined directly, stacked or at right angles, need no cable and locate each other. The housing must still hold both boards so the connector does not carry the load.
- Flexible printed circuits (FPC). A thin, flat flexible circuit can link boards at different angles or on moving parts, and is the same in every unit. It needs a defined bend shape, no sharp creases and care at assembly, because its connectors are small and easy to fit at an angle.
Routing and retention
Each cable should have one route, the same in every unit, designed into the housing rather than left to the person at the bench.
- Moulded channels and clips. Ribs, slots and small hooks in the housing hold a cable at no extra part cost and show the operator the route. Check them against the injection moulding DFM checklist.
- Cable ties and tie mounts. Where clips are not practical, a tie through a moulded slot or onto a mount fixes the bundle. Show its position on the work instruction and say how it is trimmed, so no sharp end is left.
- Clear of hazards. Keep routes away from sharp moulded or sheet metal edges, screw points, anything that moves (hinges, fans, button stems) and hot parts. Where a wire must pass one, add a rib, sleeve or cover.
- Service loops. A little controlled slack lets a board be lifted out and unplugged without straining the cable. Clip the loop so it cannot wander into a seam.
- Strain relief. Wherever a cable leaves the product or the board, a pull should be taken by the housing or a clamp, not the connector or a solder joint: a moulded clamp, a tie to a mount, a wrap round a post, or an overmoulded boot on an external lead. Inside, fix the cable close to the connector.
- Grommets and glands at sealed walls. A grommet protects a cable from the hole edge; in a sealed product a cable gland or sealed connector keeps water out. Sealing and waterproofing an enclosure explains the options.
Wires are often pinched in the last few millimetres as a lid is pressed home over a cable that has lifted from its clip. A rib guarding the seam helps prevent this.
Choosing connectors
Your electronics partner will propose specific parts. Settle these general points with them, because each affects the mechanical design and assembly:
- Locking or latching, not just friction. A latch that clicks into place resists drops and vibration far better than contact pressure alone, and one the operator can see confirms the step is done.
- Keyed and polarised. A keyed connector only fits one way round. Where several sit on one board, vary the size, pin count or keying so each plug fits only its own socket. The error-proofing section of the work instructions guide explains why preventing the mistake beats a warning.
- Current rating and mating cycles from the datasheet. Take the contact current rating, and how many times the connector can be plugged and unplugged, from the manufacturer's datasheet, not from a similar-looking part. Ratings can change with temperature and with how many contacts carry current, so check the conditions stated.
- The same connector in prototype and production. If prototypes use whatever is on the bench, the production part changes the size, latch, access and route late, and the prototypes tell you little about assembly or reliability. Choose the production family by the first integrated prototype.
Harnesses and harness drawings
A harness is a made-up set of wires cut to length with connectors, terminals and any sleeving fitted. For production, buying made-up harnesses from a specialist is usually worthwhile once there is more than one simple lead, crimped terminals are involved or every unit must be identical, because the supplier has the crimp tooling and test equipment to do it consistently.
The harness drawing is what the supplier builds to. It usually shows:
- Lengths of each wire or branch between defined points, with a tolerance.
- Connectors and pin-out: connector and terminal part numbers at each end, and a table of which wire runs from which pin to which, with wire size and colour.
- Labels and other details such as sleeving, ties or tape, and where they go.
Give each harness its own part number and revision, list it on the bill of materials under its assembly, and change it through the same process as other parts; see bills of materials and revision control. A new connector that will not mate with the old one means a new part number, not just a new revision.
Mains wiring
Mains-powered products have specific safety requirements for internal wiring, insulation and separation between mains and low-voltage parts. They come from the safety standard that applies to the product and affect routing, fixings and connector choice from the start. Identify that standard at the requirements stage, as product certification basics explains, and involve a qualified engineer and a test laboratory. A pre-certified external power supply keeps mains wiring out of the product altogether.
Testing wiring and connectors
- Continuity and pin-out checks in production. Every harness should be checked for continuity and correct pin-out, usually by the harness supplier on a fixture. An end-of-line functional test on the assembled product catches connectors left unplugged or half-seated. Write both into your test plan.
- Pull tests on strain relief. Pull external cables, and cables near their connectors, in each likely direction, and check that the housing or clamp takes the load and nothing moves at the joint. Take the force from the applicable standard where there is one, otherwise from realistic use.
- Drops and vibration. After each test, open the unit and check every connector is fully seated, every cable is in its clips and nothing is pinched. Designing for drops and impacts explains why loose heavy parts and unsupported connectors are common drop failures.
Worked example: a battery lead that fails after drops
Illustrative example. A small handheld product has a rechargeable battery pack whose short lead ends in a friction-fit connector, plugged into a socket at the edge of the main board. The board is screwed down at its corners and the battery sits in a pocket with some clearance.
After a few corner drops, several prototypes stop working; some recover when tapped, which points to an intermittent connection. Opening them shows the connector partly unseated on some, and a cracked solder joint at the socket on others.
| Finding | Cause | Change made |
|---|---|---|
| Connector partly unseated | Friction-only connector; the moving battery tugs on the lead | A latching, keyed connector, used from the next prototype on |
| Cracked solder joints at the socket | Connector at an unsupported board edge; the lead's load goes straight into the joints | A housing rib under the board at the connector, and a clip holding the lead next to it so the housing takes any pull |
| Lead taut between battery and board | Length set from CAD with no slack | A slightly longer lead in a moulded channel, with its length defined on a harness drawing |
| Battery free to move | Clearance in the pocket | Ribs locating the battery on all sides and a pad under the cover |
The revised design is drop-tested on several units, each opened after every drop, and the lead is pull-tested near the connector. The work instruction gains a check that the latch is engaged and the lead is in its clip, and the battery lead gets its own BOM line with a part number and revision.
Common mistakes
Next steps
- List every cable and ask whether moving a part onto the board, or joining boards directly, would remove it; model the rest in CAD with their routes and clips.
- Confirm each connector's latch, keying, current rating and mating cycles from its datasheet with your electronics partner.
- Give each harness a drawing, a part number and a revision, and cost it in the BOM Cost Builder.
- Add continuity checks, pull tests and post-drop inspection to your plan with the Product Test Plan Builder.
- See where this work sits in the wider journey in the development and prototyping hub.
