PIC pin thru 1K resistor to the base, collector to power, emitter to the relay coil, other side relay coil grounded, diode across relay coil pins 'backwards'.
Basic connection for an NPN transistor that's set up to apply power to something.
Get a copy of 'The Art of Electronics' and read it. Great book. Loads of info...





Bookmarks