# ESD protection design for small connected devices

> Practical ESD protection design for small devices: find the entry points, choose and place TVS diodes, and make firmware recover before the lab.

- Author: Milo Perović, Founder & lead engineer
- Published: 2026-11-05
- Topic: Hardware

A device that passes every functional test on the bench can still reset, lock up or lose a port the first time someone touches it on a dry winter day. Good ESD protection design is what stops that, and it is far cheaper to get right in the first layout than to bolt on after a failed lab visit. This post is for founders and engineers taking a small connected product towards CE or FCC testing.

## What the ESD test actually does to your product

For most consumer and light-industrial products, the relevant immunity test is IEC 61000-4-2. A test generator, usually called an ESD gun, discharges a 150 pF capacitor through a 330 Ω resistor into the product. The current pulse has a rise time of under a nanosecond and a first peak of roughly 3.75 A per kilovolt, so around 30 A at 8 kV contact discharge.

The standard defines severity levels. The product standard you test against picks the level, and for many products under CE it is ±4 kV contact and ±8 kV air discharge. Some product families and customers ask for level 4: ±8 kV contact and ±15 kV air.

- **Contact discharge** is applied to conductive surfaces: screws, metal bezels, connector shells.

- **Air discharge** is applied to insulating surfaces: seams, button gaps, displays, plastic around ports.

- **Indirect discharge** goes into coupling planes next to the product, testing what radiated fields do to your circuits.

Note the gap between this and the ESD rating on an IC datasheet. Chip-level ratings such as the human body model (HBM, often 2 kV) describe what a part survives during handling in a controlled factory. They say almost nothing about surviving a system-level strike, which carries far more current. An MCU pin rated at 2 kV HBM is not protected for an 8 kV IEC discharge.

## Find the entry points before you place a single TVS

ESD enters wherever a person can reach and follows the shortest path to ground or a large capacitance. So start with the enclosure, not the circuit.

List every place a finger, cable or tool can touch:

- Connectors: USB-C, sensor jacks, programming headers left exposed, SIM and SD slots.

- Buttons and touch surfaces, including the gap around a button cap.

- Enclosure seams, vents and light pipes, which are air gaps to whatever sits behind them.

- Metal parts: screws, a metal faceplate, an external antenna or its connector.

For each entry point, decide where the current should go. On a mains-powered product with protective earth there is a natural sink. On a battery device there is no earth at all, so the strike charges your whole board relative to the surroundings and then bleeds away. That is why the test setup for ungrounded equipment uses a bleed cable with two 470 kΩ resistors between discharges, and why floating products tend to suffer more soft failures than hard damage.

## ESD protection design at the connector

For any line that reaches the outside world, a transient voltage suppressor (TVS) diode is the usual first defence. Choosing one means reading more than the headline kV rating.

ParameterWhat it tells youWhat to look for

Working voltage (VRWM)Highest voltage the line normally sees without conductionJust above the signal or rail voltage, including tolerance

Clamping voltageVoltage your IC sees during the strikeLow at the stated pulse current; compare with the IC's absolute maximum

Dynamic resistanceHow fast clamping voltage rises with currentLower is better; often given from TLP measurements

CapacitanceLoading on the signalSub-picofarad parts for USB 2.0 and other fast lines; tens of pF is fine for slow GPIO or power

IEC 61000-4-2 ratingSystem-level survival of the diode itselfAt least the level you will test to, with margin

### Placement and routing

Layout decides whether the part works. The rules we apply on almost every board:

- Put the TVS as close to the connector as possible, before anything else on the line.

- Route the signal through the diode pads rather than tapping off with a stub, so the strike meets the diode first.

- Give the diode's ground pin a very short, wide connection to a solid ground plane, with more than one via. A few millimetres of thin trace adds enough inductance to raise the clamping voltage noticeably at these rise times.

- Add a small series resistor (typically 22–100 Ω, depending on signal speed) or a ferrite bead between the diode and the IC on slower lines. It limits the residual current reaching the pin.

Connector shells deserve their own decision. Bonding a USB-C shell directly to ground, through a capacitor, or through a ferrite and capacitor combination is a trade-off between ESD, emissions and ground loops. Make the choice deliberately and leave footprints so you can change it at the lab. We go through the rest of the connector in [our post on USB-C power input design](https://miloperovic.com/journal/usb-c-power-input-design-for-small-devices/).

## Buttons, seams and the enclosure

Air discharges to plastic are often where battery devices fail. The spark jumps through a seam or around a button and lands on the nearest copper, which is frequently a tactile switch trace running straight to an MCU pin.

Mechanical choices help a great deal here. Increasing the path length from any gap to the nearest conductor, adding a plastic rib behind a seam, and keeping copper back from the board edge under buttons all make the spark go somewhere harmless or not happen at all. Where a button has to sit close to the electronics, protect its line like a connector line: TVS or at least an RC filter close to the switch.

Light pipes and displays are similar: an insulating route to the board, with an LED or display driver behind it that needs the same thinking.

## Firmware is part of ESD protection

Even with good hardware, a strike can flip a register, glitch a reset line or corrupt an I2C transaction. The test criteria usually allow temporary disturbance as long as the product recovers by itself. That makes recovery a firmware requirement.

- Run a hardware watchdog that the main loop has to earn, not one fed from a timer interrupt.

- Periodically re-check critical peripheral configuration, such as radio registers, display settings and GPIO modes, and restore it if it has drifted.

- Use timeouts on every bus transaction and recover a stuck I2C bus by clocking it out.

- Filter or debounce wake and reset inputs so a pulse is not read as a user action.

A product that resets once and comes back cleanly often passes. A product that hangs until the battery is pulled does not. We cover the recovery side in more detail in [firmware watchdog design that recovers devices in the field](https://miloperovic.com/journal/firmware-watchdog-design-that-recovers-devices-in-the-field/).

## Testing before the lab

An ESD simulator for pre-compliance is a worthwhile purchase or rental for any team shipping hardware. Run the same points and levels the lab will use, step up in kilovolts, and log the result at each point: no effect, recovered by itself, needed user action, or damaged. Test both polarities, because faults are often polarity-specific.

Keep optional footprints on early builds. Fixing a weak point at your bench with a component change is a day's work; finding it at the lab can mean a re-spin and a second booking.

## What we would do

A short checklist before you release a layout:

- List every user-reachable point on the enclosure and mark which circuit sits behind it.

- Confirm the test level from your product standard, not from guesswork.

- Choose TVS parts by clamping voltage against the protected pin's absolute maximum, and by capacitance against signal speed.

- Place protection at the connector, route through the pads, and give it a short, multi-via ground.

- Leave footprints for series resistors, ferrites and shell bonding options.

- Make firmware recover by itself: watchdog, register refresh and bus timeouts.

- Zap the first prototypes yourself, both polarities, before booking the lab.
