I have a circuit that reads a pot (0-5VDC) into the A to D of the PIC. This works fine. In some applications I take a 0-10VDC signal for an external controller through voltage divider into the same A/D on the PIC. I have a switch that changes control from the POT to the 0-10V controller. All of this works most of the time. For some reason part of the time noise from the 0-10V controller reaks havock on my PIC. I have tried different values of caps on this line with no luck. The problem happens mostly when the site is being run on generator power. This does not seem to be a problem on line voltage.
Is there a way to isolate the 0-10V signal coming into my PIC? I was thinking of an Opto-coupler, but I'm not sure that will work. Any ideas would be greatly appreciated.
Thanks,
Terry
Bookmarks