> I have built the circuit below, when connected to the pic the relay > operates regardless of the pic pin being high or low. I have also > noticed that the relay energizes if I place the base through 2.2k > resistor to ground or vcc. Any suggestions? Got the transistor hooked up in the correct orientation ? Is it a good one ? You could always sniff around for clues here http://www.piclist.com/techref/io/relays.htm -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics