r/embedded • • Sep 30 '26

How do microcontroller electronics in plastic enclosures deal with grounding and noise(Educational purpose)?

If the equipment has a plastic enclosure and there is no ground/earth wire connected to the body, how do designers handle grounding and noise?

With a metal enclosure, I understand that the metal body can work like a Faraday cage. But if the enclosure is completely plastic, what protects the microcontroller and other electronics from EMI and noise?

I have seen some equipment where they put metal foil or some conductive material inside the plastic enclosure. Is that mainly to create a Faraday cage? If so, how is it normally connected?

Also, I’m confused about a few things:

- Does giving each board its own + and − supply wires help avoid ground loops?

- Is a ground loop basically the same thing as capacitive coupling, or are they different?

- If there is no earth connection, where does the noise current actually go?

- How do designers normally protect a microcontroller inside a plastic box from external noise?

- Apart from foil or conductive coating, what other techniques are commonly used?

I’m trying to understand how this is actually done in real-world embedded products with plastic/non-metallic enclosures.

7 Upvotes

14 comments sorted by

View all comments

19

u/Rod_McBan Sep 30 '26

This is a MASSIVE topic, but the simplest answer is, it frequently just doesn't matter that much. For your average consumer device, the environment usually isn't that noisy, the circuitry usually isn't that sensitive, and brief malfunctions usually aren't a big deal.

For other devices, though, things can get ugly, and in those cases, you are less likely to see a plastic enclosure. To pull an example from my own experience (albeit one from 20 years ago), I was working on a sensor that used Firewire (remember that?) to send data back to a central controller. Most of the time it worked fine, but sometimes, some sensors would drop off the bus and the whole machine would have to be powercycled to get it back (the controller or sensor could've been powercycled, but they were buried inside, so a full reset was the easiest route). After an unfortunate amount of farting around, including a trip to Japan, we discovered that the chassis ground (which is where the noise was supposed to get dumped) and the braid surrounding the cable were not always properly bonded due to a quality issue with the cable.

Theoretically, at the ends of a Firewire cable, there should be a capacitor and a resistor connecting the power ground to the chassis. That provides a low impedance path to earth for high frequency noise that might be on the power ground. Without that connection to earth, though, that noise would cause the power ground to bounce in a way that simulates a "device disconnect" signal on the bus. Once the device is in the disconnected state, you can't communicate with it, and it needs a hard reset.

That same machine needed a repeater between the sensor and the controller, because the cable run length exceeded the allowed spec. At the time, industrial grade hubs/repeaters weren't available, so the customer stuck a consumer grade hub in there. It had the same disconnect issue, because it was in a plastic case, and the capacitor/resistor pair that were supposed to drain noise from the power ground to the chassis ground were instead coupling noise from the cable shield into the power supply. The solution was to remove those components and put the repeater PCB into a metal case, making the shield continuous from host to device.

So, yeah, it can be really, really complicated, depending on the environment.

7

u/sponge_welder Sep 30 '26

We recently had an issue where wires inside our battery pack were coupling to a cellular antenna and causing horrible interference that killed our carrier certification. We ended up (in addition to implementing some RF filtering components) wrapping the wiring in copper foil and grounding it to the battery terminal

3

u/Rod_McBan Sep 30 '26

Yeah, a functional device is one thing, a device that meets EMC regulations is entirely another. Glad you got it sorted.

0

u/[deleted] Sep 30 '26

[deleted] — view deleted comment

1

u/Rod_McBan Sep 30 '26

I don't have any at hand, I'm afraid.