That won't work, sorry.
Being the MOSFET is N-channel and on the high side, the gate threshold is drain + 5V. It would work directly with the PIC if you were switching negative. You could add an NPN transistor between gate and source to switch it between source and ground, plus add a 1K resistor between the gate and NPN emitter for good measure.
Always remember, the PIC has a 5.1V zener diode on every pin. When used as output, switched on it will pull down to 5.1, when off it will pull to gorund. So if you're touching that gate directly to 12V with the PIC connected, it's most likely going to smoke it.
Easier solution as I use these in my products: A PSU IGN input draws very little current. A simple darlington optocoupler works great. The input requires a 470 ohm resistor to drop V just like an LED. The collector connects to 12V, emitter to PSU IGN. Or you can use a darlington transistor, or set up 2 as a darlington.



LinkBack URL
About LinkBacks
Reply With Quote






Bookmarks