I am trying to stabilize laser frequency with PID controller

Click For Summary

Discussion Overview

The discussion revolves around stabilizing a laser frequency using a PID controller. Participants explore the challenges of tuning the PID parameters based on the frequency response plots, particularly focusing on the transfer function and its implications for system performance. The conversation includes aspects of control theory, optimization of loop response, and potential issues affecting laser stability.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks guidance on interpreting the transfer function graph to optimize PID parameters without relying on trial-and-error methods.
  • Another participant questions the lack of resources available online for PID tuning and suggests that the laser is likely locking correctly, focusing instead on optimizing the loop response.
  • Some participants mention the importance of understanding the trade-offs between speed and stability in control systems.
  • Specific performance parameters for the loop gain are proposed, including low-frequency gain, bandwidth, phase margin, and gain margin.
  • A participant notes that the magnitude response not crossing the 0dB line may not indicate an issue if the system is stable in the observed frequency range.
  • Concerns are raised about potential drift or oscillation in the laser frequency, with suggestions to examine the electrical signal from the sensor and the measurement system's accuracy.
  • Participants discuss the impact of high-frequency oscillations and the physical setup constraints, such as the distance between the controller and sensor, on system performance.

Areas of Agreement / Disagreement

Participants express varying degrees of uncertainty regarding the optimal tuning of the PID controller and the interpretation of the response plots. There is no consensus on the existence of "perfect tuning," and multiple views on the factors affecting laser stability are presented.

Contextual Notes

Participants acknowledge limitations in their setup, such as the distance between the controller and sensor, which may contribute to performance issues. The discussion highlights the complexity of control systems and the need for a well-designed performance specification.

Who May Find This Useful

Individuals interested in laser stabilization, control theory, and PID tuning may find this discussion relevant, especially those facing similar challenges in optimizing feedback systems.

pallab
Messages
43
Reaction score
4
I am trying to stabilize the laser by locking it to a transition peak with the help of the PID controller. On the controller frequency response plot if I change any parameter of the P,I or D the amplitude or phase response changes. I do not know how to read the graph of the transfer function for deciding the best value of the PID parameter for the system, from the response curve. I do not want to tune the PID controller by trial and error methde. I am not from control theory background. I am struggling, trying to get some information from online but not able to make progress. I want to know what I should look on the curve, how should be the shape of the curve for tuning the controller.
Capture1.JPG
 
Last edited by a moderator:
Engineering news on Phys.org
pallab said:
I am not from control theory background
Yes, clearly :wink:

And those that try to help you are not from the telepathy department.
What laser ? What setup to control what variable ?
What's in the figure you post ?

From control theory:

1722953664177.png


where F is your laser and G is your controller. What are x, y, and z ?

Did you get a copy of Day's thesis ? Does Byer help ?

##\ ##
 
  • Like
Likes   Reactions: DaveE and berkeman
BvU said:
Did you get a copy of Day's thesis ?
No, I do not have that thesis copy.
 
Last edited by a moderator:
So I'm guessing that the laser is locking OK and you are just asking about optimization of the loop response. I'm a bit confused that you can't find good information on the web. There are about a million links if you search for something like "pid tuning". Can you describe what your confusion is with those; maybe a reference to what you've read?

One way to get response data is to perturb the system (maybe a light tap on the table or laser) and look at the time domain impulse response.

Otherwise, I'm not sure we can teach a control theory class here. Either way you'll have to read about it.
 
  • Like
Likes   Reactions: BvU
DaveE said:
So I'm guessing that the laser is locking OK and you are just asking about optimization of the loop response. I'm a bit confused that you can't find good information on the web. There are about a million links if you search for something like "pid tuning". Can you describe what your confusion is with those; maybe a reference to what you've read?

One way to get response data is to perturb the system (maybe a light tap on the table or laser) and look at the time domain impulse response.

Otherwise, I'm not sure we can teach a control theory class here. Either way you'll have to read about it.
Yes, I have locked the laser, but I don't want to tune the PID using the trial-and-error method. I have gone through a few links as well but could not able to relate them to the mentioned plot. And I am assuming that for perfect tuning, there will be a corresponding amplitude and phase curve and I want to know how it looks so that I can say I have achieved the parameters.

thanks for your suggestion, I will try to introduce perturbation and will see the response.
 
"perfect tuning" may not exist. In any case that depends on the performance you desired. There is usually a trade-off between speed and stability, for example. I've done lots of feedback system designs, and invariably the final goal criteria was "good enough". Often the focus is on good performance over a range of conditions.

