How to design the ESD protection circuit for the membrane switch?
The ESD protection for membrane switches requires a collaborative design from three aspects: structural design, circuit protection, and PCB layout, in order to effectively prevent damage caused by electrostatic discharge to the downstream chips. Here is the complete design plan:
ESD protection level requirements
According to the IEC 61000-4-2 standard, the protection levels required for different application scenarios vary:
| Application scenario | Contact discharge | Air discharge |
| Consumer electronic products | ±2kV ~ ±4kV | ±8kV |
| Industrial equipment | ±6kV ~ ±8kV | ±15kV |
| Medical/Automotive Electronics | ±8kV ~ ±15kV | ±15kV ~ ±25kV |
Option One: TVS Diode Protection (The Most Common Method)

TVS (Transient Voltage Suppression Diode) is the core component for ESD protection in membrane switches, capable of responding within nanoseconds and clamping the voltage to a safe level.
Key points for TVS selection
Working Voltage (VRWM): Must be higher than the maximum operating voltage of the circuit. For example, for a 3.3V system, select VRWM ≥ 3.6V; for a 5V system, select VRWM ≥ 5V.
Clamping Voltage (VC): Must be lower than the tolerance voltage of the protected chip (suggest leaving a 20% margin). For instance, if the MCU withstands 10V, then VC should be ≤ 8V.
Capacitance at Junction (Cj): For thin film switch signals with a lower frequency, generally selecting Cj < 10pF is sufficient; if involving high-speed signals (such as the I2C interface of a touch IC), it is necessary to select Cj < 1pF.
Peak Pulse Power (PPK): It is recommended to be ≥ 350W (corresponding to IEC 61000-4-2 Level 4).
Bidirectional/Unidirectional: Signal lines select bidirectional TVS, and power lines select unidirectional TVS.
Typical circuit connection
Membrane switch row/column pins ──┬── TVS diode ── GND
│
└── Series resistor (100~1kΩ) ── MCU GPIO
The TVS is connected in parallel between the signal line and the ground, placed close to the connector.
The series resistor (100~1000Ω) is used to limit the ESD discharge current and forms an RC filter with the TVS, further suppressing high-frequency noise.
Option 2: Conductive silver paste grid layer (structural-level protection)
This is an ESD protection solution implemented at the internal structure level of the membrane switch, and it is particularly suitable for applications with high protection requirements:
On the surface of the PET film, print vertical cross-shaped silver paste grid lines with a 6mm spacing, and surround the silver paste edge lines.
All the ends of the grid lines intersect and conduct with the edge lines, and the resulting electrostatic discharge lines are grounded.
The electrostatic charge generated when the human touches the button is immediately discharged through the silver paste grid.
The resistance between the grid points and the end of the electrostatic discharge line should be less than 10Ω.
Basic not to increase the thickness of the membrane switch
This solution can be used in conjunction with TVS protection, forming a dual protection mechanism of "structural discharge + circuit clamping".
Option Three: RC filtering combined with TVS protection
For applications that are sensitive to interference, an RC filter can be added on top of the TVS:
Membrane switch pins - R1 (100-470Ω) - ┬ - C1 (1-10nF) - GND
├── TVS ── GND
└── MCU GPIO
R1: Current-limiting resistor, used to limit the peak ESD current
C1: Filter capacitor, absorbs high-frequency noise and also serves as a key debounce function
TVS: Final clamping protection
Key rules for PCB layout
Even the best protective devices will fail if the layout is improper. The following are the layout rules that must be followed:
Location of TVS
The TVS must be placed directly below or adjacent to the connector pin, with a distance of ≤ 5mm.
Signal path: Connector → TVS → Series Resistor → MCU. The order cannot be reversed.
Never run a long line before the TVS; that would be like building a "highway" directly to the chip for ESD.
Circuit routing design
| Routing type | Minimum width | Description |
| Signal routing | ≥0.5mm | Can withstand ±8kV HBM when paired with TVS. |
| Ground/power wiring | ≥ 1.0 - 2.0mm | Handles higher transient currents |
| Adjacent signal spacing | ≥ 0.5mm | To prevent ESD breakdown or arcs |
| Signal-to-ground distance | ≥ 0.3mm | The nearby ground provides shielding and current diversion |
Grounding Design
The ground pins of TVS are connected to the ground plane via the shortest path. Two to four vias are used in parallel to reduce the impedance.
The diameter of the vias should be ≥ 10 mil, and the width of the ground trace should be ≥ 30 mil.
An independent interface ground (shielded ground) is established, and it is connected to the main digital ground at a single point through a 0Ω resistor or a magnetic bead.
All TVS of the interfaces and the metal casings of the connectors are connected to the interface ground.
Cable Routing Restrictions
Protected signal lines and unprotected signal lines must not run parallel to each other to prevent coupling interference.
Avoid sharp-angle routing and use 45° angles or arcs.
Unused MCU pins must be pulled up/down or configured as outputs. It is strictly prohibited to leave them floating.
Structural protection design for membrane switches
Apart from the circuit level, the structural design can also significantly enhance the ESD immunity:
Increase air gap: Add an insulating film or air gap (≥2mm) between the metal bracket of the key and the internal PCB.
Panel material selection: Polycarbonate (PC) panels have better insulation and arc resistance than PET.
Panel thickness: A panel layer thickness of ≥0.25mm can effectively block air discharge.
Sealing design: Install a silicone sealing ring to prevent moisture and contaminants from entering (moisture will significantly reduce the surface insulation resistance).
ESD test verification
After the design is completed, it must be verified in accordance with the IEC 61000-4-2 standard:
Contact discharge test: ±4kV/±6kV/±8kV. Each contactable conductive point should undergo at least 10 discharges (10 times for positive and negative polarities respectively)
Air discharge test: ±8kV/±15kV. An arc is generated when rapidly approaching from a 1cm distance
Judgment criteria:
A grade (pass): The equipment operates normally during and after the test
B grade (acceptable): The function temporarily malfunctions during the test, and automatically recovers after the test
C grade (fail): Requires manual intervention to recover
D grade (fail): Hardware damage
Example of a Complete Protection Plan
Take the membrane switch of the 3.3V MCU system as an example:
┌── TVS (bidirectional, VRWM = 3.6V, Cj < 5pF) ── GND
│
Membrane switch row pins ── R1 (220Ω) ──┼── C1 (4.7nF) ── GND
│
└── MCU GPIO (built-in pull-up enable)
PCB layout:
The distance between TVS and connector ≤ 5mm
TVS to GND: 2 12mil vias connected in parallel
The interface area is plated with copper, and connected to the main ground through a 0Ω resistor
The width of the signal line is 0.5mm, and the width of the ground line is 2mm
💡 Summary: The core of ESD protection for membrane switches is a trinity of TVS diodes, series resistors, and reasonable grounding. The TVS diode is placed close to the connector (≤ 5mm), the wiring is short, straight, and wide, the grounding has low impedance (multiple vias in parallel), and no pins are left floating. In high protection level scenarios, a silver paste grid discharge layer can be added to form a double-layer protection. After the design is completed, it must undergo contact discharge and air discharge tests in accordance with the IEC 61000-4-2 standard for verification.
