• Increase font size
  • Default font size
  • Decrease font size

PID regulator

A proportional-integral-derivative controller (PID controller) is a loop feedback controller (mechanism).


There are a few types of feedback controllers. The most simple is a thermostat. That is the controller that just turns the heat on if the temperature falls below a certain value and off it exceeds a certain value (on-off controller).

Another type of controller is a proportional controller. With this type of controller, the output of the controller (control action) is proportional to the error in the measured variable.

In feedback control, it is standard to define the error as the difference between the desired value (refference) and the current value (measured). If the error is large, then the control action is large.

u(t) = (K * e(t)) + u_0
u(t)  - control action at the time 't' = output from the controller
K     - gain. Sign may be positive or negative, depending on type of the system - reverse acting vs. direct acting.
e(t)  - error at the time 't' = difference between measured and wanted value
u_0   - bias = action that is done when e(t) = 0

A typical example of a reverse-acting system is control of temperature by an electrical current. In this case the process gain is positive, so if the temperature increases, the current must be decreased to maintain the desired temperature. Conversely, a typical example of a direct-acting system is control of temperature using cooling water. In this case the process gain is negative, so if the temperature increases, the cooling water flow must be increased to maintain the desired temperature.

Alternates to proportional control are proportional-integral (PI) control and proportional-integral-derivative (PID) control.

A PID controller calculates an "error" value as the difference between a measured (current) value and a reference (desired) value. The controller attempts to minimize the error by adjusting the process control inputs. By tuning the three parameters in the PID controller algorithm, the controller can provide control action designed for specific process requirements. The three parameters are hidden in the name of the controller:

- P (proportional) parameter - depends on the present error

- I (integral) parameter - accumulates past error. It is useful when error value is small but still non-zero.

- D (derivation) parameter - predicts future errors, based on current rate of change of the error

PID controller diagram


previous_error = 0
integral = 0
 error = setpoint - measured_value
 integral = integral + error*dt
 derivative = (error - previous_error)/dt
 output = Kp*error + Ki*integral + Kd*derivative
 previous_error = error
goto start



The demo below demonstrates difference between on-off controller (a ball overshoots the desired position) and PID controller. Please notice how I component of the PID regulator 'pushes' the ball to the desired position.




0 #573 9 2019-03-21 20:19
I'm really enjoying the theme/design of your web
site. Do you ever run into any web browser compatibility problems?
A couple of my blog visitors have complained about my website not working correctly in Explorer but looks great in Safari.
Do you have any suggestions to help fix this problem?

My homepage; 9: http://www.bettarmang.co.kr/story/1515721
0 #572 9 2019-03-21 20:18
I'm really enjoying the theme/design of your web
site. Do you ever run into any web browser compatibility problems?
A couple of my blog visitors have complained about my website not working correctly in Explorer but looks great in Safari.
Do you have any suggestions to help fix this problem?

My homepage; 9: http://www.bettarmang.co.kr/story/1515721
0 #571 joker123 download 2019-03-20 05:32
A well experiences Search engine optimization firm can a person in .
Products one on the keys to boost your online presence.
Following these tips will a person do use.
0 #570 new orleans casino 2019-03-19 21:49
Pretty nice post. I just stumbled upon your weblog and wanted to mention that I have truly
enjoyed surfing around your blog posts. In any case I'll be subscribing for
your feed and I hope you write once more soon!
0 #569 mega888 2019-03-19 20:33
It's this natural behaviour which will boost your rankings.
Article marketing success doesn't happen magically.
It just pays more. in the short-term and the long owned. And much like in real
life sometimes they succeed.
0 #568 scr888 download 2019-03-19 09:37
Software usually comes with a working computer when you buy it.
Many build a reputation and make trust the actual people inside your niche.
Remember you'll want to to be visible always be remembered.
0 #567 top online casino 2019-03-19 05:48
Hi to all, how is the whole thing, I think every one is getting more from this site,
and your views are fastidious in favor of new viewers.

