Ok, now I see it!(changed the fonts....) and the sense resistor onto the base with another res. to > Vss from the base. +5V / \ / (Pull UP) \ Live |-------| o-- | | 240V~ B | /C | o-------/\/\/---+--| | +-----------+ Neutral 4.7M | | \E | | | | | |---| PIC | / | BC547 | | 10K \ | (NPN) +-----------+ / | | | +----------+ | Gnd Regards, Bala -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body