How to select the PLL parameters

  • Thread starter anstxfw
  • Start date
  • Tags
    Parameters
In summary: Setting the scope trigger to LINE will let you see the 50 hz power line frequency instead of the loop natural frequency.
  • #1
anstxfw
12
0
The voltage waveform of the PLL circuit VCOin is shown(The PLL can lock).I need to get the stable voltage.If I change C18 from 0.1uF to 10uF, PLL cann't lock phase,the VCOin is always 5V,How to select C18/R5/R6 of the filter.How to calculate?
 

Attachments

  • pll.jpg
    pll.jpg
    32.8 KB · Views: 473
Engineering news on Phys.org
  • #2
  • Like
Likes NascentOxygen
  • #3
First,I illustrate the application of this circuit,as shown in Figure 1.It is called capacitive liquid level

detection.When the needle touches the liquid level,the capacitance value will become larger.So using phase locked loop

to detect the change of capacitance.My schematic diagram is shown in Figure 2.Network named signal is connected to the

needle.Normally,the voltage of TP1 is 2.5v,if the neddle touches the liquid level,the voltage of TP1 will change,as

shown in Figure 3.However, When the needles are filled with ionized water, the voltage will become unstable,as shown

in Figure 4.The frequency of the TP1 point voltage is 50Hz.It will affect the judgement of the waveform.Now I have two

solutions,one is change the low pass filter parameter of PLL,so it can filter out the interference of 50hz, but to

consider the timeliness of change.Another is to add a notch filter.where to put the notch filter,I want to put it in

the output of OP U4,so the signal is passed through the notch filter before it is passed to MCU.
Now my question is that which will be better,and how to make it.If you have some advice,I will appreciate it very

much.Thank you very much.
 

Attachments

  • figure.jpg
    figure.jpg
    41.2 KB · Views: 307
  • #4
Jim,

The old Signetics app note is great, but I really think the best free resource for PLL design is the book PLL Performance, Simulation, and Design by National Semiconductor (now TI). It is comprehensive, easy to understand, and goes step-by-step with easy to understand explanations and design procedures. It was my go-to book when I designed an integrated PLL a few years ago.

http://www.ti.com/tool/pll_book
 
  • Like
Likes jim hardy
  • #5
analogdesign said:
It is comprehensive, easy to understand, and goes step-by-step with easy to understand explanations and design procedures. It was my go-to book when I designed an integrated PLL a few years ago.

At first glance it looks excellent ! Thank you analogdesign,

i'll make the transition from sail to steam yet...

saved a copy.

old jim
 
  • #6
anstxfw said:
If I change C18 from 0.1uF to 10uF, PLL cann't lock phase,the VCOin is always 5V,How to select C18/R5/R6 of the filter.

Well slowing the loop filter reduces capture range.

plllooptc.jpg


I don't quite understand what you are up to.
Are you shifting the pll center frequency and trying to lock that to output of whatever is (U1 divided by U3) ?
 
  • #7
I would assume he allows the capacitance to change which in turn detunes the oscillator in which case the PLL compensates to bring it back on frequency. Watching the VCO voltage is tells just what the capacitance is doing. I know some about PLL but there is plenty I do not know also. I know that the loop filter is a critical little bugger. I would say control system theory (PID and such) will get you where you want to be with PLL. A wise engineer once told me that to troubleshoot a PLL often it is desirable to break the loop. Concerning your 50 hertz noise, is it an oscillation within the loop or is it external? Are you in a part of the world that uses 50 hertz instead of 60 hertz for power?
 
  • Like
Likes jim hardy
  • #8
jim hardy said:
Well slowing the loop filter reduces capture range.

View attachment 106144

I don't quite understand what you are up to.
Are you shifting the pll center frequency and trying to lock that to output of whatever is (U1 divided by U3) ?

I just want the VCOin to be DC Voltage. I don't understand why this voltage could fluctuate? (PS:my AC power is 50 HZ).
 
  • #9
I feel not very well informed.
What is the frequency you are trying to lock to, i think at HEF4024 Q3 ?
Is fig 3 a scope trace when pll can lock, 0.1uf, and fig 4 when it fails to lock, 10 uf ? What are sweep speeds ?

anstxfw said:
I don't understand why this voltage could fluctuate? (PS:my AC power is 50 HZ).

Could be you're picking up 50 hz at pins C1A and C1B from your probe. It looks from figure 1 rather like an antenna. I think those pins both need DC isolation and 50 hz isolation(if you can get it) from signal common.
First thing i'd do is set scope trigger to LINE, if trace stands still then your 50 hz is power line frequency not loop natural frequency. I suspect strongly that's what you'll find.

Next i'd try hooking my probe up like this so it's got some Z in series at low frequency

pllLiquidDetector.jpg

500 pf at 50hz is 6 megohms, what is it at your operating frequency ?

Next thing i'd try is, since your frequency setting resistors R3 and R19 go to signal common and so does your probe capacitance, try connecting your probe to them in turn.

Got to push at this thing and figure out how it behaves.
 
  • #10
