You can use a simple missing pulse detector that closes a relay only when there are pwm pulses. It can be as simple as a 555. Peter -- 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