Im trying to trigger a 5 volt relay with a Pic and cant seem to figure out how to do it. The simplest solution I though of was to use a 2N2222 npn transister as an on off switch between the relays coil and ground(one side of the coil wired to the battery obviously), hit the base with a pulse from my pic and presto a programmable timing relay. Long story short it worked better on paper 
The transistor works(aka switches) if I touch its base with a wire from +5V but the pic isnt able to trigger it. Ive tried a mosfet inplace of the transistor and nothing happens. Usually the mosfet fires 1 time and thats it, I wired a led between the fets gate and my output pic pin and it is lighting up and dims so it isnt that my pic isnt creating a voltage/current. Possible Im wiring the fet incorrectly because after its initial(and only) firing from my pic I can touch its metal sink and make the relay trigger, but Ive used fets in pwm circuits and Ive wired them just as this one is.
Ive tried pull up resistos, pull down resistors but nothing seems to help. Does anyone have a better solution or see a flaw in my design?
additional Info.
powered by 9 (also tried regulated 5 from 6) regulated to 5 volts
12f675 pic
2n2222 transistor and/or N channel power mosfet
5 volt relay with 56 ohms resistance coil at 90 mA max current
regulator is a 7805 3 pin Reg
The transistor works(aka switches) if I touch its base with a wire from +5V but the pic isnt able to trigger it. Ive tried a mosfet inplace of the transistor and nothing happens. Usually the mosfet fires 1 time and thats it, I wired a led between the fets gate and my output pic pin and it is lighting up and dims so it isnt that my pic isnt creating a voltage/current. Possible Im wiring the fet incorrectly because after its initial(and only) firing from my pic I can touch its metal sink and make the relay trigger, but Ive used fets in pwm circuits and Ive wired them just as this one is.
Ive tried pull up resistos, pull down resistors but nothing seems to help. Does anyone have a better solution or see a flaw in my design?
additional Info.
powered by 9 (also tried regulated 5 from 6) regulated to 5 volts
12f675 pic
2n2222 transistor and/or N channel power mosfet
5 volt relay with 56 ohms resistance coil at 90 mA max current
regulator is a 7805 3 pin Reg