Need a voltage divider for a capacitor source voltage

Click For Summary
The discussion centers on the challenge of converting a sinusoidal voltage from a capacitor in an induction heater circuit into a square wave without phase distortion. The voltage ranges up to 400Vrms at 70kHz, and the user needs to scale it down to under 15V for a comparator. Various methods, including resistive and capacitive dividers, have been attempted but resulted in phase shifts. Suggestions include using series limiting resistors, diode clamps, and high-impedance capacitive dividers to minimize loading effects. The conversation also touches on simulation tools like LTspice and the importance of understanding system impedance and grounding for accurate measurements.
  • #61
Baluncore said:
The diode, in antiparallel with the optocoupler LED, prevents destruction of the LED by reverse voltage.
Would any hyperfast Schottky diode work?
 
Last edited by a moderator:
Engineering news on Phys.org
  • #62
Please do not edit inside a quote, because then we can't quote your post.
Click on the [ ] button to toggle BB code.

TonyStewart said:
Would any hyperfast Schottky diode work?
Any diode would work. It only has to conduct the LED current, or withstanding a couple of LED forward volts.
 
  • #63
Baluncore said:
Please do not edit inside a quote, because then we can't quote your post.
Click on the [ ] button to toggle BB code.
(I fixed up the quote box, and sent him a PM about it) :wink:
 
  • #64
TonyStewart said:
meaning:
Since I chose a small series C , its impedance being highest by far the 90 deg. Phase shift is dominated by Vc drop and < 1% by load= Vf/If +Rs, so the phase error is low.

Since the largest voltage drop is across C and current sensed by the real R (albeit nonlinear diode effect, it is still real R. for the most part neglecting low current diode capacitance)

If I understand the model correctly, the series capacitor (and resistor) is limiting the current to a safe level for the optoisolator when the voltage is near the maximum. What happens when the voltage is near the minimum? There will not be enough current to drive the LED, right? If this is correct, is there anything that can be done so the circuit works over most of the input voltage range?
 
  • #65
imsmooth10 said:
You're referring to the 10k resistor as the current sense, right?. If the voltage goes up on the cathode side of the LED diode doesn't that decrease the voltage drop across the diode and hence the current driving it? When you say "raise" the collector R are you saying you choose different design values? My issue is the voltage source varies from 0 to 500Vrms and the value of R would be fixed.
Yes 10K does limit the peak current over a small range only.

You will never be able to detect a signal over a 40 dB dynamic range, unless you use AGC or an active current limiter. The opto is not the best choice for a dynamic input signal. Often these are done with PLL's and lock-in amplifiers or precision comparators with a high SNR signal and a wide CM in put range using the RC divider.
You need a high speed linear opto to saturate an open collector at 75 kHz at low output current, perhaps the 6N136 but with 47 k to 5V that is only Ic < 100 uA so with 10% CTR you need 1mA input.

So I would not recommend this approach if you are hunting for resonance and have no output. I would use an automatic hardware based linear resonant oscillator method that oscillates from phase of the attenuated output for AC feedback or a PLL.
 
Last edited:
  • #66
@imsmooth10
If you need a zero-crossing detector to help auto-tune your generator and tank, you might consider two identical attenuators and a mixer or multiplier, followed by a low-pass filter. That makes a phase detector. If you multiply the drive voltage by the capacitor voltage, the average DC output from the LPF will be zero when tuned. The LPF output voltage passes through zero as the drive frequency crosses the LC resonant frequency. The detected voltage can be used to drive a motor, or software, to tune the drive or the tank.
 
  • #67
Baluncore said:
@imsmooth10
the average DC output from the LPF will be zero when tuned.( in a PLL)
Generally, the DC output in a linear phase mixer is 50% of the 180 degree output swing for the polarity that causes negative feedback. This may lock if the difference frequency is within the "capture range" of the PLL. The range of 180 to 360 degrees has the opposite triangle slope, causing positive-feedback, which pushes the VCO away. When capturing the time spent in positive feedback is push fast, so when negative it slows down and the average effect is to pull towards the same frequency and at 90 deg with DC and a 2f output. When outside the capture range, the feedback time is balanced for each phase, and it does not lock. The capture range is determined by the LPF BW and the VCO error f and loop gain with phase compensation filter. The mixers typically used are XOR gates, so the lock-in voltage is Vdd/2 using the CD4046 or equiv.
1683463374193.png

https://web.ece.ucsb.edu/~long/ece594a/PLL_intro_594a_s05.pdf
 
  • #68
TonyStewart said:
The mixers typically used are XOR gates, so the lock-in voltage is Vdd/2 using the CD4046 or equiv.
I do not suggest nor recommend an XOR gate, as that would be biased by the logic rail voltage and would require some form of voltage comparator on both inputs. My aim was to escape from the need for a comparator and the delay of the requisite high gain digital path.

The phase detection should be based on the amplitude of the sinewave over the period, rather than just the time of two switching edges from some hysterical quantifying logic.

That is why I suggested using an AC coupled analogue multiplier, an MC1496 Gilbert cell, or possibly an RF mixer. The output would be symmetrical about zero, so would be signal-gain and supply-voltage independent.

The phase of the lock of a PLL is quite irrelevant to the analogue solution. It is trivial to swap the differential inputs of an analogue multiplier, to compensate for an inverting miller-integrator in the LPF.
 
  • #69
Baluncore said:
I do not suggest nor recommend an XOR gate, as that would be biased by the logic rail voltage and would require some form of voltage comparator on both inputs. My aim was to escape from the need for a comparator and the delay of the requisite high gain digital path.

