Hi,
I am building a circuit that needs to monitor the 3 phases in the
mains, and detect if (a) any one phase fails, and (b) if the phases are connected improperly.
After some search I found http://www.picbasic.org/forum/archiv...hp/t-2134.html to be pretty close to what I need.
What would be the best way to go about it?
Would this logic work?
Detect positive edge on phase 1
Start Timer 0
Detect positive edge on phase 2
Read Timer 0 as variable 1
Detect positive edge on phase 3
Read Timer 0 as variable 2
Stop + Reset timer
If Variable 1 is equal to (almost) = (Variable 2)/2 = 6.67 ms (for 50 hz) then all is ok.
Start again.
Am I on the right track, or is there a better/easier way to do this?
Regards,
Anand
Bookmarks