Quote Originally Posted by mackrackit
A rectifier to change to DC and a voltage divider to bring it down to 5 volts should do the trick.
A problem can occur when power to PIC is off, the 5 volts from the divider can power the PIC.

Perhaps a simple transistor, 22vAC to 10k resistor to gate, collector pulls PIC input pin low?


Is this acceptable configuration?

Norm