I need a help.. Power factor measurement logic & program using PIC 16F877A..
My project is to automatic power factor controller,
My approach is to find out the zero crossing of both Current and Voltage,
find out the time difference and then calculate the angle..
Please elaborate this logic step by step..
*How to calculate angle using time difference?
& help me for coding..
I highly recommend you to change your idea about measuring the PF. the zero crossing detection and phase calculating is not appropriate for non-linear consumers. for example if you want to calculate a switching power supply PF, you cant do it because the current shape in not a sine wave and your measurement will be incorrect.
the best way is to calculate apparent and effective power and calculate PF by dividing them.
that's the thing I did in the same project in my company.