Try replacing the transistor with a LED and a 470 ohm resistor to make sure it is not something to do with the transistor or relay.
Is the cap across power rails large enough for BOR fuse. Rule of thumb, LED with resistor across power rails should go dim not instant off when power is cut.
What have you done with MCLR?
Bookmarks