as i'm not familiar with the PBC lines i can just ask if you correctly set the configuration fuse when you program your device?
Be sure you set MCLR to i/o, internal or INTRC depending of the syntax of your device programmer software.
If your PIR signal is comming from a relay (wich i suspect) be sure you're using pull down/up resistor... uneless this pin is floating and it may work sometimes, sometime not.
EDIT: by reading your post again... i suspect you miss the pull-down resistor
I need to hold that input low until the motion sensor sees motion which will bring this input high.
Last edited by mister_e; - 28th June 2006 at 03:34.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks