I'm having a problem with a PIR, when I load the sketch it takes a little while to initialise and then works fine (currently turning on an LED on another pin with any movement), no problem. However, when I then start or stop a servo (connected to another pin) the PIR reinitialises and takes another 30 seconds or so to start working again. I'm hoping to use several of these sensors to control the position of the motor eventually. Does anyone know what's occurring here? Any help would be much appreciated.
Thanks Mike, using a seperate power supply for the PIR does indeed cure the problem. Does that mean a capacitor could somehow be used to even out the disruption? My electronics knowledge is a bit lacking, but will investigate and report back!
Well, a cap stopped the problem when the servo drained power, but not when I stopped it and the voltage went up again. I guess I'll just use a separate supply, but what do you mean by 'separate regulation'?
The problem probably has to do with the fact that all inductive loads (motors, relays, solenoids) draw a lot more current just when starting up. Sometimes it is 10 times more current for a short time justwhen starting up, than when running steady. A large cap may help eliminate this problem, but you also have to make shure that the needed current is available. How large is the cap you have tried ?