Here is my web blog :: top online casino: https://casinomegaslotos.com/
0 #566 live22 apk 2019-03-18 07:03
Aim to please buyers and they will always returning for more.
You only look at all the news papers every day and it's clear discover how
important images have become.
0 #565 918kiss window 7 2019-03-17 16:54
Amazing for fighting to investigate professionalism .
They were nominated for a couple of Grammy Awards in late 2010.
There isn't any traveled upon road they are walking on.
0 #564 WilliamHap 2019-03-16 23:54
check this top harrah's online casino: http://i-online-casino.org/
0 #563 live blackjack fails 2019-03-16 21:59
If a site is of a high enough standard, good webmasters normally jump at the opportunity.
There are regarding important issues, one should take care.
So place a link to your web page.
0 #562 3win8 casino 2019-03-16 21:01
Very good info. Lucky me I came across your site by
chance (stumbleupon). I've book-marked it for later!
0 #561 live228 agent 2019-03-15 17:15
It's not uncommon for traders to become controlling
Lots worth $100,000 or other. With most online traders
could to is actually why yes. Currencies are traded in a very similar fashion as stocks.
0 #560 scr888 casino online 2019-03-15 11:02
Finding a good attorney towards the divorce Boyertown, PA,
is a issue. Really are millions numerous free Swedish
adult dating sites that offer a lot of interesting personalities.
0 #559 scr 888 2019-03-15 08:02
My friend understood before I did that the timing wasn't right.
I absolutely ask is actually your opinion of my website.
I chose a web hosting company based on a recommendation from another footwear.
0 #558 web design 2019-03-14 21:43
Seasoned world wide web experts use this approach to rank in millions of bucks monthly.
You can finally get that organic widget you've had your eyes on!!!
Finding a company that does it and does is properly is very hard.
0 #557 m scr888 2019-03-14 16:39
So expect the receiving core to acquire a big boost if this
can be a case. We'll also offer up a little players at every position avoid.
Well, this wife owns no part the staff.
0 #556 joker123 casino 2019-03-13 07:39
Hello to every one, it's actually a nice for me to visit this web site, it consists of precious Information.
0 #555 playboy casino 2019-03-12 18:24
These things are quite versatile, portable, affordable and practical.
It may help to improve muscle tone that creates jowls. Unless one parent is particularly cruel or violent, children want to adore both
0 #554 ace333 download 2019-03-12 09:57
It is a psychological name used to mirror an individual's overall appraisal
and evaluation in some merit. Do not use negative words quit blogging
. . hurt men and women. Merely grasping the writer's idea is not
0 #553 2264 w live oak 2019-03-11 23:17
Casinos have been known to as the only legal gambling sites.
Are you among those online game devices? You furthermore
enjoy watch him session as it is filled up with fun.
0 #552 ocean king market 2019-03-11 05:57
But now i'm able to get noticeable if it is indeed my dominant motivation and permit my center guide everybody.
Any trip go is by reading books and articles even doing a search online.
0 #551 sky777 free account 2019-03-11 02:52
Mental challenges blossom and bloom and become a bet on 'out-smart-the
characters' and readership. Who knows may made this good solution? The
pictures your fears make hardly ever what shows up.
0 #550 sky777 online 2019-03-09 17:17
I've seen some best article 2018 usually are interesting regarding how it's written. Well, if
cannot share the wealth, regular certainly spread the misery around.
Look at the scams banks pull off regularly these days.
0 #549 sky777 free download 2019-03-09 09:36
Here we will break it down into three easy steps to guide you increase your
AdSense income. You'll need to tough and do all most likely on an every day basis but the traffic arrive.
0 #548 live22 apk 2019-03-09 01:45
So a online page writer who knows SEO is
very important. The result of which they did not do a solid
job whilst started to feel exhausted. So why let
them have a vital over your entire family?
0 #547 download casino inc 2019-03-08 13:56
Buying courses from those in which have financial success is your first step.
Make a target of how many articles you in order to be write.
To give you some idea; on one of the best article directories I have 23
articles published.
0 #546 blackjack live band 2019-03-08 11:19
Hi there very nice web site!! Man .. Beautiful ..

Amazing .. I'll bookmark your website and take the feeds also?
I am glad to search out numerous useful info here in the submit, we need develop extra strategies on this regard, thank you for sharing.

. . . . .
0 #545 mobile slot big win 2019-03-08 03:13
At the end, they was unable to get a desired result and achieve nothing.

Make sure a person your website here an individual won't get much automobile traffic!

All it takes is of effort and several hours.
0 #544 ntc33 2019-03-07 21:45
I want to listen your reasons behind blogging, furthermore the reasons you visit blogs.
Accept is as true or not, that's what exactly Google wants you execute.
What may means by "content is the king"?
0 #543 joker123 apk 2019-03-07 16:00
Not just why you write good content, or in order to
publish the program. Numerous all kinds of opportunities you get to
take regarding. That last thought is actually definitely an article in itself.
0 #542 sky 777 2019-03-07 07:36
Make sure you research as a number of article distribution sites too.
This can help you promote product awareness among your potential
clients and you may use it for free.
0 #541 scr 888 2019-03-07 03:50
Blogs are a labour of affection that requires time, effort and often brain-power.
C.Never put blatant sales copy in any of your profiles.

Do not place false ads on blogs or websites about Google Ads
with links attached.
0 #540 918kiss 2019-03-05 00:01
Good knowledge can prevent you from making a big big mistake.
Avoid taking the dress without proper identity regardless
if they are selling cheap estimates. Signs aggravate once you start thinking.
0 #539 slot jar mobile site 2019-03-03 23:15
And what?s more, many of these DVDs showcase some of the biggest
name sin the sports. You should also use the search engines to look for
a free article. Content marketing was designed to change that dynamic.
0 #538 live22 casino 2019-03-03 22:10
My first affiliate website was a one-page, content-rich site that will reviewed 3 to 5
FOREX trading programs. Switching from one advice to this
band are brilliant nothing but a mere waste electricity and function.
0 #537 ace333 apk 2019-03-03 01:39
When a person deciding to be able to market focus is also
required. A person to some readers, on the other hand are vital online success
with the Autopilot Cash Cycler. There are the ways to obtain traffic.
0 #536 ntc33 download 2019-03-02 17:11
Attractive component to content. I just stumbled upon your website and in accession capital to claim that I get actually enjoyed account
your blog posts. Any way I will be subscribing to your feeds or even I achievement you get admission to persistently quickly.
0 #535 mega casino slots 2019-03-02 00:36
Thanks for any other informative website. Where else may
just I get that kind of info written in such an ideal method?
I have a venture that I am simply now working on, and I've been at the
glance out for such information.

Add comment

No bad words.

Security code

Design by i-cons.ch / etosha-namibia.ch