Hello Alexandre and Spehro, Alex, you don't want to use a transformer because of it's costs or to save weight and/or space? If cost isn't your problem, I would suggest you to buy a transformerless suply for 24V and step-it-down to 5V with a swithed-regulator like LT1173. You can use an small transistor to switch the relay from the PIC output and use the output from the LT1173 to power a 5V circuit up to about 300mA. LT1173 isn't cheap at about US$3.40 in Brazil. Best regards, Brusque ----------------------------------- Edson Brusque Research and Development C.I.Tronics Lighting Designers Ltda (47) 323-2138 / (47) 9993-6453 Blumenau - SC - Brazil www.citronics.com.br ----------------------------------- -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu