RE: How to make high side switch

Umm, can't you just connect your 5v reg to the 12v ignition supply?


You could use a PNP bipolar transistor.  You will need a resistor from base to emitter to keep it switched off, and then pull the base to ground (through a current limiting resistor) to switch it on.  You will probably need to do this with an NPN transistor rather than using the PIC's ports directly.  This gives the general idea.  The resistor values are of the top of my head, the 2k will be the most important depending the the beta of the pnp transistor and the amount of current you want to draw, basically it needs to be driven into saturation.


12v
____    _______ Switched 12v    
 | e\> /c
+-+  ---  (pnp)
| |   |b
| |10k|
+-+   |
 |____|
      |
     +-+
     | |
     | |2k
     +-+
     c|        4k7
(npn)  \|_____+---+____From PIC pin
      </|b |  +---+
     e|   +-+
      |   | |
      |   | |10k
      |   +-+
      |    |
--------------GND