You need to fill in the "location" in your profile. Depending on where you are the power line is 50 or 60 hz.1ms precision and I see differences up to 50ms between boards
Next; all boards should have the same delay. I wish I had a fast and a slow board here. I think that problem is easy. Are the value of C1 the same on all boards?
The capacitors are probably +/-5%. (could be 10%)But my question, or curiosity, was about the expected precision for these kind of AC optocouplers
What is the part number on the optocouplers?
With your circuit not looking at the power line 60% of the time I can't see how your can get any precision.
Variations in the current gain of T1 will cause a 2:1 variation in response time.
Not sure what your trying to prove here, but the AC goes to zero once each cycle. You can't obviosly be looking for zero. Do you want a zero-crossing detector?
Don;t forget interrupt latency. https://www.tablix.org/~avian/blog/archives/2016/04/measuring_interrupt_response_times/
What happens when all the interrupts occur at the same time? Guess 70 uS latency? 10 interrupts. Each one gets delayed 70 uS because they occur nearly simultaneously. Part values are sloppy in the design. Reactive vs. resistive powering of the LED would be more common.
There's way to much slop in the parameters. Mainly Hfe.
What about stuff that communicates at the zero crossings of the power line? e.g. X-10 https://www.authinx.com/manuals/activehome/xtdcode.pdf
So, I don;t know if you would be better, synthesizing 60 Hz with a PLL and look at the subtraction?
I can see this schematic is not what is on your board.
This has lead us astray. The board has a LED. The capacitor does not look like a 0.1uf.
Please double check.
Where did you get the board. It looks like BangGood. The boards I get from then have no schematic.
So, I don;t know if you would be better, synthesizing 60 Hz with a PLL and look at the subtraction?
I don't have time to draw a schematic now.Sorry. I didn't find schematic
This is probably what you have.
View attachment 113245
I think this is a bad design if you want repeatability. (one board to another)
The green trace is the output. The red trace is LED current.
CTR, (Current Transfer Ratio) is LED current to transistor current in the isolator. Each part is very different.
Variations in Capacitors and variations in CTR will effect the delay.
View attachment 113246
If you don't like transformers, then you could replace the transformer in the circuit on the right with an opto. That won't work as well with the circuit on the left because the resistive divider won't keep the current or voltage through the opto LED as constant as the diode clamp will causing the opto to turn off in a larger area around zero cross than the diode clamp. For an opto you'll have to tweak the configuration diodes so they clamp differently than shown in the schematic so there is enough voltage and current to actually light the opto LED but the general idea is the same. As shown the diodes will clamp the signal to +/-0.7V which is enough for an ADC to measure, but not always enough to power the LED on an optocoupler.
I can not find data on that capacitor. With no "+/-%" on the part it might be anything.Chongx VENT 100uF 25V
Variability won't matter since zero is zero in a transformer unless you start mucking with stuff. Plus 1ms is a LONG time in electronics so even if there was variability it should be well below that.I cannot afford for the moment to do a custom design, but it seems to me that maybe transformers would be a new source of variability between channels.
What about Solid State Relays with AC input? One of them in each channel, Do you think they would present more repeatability than the above circuit?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?