henkoegema
Posts: 13
Joined: Thu Oct 17, 2013 3:26 pm

Motion sensor with RFI/EMI (?)

Thu May 11, 2017 1:05 pm

I have a raspberrypi-0-W with Raspbian(Jessie)
Connected to the pi is a PIR (motion) sensor. Motion is detected by a python program using interrupts.
When the sensor detects motion, it sends a signal via WiFi to a receiver which gives a visible and audio signal.

That all works well on a breadboard. :)

When I put the configuration neatly in a plastic box, the motion sensor becomes unstable. (sending motion while there is NO motion).
When I put it out of the box, all is well again.

So I'm expecting (?) some form of RFI and/or EMI. May be because of the WiFI ?? I'm not quit sure what the reason is.

(in an earlier stage I had the same problem with a Arduino Uno (standalone) + ESP8266-01. that's why I changed to a pi, but that didn't help)

Any solution?

mattmiller
Posts: 2236
Joined: Thu Feb 05, 2015 11:25 pm

Re: Motion sensor with RFI/EMI (?)

Thu May 11, 2017 1:14 pm

Are the leads to the PIR longer when in box?
Is it the front cover of the box that causes the issue e.g does it work in the box but with the bits loose?

User avatar
xamal
Posts: 56
Joined: Wed Apr 19, 2017 1:42 pm
Location: A Coruna, Spain
Contact: Website

Re: Motion sensor with RFI/EMI (?)

Thu May 11, 2017 2:24 pm

¿Can you put any image of the assembly? ¿PIR model? ¿Conections?

PIR sensor works with infrared radiation. WiFi waves should not affect to it.

Make sure that any led nor hear source are near the sensor.

pcmanbob
Posts: 9298
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Motion sensor with RFI/EMI (?)

Thu May 11, 2017 6:56 pm

Hi.

I have seen something similar before, were the wifi signal triggers the PIR, you need to move the PIR away from the pi.

I did some tests to replicate this problem, in this post
viewtopic.php?f=28&t=155270&hilit=+pir
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “Troubleshooting”