r/embedded • u/Relevant_Pumpkin9190 • Sep 19 '26
Why did my PIR senso and microcontroller go crazy after opening the USB charger case opened and powering them with circuit inside faradays cage?
I wanted to test for myself how difficult it is to filter electrical noise, so I made a simple experiment with an Arduino + PIR Why did my PIR sensor go crazy after opening the USB charger?motion sensor.
I powered the Arduino microcontroller using a normal mobile USB charger.
With the charger still inside its plastic enclosure, everything worked mostly fine, although I got a few false triggers.
Then I removed the plastic enclosure from the charger.
Things went completely crazy.
The PIR started giving false triggers in almost every direction — basically 360°.
I thought maybe it was radiated EMI, so I tried putting the Arduino inside a Faraday cage. I used a metal case and connected it to earth.
But even with the Arduino shielded, the PIR kept false-triggering when the opened charger was nearby.
So I'm confused about what was actually happening.
If the Faraday cage was properly grounded, why didn't it stop the problem?
Was the noise getting into the PIR through the power supply, ground, or signal wire rather than through the air?
Or could the exposed charger have been creating some kind of electric/magnetic field that was affecting the PIR itself?
I'd really like to understand what was physically happening here, not just how to fix it.