Jim Hardy,Thank you so much.
I'm trying to lock to HEF4024 Q3,the frequency is 375khz. But if the needles are filled with ionized water,the PLL can not lock, as shown in figure. It is strange that if I put the ground of the machine to the earth(the real ground),no any changes,the PLL can lock again,put it off the earth,unlock again.
I will connect a capacitor between needles and C10 on your suggestion.Right now I don't have 500pf,is it ok to use 200pf?And you said that"Next thing i'd try is, since your frequency setting resistors R3 and R19 go to signal common and so does your probe capacitance, try connecting your probe to them in turn". I can't see your point.Is the probe capacitance to be C10?what's the meaning of "in turn".
 

Attachments

  • Phase Compare.jpg
    Phase Compare.jpg
    39.5 KB · Views: 397
  • #11
anstxfw said:
It is strange that if I put the ground of the machine to the earth(the real ground),no any changes,the PLL can lock again,put it off the earth,unlock again.
pllLiquidDetector2.jpg

Any voltage between them is injected right into your PLL's C1A ,if i read correctly the image attached to post #1.
Might be that 'earthing' the signal common on circuit board removes any voltage between it and the beaker of deionized water.

anstxfw said:
I don't have 500pf,is it ok to use 200pf?
Of course, we're looking for cause-effect.

Hmmm wait a second here, you said ionized water not de-ionized. I'm guilty of inattention to detail.
De-ionized water is nonconductive and has dielectric constant perhaps 80. I don't know what is ionized water, but surely it's conductive .
So when you said 'capacitive' i jumped to the conclusion you were sensing very pure water. That's why i suggested series capacitance.
If that's not so, your probe when wetted may experience more change in resistance than in capacitance.
Furthermore i'd wager it makes a few tens or hundreds of millivolts DC by galvanic action.

anstxfw said:
I can't see your point.Is the probe capacitance to be C10?
No, for this experiment it's to alter the value of R3 or R19&R20
Water that's not deionized is pretty conductive.
If your probe when wetted sees more resistance change than capacitance change, it'd make sense to let it affect the frequency setting resistor instead of the frequency setting capacitor, wouldn't it ?
anstxfw said:
what's the meaning of "in turn".
First connect probe at pin R1 so that when wetted it decreases resistance from that pin to common, as if value of R3 were changed
then try it at pin R2 as if changing R19&R20 .I think you'll have to connect those two "grounds" in my altered sketch above.
"Ground" is a much abused term. Usually it means 'signal common' or 'zero volt reference point' as in right part of your drawing . It means "earth" only if physically connected to earth, which clearly in an airplane or rocket it's not.
Is your beaker connected to Earth by a wire or metal counter top ? Is your "signal common" connected to Earth through the oscilloscope probe ? Is there any voltage between them?

Keep us posted?
 
Last edited:
  • Like
Likes NascentOxygen
  • #12
anstxfw said:
When the needles are filled with ionized water,
Is that sensor plate coated with plastic insulation? If not, it will be sensitive to R as well as C. Is it a pin or a plate?

Is your connection of the sensor plate directly to the IC pin correct? This evades any filtering; it may be better to connect the sensor across the timing capacitor C18. disregard
 
Last edited:
  • #13
Thank you a lot.Figure 5.1 shows the neddle connects to the circuit and the tube. The gnd of circuit is connected to

the gnd of machine.
Today I try to change C18(the low pass filter cap) from 0.1uf to 1uf.The waveform of VCOin can be stable,as shown in

Figure 5.2,the figure 5.2 shows that the waveform of VCOin before and after touching the liquid level.But the response time will be longer.This will cause the needle to overshoot at the level of the liquid.Now solved a problem and lead to another problem.I am going to crash.
Thank you again, Jim.
 

Attachments

  • 1.jpg
    1.jpg
    36.3 KB · Views: 411
  • #14
NascentOxygen said:
Is that sensor plate coated with plastic insulation? If not, it will be sensitive to R as well as C. Is it a pin or a plate?

Is your connection of the sensor plate directly to the IC pin correct? This evades any filtering; it may be better to connect the sensor across the timing capacitor C18.
it may be better to connect the sensor across the timing capacitor C18,you mean connect the neddle to the C18? what is the sensor?
 
  • #15
anstxfw said:
it may be better to connect the sensor across the timing capacitor C18,you mean connect the neddle to the C18? what is the sensor?
Sorry, I misinterpreted your diagram.

I can't identify where your needle connects into the PLL. But I'm wondering why you are using [apparently] a needle and not a plate to come into contact with the liquid's surface?
 
  • Like
Likes jim hardy
  • #16
anstxfw said:
Figure 5.2,the figure 5.2 shows that the waveform of VCOin before and after touching the liquid level.But the response time will be longer.This will cause the needle to overshoot at the level of the liquid.Now solved a problem and lead to another problem.I am going to crash.

Looks to me like you've solved your problem. It appears to never lose lock ?
Fig 5.3 also locks . I am unable to read what is the time per division on your 'scope
but there's no more line frequency.
That "hash" at VCO in is at your operating frequency hundreds of khz?
If you measure at capacitor C18, other side of R5, you'll see DC without the hash. Then you'll be able to reduce C18 for faster loop response.
I would try a 0.01uf C18, too. It's only 1 ohm at your frequency. That'll speed up the loop, and you can begin exploring those closed loop equations.

I hope you'll try wiring your needle to R3 and R19 , just to see what happens.
 
  • #17
Looks to me like you've solved your problem. It appears to never lose lock ? Fig 5.3 also locks . I am unable to read what is the time per division on your 'scope
no,i don't solve my problem.using 0.1uf (C18) ,the VCOin can not be stable, the frequency of the hash is 50HZ,you can watch the figure 4 at 3# where I posted.If using 1uf,the VCOin have no hash,but the rising time will be 5 times before. It is unacceptable.

If you measure at capacitor C18, other side of R5, you'll see DC without the hash. Then you'll be able to reduce C18 for faster loop response.
It looks like Figure a,attached in the annex.

I hope you'll try wiring your needle to R3 and R19 , just to see what happens.
To change the circuit will have a little bit of trouble,so I want to know why to do this?
 
  • #18
Attachment
 

Attachments

  • 2.png
    2.png
    8.9 KB · Views: 394
  • #19
anstxfw said:
no,i don't solve my problem.using 0.1uf (C18) ,the VCOin can not be stable, the frequency of the hash is 50HZ,

Well then , what's figure 5.3 attached to post 13 ? It says C18=0.1 uf and there's no 50hz.

upload_2016-9-18_19-0-45.png


i am confused.
 
  • #20
Sorry about that,because i put the ground of the machine to the earth.
 
  • #21
anstxfw said:
Sorry about that,because i put the ground of the machine to the earth.

Looks to me like that solved it.
pllLiquidDetector3.jpg
 
  • #22
If the power supply systems of some customers don't connect to the earth,it can be an problem.So i must solve it without the earth.
How to improve the response time, if the use of 1uF capacitors(C18).
 
  • #23
anstxfw said:
If the power supply systems of some customers don't connect to the earth,it can be an problem.
i think that means you'll have to decouple your beaker from Earth and connect it instead to signal common. See post 11.

To what did you connect your oscilloscope probe reference lead ? See post 21.

Did you try that small capacitor in series with the needle ?
 
  • #24
jim hardy said:
Did you try that small capacitor in series with the needle ?
I try 200pf,but the PLL can unlock.the VCOin is 5V.
And Impolite to ask a question,why to Series a capacitor,i don't understand.
 
Last edited:
  • #25
anstxfw said:
And Impolite to ask a question,why to Series a capacitor,i don't understand.
no, an honest question is never impolite.

The series capacitor presents a high impedance to DC and line frequency currents so they won't affect your PLL.

anstxfw said:
I try 200pf,but the PLL can unlock.the VCOin is 5V.
Hmmm . It unlocks ? Have you a 'scope trace of that ?
 
  • #26
hi,Jim.Thank you for your help.I solved my problem.I just put a wire into the cleaning barrel,which filled with ionized water.And the wire connected to the GND of the machine.The voltage of VCOin can be stable. I think the wire bypass the interference.
Thank you again.
If you visit to China, I am glad to be your guide.
Best wishes to you !
 
  • #27
anstxfw said:
I think the wire bypass the interference
I think you're exactly right !

Congratulations, and hood good luck with the rest of your project !

And thank you for that kind offer.

old jim
 
Last edited:

1. What is a PLL and why is it important to select the right parameters?

A PLL, or phase-locked loop, is an electronic circuit used to generate stable and precise frequencies. It is crucial to select the right parameters for a PLL in order to ensure its proper functioning and achieve the desired frequency output.

2. How do I know which parameters to select for my specific application?

The parameters for a PLL depend on the specific application and the desired frequency output. Factors such as input frequency range, output frequency range, phase noise requirements, and power consumption should be considered when selecting parameters.

3. What is the role of the loop filter in selecting PLL parameters?

The loop filter is a key component in a PLL that helps to determine its stability and response time. The parameters of the loop filter, such as its bandwidth and damping factor, should be carefully selected to prevent instability and achieve the desired frequency response.

4. Can I use a default set of parameters for a PLL?

While some PLLs may come with default parameter settings, it is important to carefully consider and adjust these parameters for your specific application. Using default parameters may not provide the best performance and could result in instability or inaccurate frequency output.

5. How do I test and verify the selected PLL parameters?

Once the parameters have been selected, it is important to test and verify their performance. This can be done through simulations and measurements, comparing the output frequency and phase noise to the desired specifications. Adjustments to the parameters may need to be made in order to achieve the desired performance.

Similar threads

Replies
26
Views
4K
Replies
3
Views
1K
  • Electrical Engineering
Replies
1
Views
5K
  • Electrical Engineering
Replies
7
Views
3K
  • Electrical Engineering
Replies
2
Views
1K
  • Atomic and Condensed Matter
Replies
7
Views
2K
Replies
38
Views
3K
Replies
46
Views
3K
  • Electrical Engineering
Replies
9
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
3K
Back
Top