In any case, I don't think you'll find a good cookbook approach*. But there are many that will get you close enough. More general knowledge of control systems and a well designed performance specification is what I think you require.

That plot shown is a bode plot. You can find a lot of material online about it.

* Ziegler–Nichols is the classic, common one.
 
But, if you want someone else to define performance parameters, then I'll give you this set; all wrt the complete loop transfer function (loop gain):

1) low frequency gain as high as possible.
2) 0dB bandwith as high as possible.
3) 0dB only occurs at one frequency.
4) phase margin goal >45o, but not <30o.
5) gain margin >10dB (or about a factor of 3).

PS:
Loop gain is ##T(\omega) \equiv -F(\omega)G(\omega)## in @BvU's post #2 and is a complex valued function of frequency; i.e. it has gain and phase.

This is a generically applicable set of requirements that should give reasonable, yet conservative, performance for most any system.
 
Last edited:
  • Like
Likes   Reactions: pallab and berkeman
DaveE said:
But, if you want someone else to define performance parameters, then I'll give you this set; all wrt the complete loop transfer function (loop gain):

1) low frequency gain as high as possible.
2) 0dB bandwith as high as possible.
3) 0dB only occurs at one frequency.
4) phase margin goal >45o, but not <30o.
5) gain margin >10dB (or about a factor of 3).

PS:
Loop gain is ##T(\omega) \equiv -F(\omega)G(\omega)## in @BvU's post #2 and is a complex valued function of frequency; i.e. it has gain and phase.

This is a generically applicable set of requirements that should give reasonable, yet conservative, performance for most any system.
bode1.jpg

After adjusting the PID parameters I have got this response plot. the magnitude is not crossing the 0dB line. Is there any issue? PID is locking the laser.
 
pallab said:
View attachment 351116
After adjusting the PID parameters I have got this response plot. the magnitude is not crossing the 0dB line. Is there any issue? PID is locking the laser (FYI).
 
  • #10
pallab said:
View attachment 351116
After adjusting the PID parameters I have got this response plot. the magnitude is not crossing the 0dB line. Is there any issue? PID is locking the laser.
It's fine in that frequency range. If this is unstable it will be at higher frequencies which you haven't shown. This assumes it's the loop gain you're showing us, of course.
 
  • #11
DaveE said:
It's fine in that frequency range. If this is unstable it will be at higher frequencies which you haven't shown. This assumes it's the loop gain you're showing us, of course.
response 1.jpg
response2.jpg

two plots are the responses of the locked laser. What are the possible reasons behind the drift or oscillation-like result? I have tried different PID parameters but have not been able to get rid of the drift completely.
 
  • #12
We can maybe get some more clues if you show the control signal and the error signal, time synchronized, on the same graph as the laser frequency.
 
  • #13
pallab said:
View attachment 352670View attachment 352671
two plots are the responses of the locked laser. What are the possible reasons behind the drift or oscillation-like result? I have tried different PID parameters but have not been able to get rid of the drift completely.
The first place I would look is the electrical signal from the sensor (photocell) into the controller. The controller should be keeping that signal constant, if it's not, then you might not have enough I gain or have problems with the output capability (range, slew rate, etc.) to control the laser.

More likely, in my experience is a problem with the sensor accurately measuring what you want to control. If there is a noise signal added in there or a problem with the optical system (polarization, position or angle variation, thermal effects, etc) not faithfully reproducing what you want controlled, then you can't fix it with the feedback controls, you'll have to work on a good measurement system.

Also verify that there isn't a high frequency oscillation going on that doesn't show up on the slow scan time base. That can drive the system into saturation or non-linearity that will mess up the controller.

Back in the day we put a surprising amount of engineering work into the photodetector and associated optics just to get a good power measurement built into our Ion Lasers.
 
  • Like
Likes   Reactions: pallab and Tom.G
  • #14
DaveE said:
Also verify that there isn't a high frequency oscillation going on that doesn't show up on the slow scan time base. That can drive the system into saturation or non-linearity that will mess up the controller.
thanks for your input.
there is a constraint in our setup. the controller is far from the sensor (but not more than 3m) and a BNC connector has been used to connect two cables to connect the photodetector and the controller. We suspect this is one source of problems.
would you explain, what frequency you are referring to?
 
  • #15
pallab said:
the controller is far from the sensor (but not more than 3m) and a BNC connector has been used to connect two cables to connect the photodetector and the controller.
That shouldn't matter, IMO.

pallab said:
what frequency you are referring to?
Anything faster than you can see on your scope display. Any big oscillation.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
8K
Replies
14
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 46 ·
2
Replies
46
Views
5K
  • · Replies 7 ·
Replies
7
Views
4K