It sounds like you may have the collector and emitter backwards... What transistor are you using? You might try manually switching the base resistor from ground to the 5v rail to see if you're getting the same results... ----- Original Message ----- From: Steve Kasm > 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? > > I need to drive a relay from a pic pin. I know how to do this with a > > 2.2k resistor to the base of a NPN transistor with the emitter to > ground > > and the collector to vcc through the coil on the relay. I have also > > placed a diode etc in the circuit in the circuit reverse biased across > > the relay coil. > > > > > > > > My question is that I need 2 identical relays to pull up off the same > > pic output pin. Can one pic output safely drive 2 of the above > circuits? -- 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