Quote Originally Posted by gavo View Post
Hi,

Thanks for the reply,

Yes I am wanting to use it on RA0. The voltage divider connects to the +110V DC line and ground (I am using 33K and 1K) the voltage measurement of 1-4.335V is the output I am getting from the voltage dvider when I vary the voltage from 20-110VDC. I am just looking at providing isolation between the PIC and 110V DC as I am scared of a nasty suprise. We have also tried using a variac to simulate the 110V DC using the same voltage divider but we have not tried that either on the PIC as we have not isolated it.
Are you trying to isolate for a final installation or for test purposes? <br>I think I would move those divider values up a couple of magnitudes from the "K" area to the "MEG" area, just for safety sake. If this is for a finished purpose I would isolate the switches etc using opto isolators and put the hardware out of human reach, I. E. in a box . . .