Hi Robert,
once again thank you for your assistance.
I had an idea that the current wouldnt produce a perfect sinusodial wave. As for the health warning I would be sampling from the 9v ac ac adapter.
It seems like a lot of work but I was thinking would I get any meaningful data by using my current ZCD circuit and the standard CT interface setup. my idea is as follows:
- detect a high pulse from the ZCD output.
- start the micro timer
- detect a zero crossing from the standard CT interface circuit using the ADC, i.e if the value of the ADC is 512 then a ZCD has occured?
- stop the timer.
shouldnt this method effectively detect the time difference between the voltage and current.
thanks