The phase detection should be based on the amplitude of the sinewave over the period, rather than just the time of two switching edges from some hysterical quantifying logic.
Facts from datasheets.
- The XOR gates may be capable of similar BW of Gilbert Cell useful for << 10MHz output.
- XOR gates do not introduce hysteresis and in quadrature are low noise and linear.
- PLL chips just use very high GBW of self-biased CMOS limiters
- single IC PLL's provide simplicity if tolerances are adequate.
 
  • #70
TonyStewart said:
Facts from datasheets.
Please identify the datasheets that make those statements, that you claim to be fact.

TonyStewart said:
- The XOR gates may be capable of similar BW of Gilbert Cell useful for << 10MHz output.
An XOR is digital, a Gilbert cell is analogue, Gilbert cells work well at VHF frequencies.

TonyStewart said:
- XOR gates do not introduce hysteresis and in quadrature are low noise and linear.
Voltage comparators introduce hysteresis.
How can an XOR logic gate be linear, z = a*(1-b)+b*(1-a) ?

TonyStewart said:
- PLL chips just use very high GBW of self-biased CMOS limiters
I agree, they use self-biased CMOS inverting amplifier chains, to get within one volt of the supply rails, and then they revert to logic gates, inherently based on the time of the transitions.

TonyStewart said:
- single IC PLL's provide simplicity if tolerances are adequate.
Anything is acceptable if you lower the requirements sufficiently. A marketing platitude, and a truism.
 
  • #71
Baluncore said:
Please identify the datasheets that make those statements, that you claim to be fact.

Baluncore said:
An XOR is digital, a Gilbert cell is analogue, Gilbert cells work well at VHF frequencies.
The output does not respond to VHF only HF. The input may be VHF.

The phase detector response of the XOR gate does not follow your logic.
Baluncore said:
Voltage comparators introduce hysteresis.
How can an XOR logic gate be linear, z = a*(1-b)+b*(1-a) ?I
p7 shows DC to 50 MHz in this family . Many are more and less https://www.ti.com/lit/gpn/sn74hcs86

The way XOR gates and Gilbert multipliers alike work as linear phase detectors is to produce a pulsewidth in quadrature phase-lock proportional to the linear phase difference. The advantage of Gilbert cells only occurs from increase dynamic range for linear amplitude multiplier output not linear phase, but thus shows better results for RF analog demodulators, not used here.


The old Motorola multiplier IC has a known self-resonant frequency at 10MHz that must be avoided on the output.
 
  • #72
TonyStewart said:
The phase detector response of the XOR gate does not follow your logic.
Can you be more specific, which logic does it not follow?
 
  • #73
  • #74
TonyStewart said:
See f(A) XOR f(B) has no hysteresis
An XOR gate is not a voltage comparator, so obviously it needs no hysteresis.
Ignoring hysteresis, the XOR is still non-linear. z = a*(1-b)+b*(1-a).
That is why it can be used as a mixer, or as a direct-sequence modulator.
 
  • #75
Respectfully, I have designed dozens of different PLL's in my career so I am quite familiar with all the characteristics and terminology. So to avoid further non-sequiturs, let me explain again. PLL's for tuning a tank circuit to resonance can be quite simple, with no need for a uC or a Gilbert Multiplier. The sine waves may be turned into logic levels with or without hysteresis if the benefit is to eliminate redundant transitions, which only reduces the gain of the loop in this very short transition.

Yet this is irrelevant as the operating point of "the loop" is always furthest away from the transitions to have a balanced DC voltage when integrated results in no change to the tuning of the VCO.

The integration may be done with open collector/drain charge pumps an active integrator, or simply the quasi-integration of a low pass filter on the error signals with sufficient loop gain.

We do not call it a direct-sequence modulator for this task. It is a frequency mixer and after integration or low pass filtering, the result is a phase detector as phase is the integral of frequency regardless of linear or digital amplitude.
 
Last edited:
  • #76
TonyStewart said:
Respectfully, I have designed dozens of different PLL's in my career so I am quite familiar with all the characteristics and terminology.
Then you need to learn that, when you are holding a hammer, everything is not a nail.

TonyStewart said:
So to avoid further non-sequiturs, let me explain again.
TonyStewart said:
We do not call it a direct-sequence modulator for this task.
Of course, we do not. I was NOT discussing PLLs, I was discussing non-linear XOR gates, as used for phase detection, or the simplest modulation application. You seem determined to misinterpret what I write, so you can then smother it in irrelevancy.

The OP wanted a wideband attenuator, without phase shift, to feed a comparator. I have simply pointed out that a multiplier, used as a phase detector, could eliminate the need for the comparator.

The OP has been careful NOT to say why the comparator was needed. You now insist that I must be wrong, because to complete what is clearly an unspecified project, you would use a digital PLL.
 
  • #77
You are polluting the thread with amplitude "non-linear" criticisms of XOR gates that are irrelevant. The case here is for "linear-phase" not linear multiplying amplitude and phase, which is useful to mix RF signals and may be used here, but is not mandatory. Then your phase error voltage is sinusoidal at the error frequency and not a linear triangle wave with time as with XOR logic which can be implemented much simpler as indicated previously. His end goal was to make the PLL using a uC firmware measuring tank current phase. Your criticisms of my suggestions were invalid, except for requesting reference specs which did support. This should not continue here and be a parking lot discussion.
 
  • #78
Thread is closed for Moderation...
 

Similar threads

  • · Replies 32 ·
2
Replies
32
Views
3K
Replies
15
Views
2K
Replies
38
Views
6K
Replies
20
Views
4K
Replies
14
Views
5K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
Replies
14
Views
8K
Replies
6
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K