> I am using a 2n3904 to drive a 12V relay off a 16F628 pic > at 5V input, I'm > not sure how to figure out the resistor for the base? Neither am I unless you specift the relay current. And while you are looking that up, check the 2N3904 datasheet for the minium Beta. Divide the relais current by that Beta and you've got the base current. Divide 3.5V by that current and you've got the base resistor. But don't forget the freewheel diode! Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist