steve_khor
New Member
As I said before the peak voltage is √2 times the RMS voltage, the voltage across Cf is the peak voltage from the transformer multiplied by the gain of the non-inverting op-amp stage.
There's one thing I missed in my explanation: the purpose of R4 and R5.
They provide the comparator with some hysteresis so the turn on voltage will be slightly higher than the off voltage which will ensure that the relay doesn't chatter.
Hysteresis = Vout×(R4/R5)
Vout is the suppply voltage to the comparator minus the losses in the output stage, for convenience let's call it 10V.
The hysteresis is the difference between the turn on and turn off voltages and should be higher than the ripple on Cf.
Suppose R5 = 1M and R4 = 15k as per the schematic.
Hysteresis = Vout×R4/R5 = 10×15/1M = 150mV
Suppose Vref is 5V.
Von = Vref+hysteresis/2
Voff = Vref-hysteresis/2
hysteresis/2 = 150mV/2 = 75mV
Von = 5 + 75mV = 5.075V
Voff = 5 - 75mV = 4.925V
The ripple accross Cf should be <150mV which it was the last time I simulated it, if it's higher, increase the value of R4.
Von = 5 + 75mV = 5.075V
Voff = 5 - 75mV = 4.925V
I've reviewed back your theoretical calculation, so which means when both voltages compare,
will on when only (Vin+) 'above' 5.075V > (Vin-) (5V)
will off when only (Vin+) 'below '4.925V' < (Vin-) (5V)
Am I thinking right?
Another Example,
If my voltage after through transformer, gain of op amp and then across CF resulted 6V, so my Hysteresis Voltage must design more than > 6V.
Hysteresis = Vout x R4/R5 (R5 = constant which is 1M and Vout = 10V)
Let's say my Hysteresis set as 7V (>6V).
7 = 10* (R4/1M)
R4 = (7*1M)10
R4 = 700 kΩ
Set V ref as 6V
Von = 6 + (7/2) = 9.5V
Voff = 6 - (7/2) = 2.5V
Will on when only Vin+ above 9.5V >
Will off when only Vin- below 2.5V <
What about the voltage in between 2.5 > y <9.5
I'm confused ...
Best Regard,
Steve