Since now I have these two diagrams now one thing is remaining,I now need to detect when a phase is missing or when one or two or none of the phases is present such that when someone presses the button to test the 3 phases are first checked if all are present if one is missing the test is terminated and a phase missing is displayed and the way am thinking about the way to go for this is now full wave. The Arduino side remains the same but the optocouplers side has to now detect both negative and positive so that for the other 3 Arduino pins on the other side if any pin is missing a HIGH that shows that a phase corresponding to that pin is missing. So question is now the diagrams for full wave now for both with neutral and without neutral . The Arduino side remains the same.
We are now on post #81 and you are adding a bunch of new requirements and asking for quite a bit of work. Maybe you should pay someone to do this for you.
It would also be a good idea to describe exactly what you are trying to build and what it needs to do.
Both positive and negative half waves go together, if one is missing, the other one will be too (except rare and improbable situations).
Go with the drawing you have, write the sequence detecting program for it and try the various situations you think of and see how the program behaves.
BE AWARE THAT THE VIRTUAL GROUND (or Neutral) WON'T BE 0V ANYMORE IF ONE OR MORE PHASE IS ALTERED OR MISSING. DO NOT TOUCH !!!
I am using KiCad EDA.
I have only started using it recently.
I used to use CADSTAR Express, a free version of the software I used to use at work.
Limited to 50 components.
I think same diagram for that but I guess the opto change to something like H11AA1
Because of the 1N4007, both the PC817 and the H11AA1 will behave the same.
Remove the diode and use the H11AA1 if you only want to detect zero crossing, leave it and (preferably) use PC817 if you want to detect both zero crossing (on rising and falling edges of the opto output) and polarity.
I don't know KiCad EDA (I use Proteus that I mentioned post #79) but I see that it has a simulator. Use it to try, with the drawing post #68 or #77, the various situations you describe.
EDIT: Sorry, I don't share personal info, the forum is the best place for help (although it might take some time...)
Thank you so much everyone for being patient with me , i tell you i just don't know how to thank you enough, But special thanks goes to Etienne_74 and johnLincoln as those two nice people were straight to the point as in you want this? do this, you have made a mistake,ok we can fix it, you are getting there.If these two people were a company, that company would have the best customer care in the world.I tell you these two people can make really good teachers and that is what students of nowadays want teachers who spoon feed them in order to understand upto the roots the easy way.I will build this and try it out nice time guys.
Unfortunately true!
Look at post #64
Tom....
![]()
Ok to minimize cost, I will use the same setup, in that i sum up the total time it takes the all 3 to reach their peaks and use it as check time and during that time no tests are performed and after that time elapses i check which pin of Arduino has not got at least two rising edges and if there is any, that indicates that particular phase in relation to that pin has issues, may be the phase is not present or may be the opto is not functioning and definitely i will have all optocouplers soldered directly no the PCB no IC sockets to minimize intermittent connection issues.
