Questions tagged [pid-controller]

A PID controller is a (closed) control loop feedback mechanism. It is used in industral control for proportional, integral and derivative feedback.

People at the Electronics stackexchange often ask about various ways to implement the PID controller itself, and ways to connect its output (a series of numbers), often using PWM and MOSFETs, to things a person may want to control -- heaters, motors, etc. There are discussions of windup and anti-windup, clipping, z-transforms, why scale-then-integrate is better than integrate-then-scale, etc.

People at the Robotics stackexchange typically assume you already have a PID implementation connected to some device, and ask about the subtleties of using it. Such as "loop tuning" -- ways of tuning and tweaking the Kp, Kd, Ki "constants", and the horrible things that go wrong when they aren't tuned right. How to deal with the fact that a PID for the elbow motor tuned perfectly when the shoulder is "down" isn't so perfect when the shoulder is "horizontal" or "up", or when the hand is empty vs. when the hand is holding a bowling ball, and ways to compensate. See http://robotics.stackexchange.com/questions/tagged/pid

further reading

PID without a Ph.D.

638 questions
25
votes
4 answers

Yogurt on a PID controller

How do you change the tuning of a PID controller to deal with changing thermal properties? The project: I am making yogurt. It cultures at 110 deg F for about half a day; you put in milk and a little starter culture and get yogurt. Save a little for…
hildred
  • 862
  • 1
  • 7
  • 17
9
votes
4 answers

PID output at 0 error

I'm having some problems conceptualizing PID, specifically the case where there is 0 error. The traditional PID formula I usually find is: \$ output=K_p e + K_i \int e dt + K_d \frac {de}{dt} \$ Let's assume I'm running a motor with the above…
turne145
  • 91
  • 4
9
votes
1 answer

Integral and Derivative terms in PID control

Integral Term My understanding of the integral term is: Sum of all errors since we started counting. So, even though we have reached our desired final target position, the integral of the errors should be high (no?) since we started adding all the…
JJT
  • 289
  • 3
  • 8
8
votes
4 answers

Scaling PID (Proportional Integral Derivative) Output

I have implemented a PID function using the formula, correction = Kp * error + Kd * (error - prevError) + kI * (sum of errors) What should I do to keep my output between a certain range? say 0-255 If I disregard any value not between 0 to 255 it…
Hamza Yerlikaya
  • 359
  • 2
  • 3
  • 10
6
votes
3 answers

PID : What does « ultimate gain Ku » in Ziegler–Nichols method mean?

According to the PID controller Wikipedia page, in its subsection Ziegler-Nichols method, as in its Ziegler-Nichols page, it is said that using "ultimate gain Ku" could help to tune a PID. Unfortunately, I'm not sure that I understand well what is…
Anc
  • 101
  • 1
  • 1
  • 10
6
votes
3 answers

Design of a PI controller

If I have a process which is approximated by a first order system $$ H(s)\ = \frac{K}{s+a}e^{-sT} $$ How can I design a PI controller with a rising time < 2 and an overshoot that is less than 10% I know a typical PI controller is given as…
6
votes
2 answers

Algorithms for automatic PID tuning?

I am given to understand that there exists software for tuning PID controllers. I haven't had much luck finding references, though. Pros/cons for algorithms, and references for them? ADDED: I'm specifically looking for a description (scholarly or…
Jay Kominek
  • 632
  • 5
  • 11
4
votes
1 answer

What happens if PID loop is too fast?

I have a PID loop running at 100Hz and is working reasonably well, for now. However, if I double the speed to 200Hz it no longer works, which isn't much of a surprise. The question is, what changes should be made to the PID values to get it to work…
Dirk Bruere
  • 13,723
  • 9
  • 54
  • 115
4
votes
3 answers

How stable are PID loops really?

This is not a question about tuning PID loops for stability. I am assuming the output looks stable. The question is: Do PID loops ever achieve absolute stability, or is there inevitably a periodic oscillation, no matter how small? It's more a…
Dirk Bruere
  • 13,723
  • 9
  • 54
  • 115
4
votes
2 answers

PID - Integrator Anti Windup limit values

I'm implementing a PID controller in software. Using P+D only doesn't bring me close enough to my set-point so I decided to also use an Integrator with Anti-Windup. Question: In my Anti-Windup code - how do I decide on the upper and lower limits of…
shaiko
  • 469
  • 1
  • 7
  • 16
4
votes
4 answers

opposing PID controllers

I have a system where a setpoint temperature can be set. A heater and a cooler is connected to the object. Right now both the heater and the cooler regulate on the temperature separately with separate PID controllers. This ofcourse causes them to…
Rolle
  • 225
  • 1
  • 2
  • 6
3
votes
2 answers

Are PID solutions unique?

I have a PID loop controlling a system successfuly. The question is, are the P, I and D values unique, or would other values also control the loop? [Ignoring slight changes to the original value]
Dirk Bruere
  • 13,723
  • 9
  • 54
  • 115
3
votes
1 answer

PI controller for PWM fans

The requirements I want to control PWM fans to maintain some HDDs in a server at about 35°C, the absolute value isn't critical, however I want the temperature to be stable regardless of the ambiant temperature (within reasonable limits of course, if…
Biduleohm
  • 359
  • 1
  • 3
  • 14
3
votes
1 answer

PID-controller and Ziegler-Nichols Method: How to get oscillation period?

I'm a bit confused about how to measure the oscillation period of a quasi-stable system when using the Ziegler-Nichols method to get the correct PID configuration. The factor of the oscillation period is used in the rule for the I and D terms, but…
Evert
  • 309
  • 1
  • 3
  • 9
2
votes
1 answer

Problem with PID tuning

This is the step response of the power stage of a buck converter. I tried tuning it when i added a proportional term, the rise time and settling time improved.So kept on increasing Kp and the response never started to oscillate. I added ki and the…
user22348
  • 369
  • 3
  • 7
  • 18
1
2 3 4 5