Development · prevention

How to design hardware that passes EMC

The cheapest fix for interference is the one you make at the design stage. Here are the rules we use in our own development: from the schematic and PCB layout to the enclosure and firmware.

Reading time 8 minutesPrintable checklist, 21 items

Short answer

Keep current loops small, the ground solid, filtering and protection at every connector and edges only as fast as needed. Add well-planned chassis bonding, an enclosure without long slots and firmware that recovers by itself after interference. And test the prototype first, not just before certification.

The earlier, the cheaperA line in the PCB design takes minutes. The same change after manufacturing means a new revision, weeks of waiting and another round of testing.

Three principles behind everything else

Emissions and immunity work the same way: what does not radiate well usually does not pick up interference easily either.

1. Schematic and component selection

The schematic decides how much interference is created and which way it can get out or in. Whatever is missing here is later compensated with ferrites and sheet metal.

  • Filter at the power input. Capacitors and an inductor right behind the connector. For mains, leave room for a line filter.
  • Switching regulators chosen with care. Prefer converters with spread spectrum or slower edges. Choose the switching frequency so that its harmonics do not fall into sensitive bands.
  • Decoupling capacitors at every supply pin. A small value as close to the pin as possible, plus a larger capacitor for the whole circuit.
  • Protection on every external interface. TVS or ESD diodes and surge protection at the connectors. Every interface that leads outside is an entry point for discharges and surges.
  • Tamed edges. Series resistors or output settings on fast signals. An edge faster than needed only radiates for no benefit.
  • No floating inputs. Tie unused inputs and the reset through a resistor. A floating input picks up interference and the processor may reset unexpectedly.
  • Spare footprints. Unpopulated footprints for a capacitor, ferrite or resistor at connectors and clocks. If testing shows a problem, you fit a part instead of making a new board.

2. PCB layout

Every current returns to its source. The larger the area the loop "there and back" encloses, the more it radiates and the more interference it picks up. Most layout rules therefore aim at one goal: small loops.

  • Solid ground plane. For fast circuits, a multilayer board is advisable, with every signal layer placed right next to a solid ground plane. The return current then flows directly under the signal.
  • Do not break the ground under signals. Do not route a fast trace across a slot or a split ground. The return current has to go around it and the loop grows.
  • Ground vias at layer changes. When a signal changes layer, place a ground via next to it so the return current can move with it.
  • Short switching regulator loops. Input capacitor, switch and diode or inductor as close together as possible. This loop is often the loudest source of interference on the board.
  • Placement in zones. Connectors and filters at the edge, the fast core (processor, memory, clocks) away from connectors and board edges. Noisy and sensitive parts apart.
  • Clocks short and inside. Crystal and clock traces as short as possible, not along the board edge or under connectors.

3. Connectors and cables

In most products, cables are the largest antenna. Whatever gets onto a cable radiates. And whatever comes in along a cable, the board has to withstand.

  • Connectors on one side where possible. Cables leaving from opposite sides form a large antenna together with the board.
  • Filtering and protection right at the connector. Interference should be stopped at the entry, not in the middle of the board.
  • Cable shield bonded all around. Bond the cable shield to the chassis around the full circumference of the connector, not with a pigtail.
  • Planned ground-to-chassis connection. Decide in advance where and how circuit ground connects to the chassis (directly or through a capacitor), and do not connect them randomly at several points.
  • Differential interfaces. Where possible, use interfaces with twisted pairs (RS-485, CAN, Ethernet). They are more robust and radiate less.

4. Enclosure and mechanics

A metal enclosure only helps if its parts are well bonded electrically. A plastic enclosure does not shield at all, so the board and cables must cope on their own.

  • Conductive joints. Lid and box bonded along their full length or with closely spaced screws, with no paint at the contact points.
  • Short openings instead of long slots. A long slot radiates like an antenna. Several smaller openings ventilate just as well and shield better.
  • A path for electrostatic discharge. Think about where the user touches (buttons, display, connectors) and where the discharge will flow, so that it does not pass through sensitive electronics.
  • Plastic as needed. In a plastic enclosure, plan for a conductive coating inside the cover or a shielding can over the sensitive part if testing shows it is needed.

5. Firmware

Software affects both emissions and immunity. Many things can be set without touching the hardware, but it is good to plan for them from the start.

  • Spread-spectrum clocking. Enable it if the processor and interfaces tolerate it. It reduces emission peaks.
  • Output speed only as fast as needed. Set lower GPIO and bus slew rates wherever fast edges are not required.
  • Switch off what is unused. Disable unused peripherals, clock outputs and buses.
  • Immunity to interference. Watchdog, communication checks and retries, input filtering and a safe return to operation after a reset.
  • Test mode for EMC testing. A mode that enables all interfaces and functions. It saves time in the chamber and shows the worst case.
Mind safetyCapacitors between mains and the chassis (Y capacitors) improve EMC but increase leakage current. For mains-powered equipment, it is limited by the electrical safety standards. Designing for EMC must not compromise safety.

Verify early

If something has already failed, see Failed EMC. What now?

Checklist: design ready for EMC

0 / 21
Schematic
PCB
Connectors, cables and enclosure
Firmware and verification

How we help

  1. We review your design, schematic and PCB, from the EMC point of view before you order manufacturing.
  2. We test the prototype for pre-compliance in our EMC chamber and show you where there is margin and where there is a problem.
  3. We try fixes on the spot and measure again right away.
  4. We design the whole hardware if you wish. Development and the EMC lab are under one roof, so we think about EMC from the very first line.
Free PDF download

The complete CE guide as a PDF

All 12 guides and a glossary in one document: directives, EMC and safety testing, technical documentation, manual and rating label. For printing and for your team.

We use your data only to provide the document and as per the boxes you checked. You can withdraw your consent at any time at sales@compteq.io. Controller: Compteq.io s.r.o. Privacy policy

Want to be sure before manufacturing?

Get an indicative price for pre-compliance testing, or just write to us. We reply within 24 hours.