Sat Feb 08, 2014 10:21 am
I am trying my hands on home automation using RPi. I have a simple set-up to start with: a PIR sensor and a relay driver. In my C program (written using wiringPi APIs), I have a callback registered for a raising edge interrupt ( this is to monitor my PIR sensor). I have configured another GPIO pin to drive my relay. Everything works as expected, but I get plenty of false triggers when I turn-on any light in my house; Particularly the ones that are close to my Pi. My optically isolated relay driver is built on a general purpose PCB and the PIR sensor also terminates on the same PCB. I have a GPIO ribbon connecting Pi and this PCB. I have also turned on pull-down resistors on the GPIO pin that takes the PIR sensor output. I am not able to isolate the cause for these false triggers; Is it because, I have left rest of the GPIO pins floating on the PCB? Should I try shielding my PCB by placing it in a grounded metal case?