Hello! I'm trying to make a robot which moves from one way to another and when it finds something in its way then it rotates, it also has the capability to sense of human presence and when someone passes it can send radio signal to a receiver which is in another location, everything seems to work fine but I have this problem, when I grab the motor in my hand and make it a small move, it senses of a human presence and it sends signal, even if the pir sensor can't "see" me. I know it has to do with the pir sensor because when I remove it everything works fine, I am assuming is something to do with noise but i've tried all types of filters with resistors and caps but nothing happened. Since i'm not a software expert could someone have a look at the code and suggest something?
FROYROS_TRANSMITTER3.ino (5.56 KB)
FROYROS_RECEIVER.ino (1.16 KB)