I am trying to stabilize laser frequency with PID controller

  • #1
pallab
43
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
  • #2
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 DaveE and berkeman
  • #3
BvU said:
Did you get a copy of Day's thesis ?
No, I do not have that thesis copy.
 
Last edited by a moderator:
  • #4
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 BvU
  • #5
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.
 
  • #6
"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.
 
  • #7
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 pallab and berkeman
  • #8
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.
 
  • #9
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 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
Views
1K
Replies
5
Views
2K
Replies
4
Views
2K
Replies
7
Views
2K
Replies
17
Views
2K
Replies
2
Views
2K
Back
Top