Hello eric gibbs I like to do with built in comparator in the PIC.I'm in a such a hurry to do this with a PIC.
hi,
You could use the method described by 'mdorian' and sample the rectified, unsmoothed waveform.
[use a low voltage transformer for the ac detection circuit]
Are you able to program the PIC's adc OK.?
Last edited: