Function of PD, PI, ID and PID microcontrollers on a system

  • Thread starter Sam Groves
  • Start date
  • Tags
    Pd System
  • #1
Sam Groves
11
0
Well different microcontrollers act differently on a system. A pure P microcontroller reduces the error and increases the final value , a pure I microcontroller nullifies the error and increases the final value and a pure D microcontroller increases the error and keeps the final value the same.

However when combining pure microcontrollers the net result will be somewhere in between right?

Since generally a microcontroller in the s domain can be written down as:K0+K1/s+K2s the net result depends on the constants K0,K1 and K2.Given K0,K1,K2 can we evaluate how the PID would act out?Is it like the RGB color or is it more complicated(K0 has greater weight than K1 or K2)?
 
Last edited by a moderator:
Engineering news on Phys.org
  • #2
Sam Groves said:
Is it like the RGB color
No

Sam Groves said:
is it more complicated
Yes, it's more complicated. I don't think there's a good answer without knowing the nature of the system being controlled. Feedback compensation is tailored for each system to optimize performance based on desired behavior.

BTW, there's nothing special about PID. As a controls guy, I find it kind of annoying that that is what is always taught. You could have two integrator terms, no proportional term, etc. In fact my general advice is to just not use the derivative term unless you both need it and have a really good understanding of stability of feedback systems. It usually causes more problems than it solves.

Sorry, I don't know of a simple reference to explain this. You can search for "feedback compensation" to dig deeper; there's lots of good stuff on the web.
 
  • Like
Likes nsaspook and Dullard
  • #3
@Dave:
I don't disagree with anything that you said. I think that the emphasis on 'PID' is a result of the fact that for most standard industrial control hardware (PLCs, etc.), 'canned' PID is what is available. Many of the people implementing controls in an industrial setting have little/no understanding of the (mathematical) theory behind the 'knobs' that they're turning when they 'tune' a system. There are some surprisingly good empiricists running around. They lack the classical training that EEs get, but their approach accounts for the practical limitations of feedback (accuracy, latency, etc.) that some EEs never seem to 'get'. Obviously, a trained EE (with actual experience) is ideal.

I agree that 'D' is much less commonly required. Where 'D' is rquired, you absolutely need to know what you're doing - It's not useful in a temperature control for an oven with a 12-Hour time constant. For servo-valves modulating the application of aggregate to multi-colored roof shingles zooming by at several FPS, it's absolutely required. 'D' can always (at least theoretically) 'improve' the response - knowing when it's worth the trouble is the trick.
 
  • Like
Likes DaveE

Related to Function of PD, PI, ID and PID microcontrollers on a system

What is the function of a PD controller in a microcontroller system?

A Proportional-Derivative (PD) controller in a microcontroller system is used to improve the stability and responsiveness of the system. The proportional component helps to reduce the error by adjusting the control input proportionally to the error, while the derivative component predicts future error based on its rate of change, thus providing a damping effect to reduce overshoot and oscillations.

How does a PI controller work in a microcontroller system?

A Proportional-Integral (PI) controller in a microcontroller system combines the proportional control, which reduces the present error, with integral control, which sums up past errors to eliminate steady-state error. This combination helps in achieving a balance between quick response and elimination of residual errors over time, making the system more accurate and stable.

What is the role of an ID controller in a microcontroller system?

An Integral-Derivative (ID) controller is less common but can be used in specific applications where both integral and derivative actions are needed without the proportional component. The integral part focuses on eliminating steady-state error by considering cumulative past errors, while the derivative part predicts future errors to dampen the system's response. This can be useful in systems where the proportional component might cause excessive oscillations or instability.

How does a PID controller enhance system performance in a microcontroller?

A Proportional-Integral-Derivative (PID) controller combines all three control actions to provide a comprehensive control strategy. The proportional part addresses the present error, the integral part eliminates past errors, and the derivative part predicts future errors. This combination allows for precise, stable, and responsive control, making PID controllers highly effective for a wide range of applications in microcontroller systems.

When should you choose a PD, PI, ID, or PID controller for your microcontroller system?

The choice between PD, PI, ID, and PID controllers depends on the specific requirements of your system. Use a PD controller if you need quick response and reduced overshoot. A PI controller is suitable when you need to eliminate steady-state errors. An ID controller can be used in systems where proportional control might cause instability. A PID controller is the best choice for achieving optimal balance between responsiveness, stability, and accuracy in most applications.

Similar threads

  • Programming and Computer Science
Replies
15
Views
2K
  • Atomic and Condensed Matter
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
  • Advanced Physics Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Art, Music, History, and Linguistics
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
5K
  • Calculus and Beyond Homework Help
Replies
1
Views
4K
Back
Top