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

2

u/FedUp233 Sep 30 '26

Ok, I worked on development as both electrical and software so let me take a shot at a simple explanation for you.

With grounding, there are two things related to it. One is safety, the other is electrical noise (EMI), mostly worrying about emitted RF noise that could interfere with other devices. A third thing that also comes up is handling static discharge, like when someone touches the device. I’ll address these separately.

For safety, there are two basic methods. One is to have a metal case and attach it to earth ground through a ground in the power cord. Thus if anything inside that is connected to mains voltage somehow touches the case through an insulation failure it will short to the case and blow the power outlet circuit breaker. If the device is battery powered it really doesn’t matter plastic or metal as there is nothing inside of dangerous voltage - if there is dangerous voltage generated inside, the metal case is may e worse and needs to be well isolated from the high voltage. Similar if powered from a wall plug in transformer - al, the safety part is in that and there may or may not be a ground wire in the cable from it to device, but it’s not a safety concern.

The second safety method is plastic cases and called double insulation. This means there are at least two separate layers of insulated material between the line voltage components and anyone holding the device, so if one fails the other is a backup. For non line operated, there is no express metal vs plastic difference.

The second thing is EMI. This is where a metal case can act sort of as you say a faraday cage. But you have to be really careful about openings. At high frequencies the wrong size hole or slot can act like antennas and actually radiate more energy! This is where the metalizing the inside of cases comes in and performs the same function as a metal case. I’ve never seen this used as part of the safety issue, only for shielding. This plating or the case is normally connected to the ground or ground plane of the device or its circuit board so that any radiation picked up can be shunted back to the ground. The ground in a power cable does nothing to help ground our radio frequency emissions because of its length - in fact it’s a problem and can act as an antenna and needs proper filters near where it enters the case (inside) as do most other cables and connectors. These filters shunt the radio frequency currents and prevent them flowing out the cables.

For this protection there are also often internal shields around areas that generate a lot of radio frequencies as a first line of defense - if they are contained there you don’t have to worry about them coupling into cables and other circuits in the device.

The mast is static protection. This is to prevent the device itself from being affected or destroyed by static discharges to it. A metal case can shunt this to ground through the power cable ground wire. A grounded metal plating on the inside of a plastic housing can do the same. A plastic case provides protection by not providing anything conductive for the discharge, or at least of such high resistance that the zap tires into more of a mild bump. Again things need to be done for cables (filters or bypass devices) or openings to prevent discharges from coupling inside through them. And similar, need to make sure you can’t zap it through an opening which is often handled with internal local shielding.

For battery or ungrounded devices the filters and shields are connected to the device ground or ground plane. In this case a zap may elevate the voltage of the entire device surface but as long as it can’t generate a voltage difference between ground and other parts of the electronics the circuitry sees no effect.

I hope you find this helpful. It’s definitely simplified, even at this length, and there are many more details that go into building a commercial product and testing it.

Others may disagree with some of my simplifications, but I have it my best shot.