0
\$\begingroup\$

I am designing a PCB board that features the ESP32 as the microcontroller. The UART pins will connect to an external HMI LCD, specifically the TJC (a Chinese version of Nextion), through a screw terminal. Additionally, I have included a screw terminal for connecting external I2C sensors.

Rough Wiring Idea

ESD events can occur when someone touches the screw terminal, potentially damaging my MCU.

One way in my Mind is to use TVS Diodes enter image description here

However, I am worried that adding resistors might slow down the communication or have other unforeseen effects. My question is: is it necessary to add a resistor for ESD protection?

In designing the ESP32 S3 USB-C connection, they directly connect the Data pins with the ESD diodes Chip without adding resistors

enter image description here

Can I do this?

Same in case for I2C I2C

If this method works without causing any issues, it would be ideal.

2nd way is using an isolation IC for I2C, Datasheet says they included builtin ESD protection enter image description here I2C galvenic Isolation

Digital isolator chip for UART: Can this digital isolator be used for UART applications? enter image description here

What is your opinion on which way is best and any other commonly practiced methods for this?

\$\endgroup\$
3
  • \$\begingroup\$ Can you post your system diagram? Where is the external LCD powered from? \$\endgroup\$ Commented Jul 26 at 12:50
  • \$\begingroup\$ The question is how much more you need/want ESD protection? The ESP can handle 2kV, and the isolator 4kV. We cannot know if you need extra protection, and from what. \$\endgroup\$ Commented Jul 26 at 14:38
  • \$\begingroup\$ Nextion is Chinese! TJC is probably a clone. \$\endgroup\$ Commented Jul 26 at 14:40

2 Answers 2

1
\$\begingroup\$

To address a possible confusion that hasn't been mentioned in answers so far:

A resistor between ESD source and TVS, doesn't do much. Indeed a small chip resistor is likely to spark over, or even blow up entirely. So that's out.

But that's not to say resistors are worthless here. Simply transposing the resistor and TVS does provide value, quite a lot in fact.

Also, don't use bidirectional TVS. Use clamp diodes, preferably array types. This reflects the clamping voltage of the ICs, which are almost always to their supply pins (the datasheet will say -0.3V/VDD+0.3V voltage range, or something like that, for such pins).

I won't go into deep explanation here, but you may find this reading list helpful:

Simple model into RC filter, demonstrating clamp diodes, and series resistor (after TVS) efficacy:
Is a 100 Ω/1 nF RC low-pass filter enough to protect a microcontroller I/O pin from ESD?

Discussion of standards and ratings, and the effect of TVS and resistors:
How much current can opamps' integrated ESD diodes carry during an ESD strike?

ESD example including a system diagram, relevant to board/system layout:
More robust MOSFET gate: Which parameter to watch?

Finally, don't use I2C off-board. It's literally intended for on-board application only. I2C over screw terminals is absolutely the wrong way to use it. Further reading:
Can I use I2C over 2m cables?

There are proper ways to send I2C farther, but it's a force-fit, often expensive (e.g. some LT parts), and you should really just reconsider the application in general.

The same advice applies to logic-level UART signals. Perhaps the connection is short range and low baud rate, and some filtering and ESD protection will suffice. Preferably, it's converted to RS-232 or -422 levels, and sent over modest to large distances with good signal quality.

\$\endgroup\$
8
  • \$\begingroup\$ When you say "transposing", do you mean moving the resistor after the diode? \$\endgroup\$ Commented Jul 27 at 5:32
  • \$\begingroup\$ Yes, or even better to say, "inside of" the diode. So, in order: connector, TVS, resistor, IC pin. \$\endgroup\$ Commented Jul 27 at 5:48
  • \$\begingroup\$ Great suggestion, Tim Williams. Please provide me with diode options, preferably array types, so I can find the best one that suits my needs. \$\endgroup\$ Commented Jul 28 at 7:45
  • \$\begingroup\$ @AhtishamA Parts are easily found at all major distributors. For example: digikey.com/short/903j0thj \$\endgroup\$ Commented Jul 28 at 7:48
  • \$\begingroup\$ Adding a resistor before the IC pin will not affect communication because it is placed in line with the MCU pin. This will create an RC filter. If I cannot add the resistors, will my system be able to handle the residual ESD after the TVS diode? \$\endgroup\$ Commented Jul 28 at 7:50
0
\$\begingroup\$

My question is: is it necessary to add a resistor for ESD protection?

Generally for ESD, the discharge is thousands of volts sourced from an impedance of hundreds of ohms hence, into a TVS there is a current pulse of several tens of amps. Pretty much most TVS diodes can survive this but, always check the data sheets as to what they say. In addition, the resulting current pulse from an ESD discharge expends its energy in a lot less than 1 μs: -

enter image description here

Read more at: Electrostatic Discharge Test for Energy Meters.

So, you will see a peak current of tens of amps and, pretty much, all the energy is gone in less than 100 ns. But this also depends on what ESD specification you are designing to make your equipment resilient against hence, it's a numbers gain and the above graph is level 4 EN61000-4-2.

Nevertheless, in the main case, most TVS diodes will clamp to some smallish voltage (tens of volts) whilst conducting the tens of amps current from an ESD surge. Adding a series resistor before the TVS is just asking for trouble because then you need to ensure that the resistor will take its share of the energy surge. So, it's inadvisable to do this.

In short, choose a TVS that clamps as low as possible without causing normal operation to be compromised. Then, you should consider how much resilience your "victim" circuit has to the tens of volts that the TVS clamps to. You might find that your victim circuit is no longer a potential victim and can handle the TVS suppressed surge but, if not, you may decide to add a series resistor between TVS and the victim in order to limit current to a few mA.

What is your opinion on which way is best and any other commonly practiced methods for this?

Use a TVS or, use an isolating interface but, the use of a TVS is much more common.

\$\endgroup\$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.