-->
Page 1 of 1

Problem with PIR sensor turning on and off

PostPosted: Thu Mar 09, 2017 10:56 pm
by Genesys
To start off i want to say the PIR sensor is working perfectly on the bread board where its connected to USB . I 3d printed a housing for it and added a Hi-link AC to dc 5v module and it plugs into the wall .Now i have a problem with the PIR turning on and off every fby itself .Its a little randonm and it can stay off for 15 seconds then go on off on off

Hardware is
-Wemos d1 mini
-HC SR501 PIR sensor (D1)
-(Added) Hi-link HLK-PM01 110v to 5vdc

I am using ESPeasy and Publishing MQTT to openhab2 .In ESPeasy its set up as normal switch.

What do you think it could be ? It leads me to believe its something with adding the ac to dc convertor as it was working exactly as it should on the breadboard when it was connected to usb power.

Re: Problem with PIR sensor turning on and off

PostPosted: Sat Mar 11, 2017 11:55 am
by Barnabybear
Hi, the radio signal from the ESP can trigger the PIR. I have needed to cover the rear of the PIR with an insulating material then aluminium foil in the past. Don't forget the insulation or you'll short things on the PIR board.

Re: Problem with PIR sensor turning on and off

PostPosted: Sat Mar 11, 2017 12:06 pm
by warwick
I have also had issues with false triggers from PIR sensors before. In my case, putting an extra RC filter (eg 100Ohm / 100uF) to decouple the power supply for the PIR sensor from the ESP8266 power supply solved the problem.

Re: Problem with PIR sensor turning on and off

PostPosted: Tue Mar 14, 2017 2:56 am
by Genesys
I tried shielding it but still same problem .Ill try the RC filter on the Vin and wrap the wire in a Toroidal ring and see if that helps