Basics adjustments that need to be made in order to get the same result after a derivative is thrown into play. In order to get the same result before the derivative. I can dig it, good video, but we need some music man!! LOL
@amrosik Your explanation really helps! Thx a lot :D But can you also try to explain what does the I - component does using that analogy of the car? Thanks again!
this is the case were you only response over linear correction. a practical example: a driver wants to follow a straight line on the floor... everytime he approaches the line, he still has momentum. this momentum causes the car to swing over the line.
now, what does a D-component do? the D-component involves the information about the momentum of the car. how does that D-komponent act?imagine the car approaches...
@joeballardjrband ... approaches the line. then the error decreases, thereby the dx/dt is negative, and in sum P+D is smaller than P alone(because D is negative). and if this new output is fewer, then the driver will steer fewer, and as a result the car will swing over fewer.
A graphic demostration of a PID in operation in a mechanism that most can relate to (like an airplane or car) would make understanding PID's A LOT easier.
A good analogy is changing lanes on a freeway, where we have the feedback loop consisting of: eye - sensor; reference - car position; error - displacement to other lane; actuating signal - angle of steering wheel; disturbance - wind; plant/system - vehicle.
If u only have P controller, u can only instantaneously set the steering wheel angle to something proportional to the error. This will get you to the other lane if there were no disturbances. (to be cont.)
But if there's some wind. For example you're trying to go to the right lane but we have some wind (disturbance) applied to the vehicle in the form of a step function at some time after you're turning into the lane, then it's possible you may end up with a constant offset. This occurs when the steering angle calculated from the P gain x error is equivalent to the force of the wind, thus canceling each other out and the car will move in a straight line, with a constant error.
You could of course set the P gain to be very high to overcome potential disturbances. However if there were no wind e.g., then a very high P gain will cause the vehicle to overshoot the target lane. The system can even potentially be unstable and error go to infinity.
That's why the PI controller is so popular. The additional I gain solves the offset problem by looking at the cumulative error and increasing / decreasing the steering angle accordingly.
So in the case where a step function wind is preventing the vehicle from turning into the right lane, the I gain, which depends on the cumulative error, will eventually overpower the force of the disturbance and allow the vehicle to move to the correct lane.
However this doesn't fix the problem of overshoot (settling time). In fact the PI controller has a higher settling time than the P controller. This should be obvious. So this is where the D term gain comes in.
The D term gain is added to the PI controller now. The D term essentially looks at the rate at which the error is changing and try to counteract that change. So imagine a situation where the vehicle is oscillating around the target position in the lane. When it's moving from the center into the right shoulder, the error starts to increase, and since the D gain is proportional, the faster the error increases, the harder the D term tries to pull the vehicle back. u end up w/ reduced settling time.
Excellent.. please upload more on this topic. For example.. in most systems there are 2 PID's. One controls Speed and the other Current (Torque). Can you elaborate of these?
Basics adjustments that need to be made in order to get the same result after a derivative is thrown into play. In order to get the same result before the derivative. I can dig it, good video, but we need some music man!! LOL
savagealeut1212 1 week ago
@amrosik Your explanation really helps! Thx a lot :D But can you also try to explain what does the I - component does using that analogy of the car? Thanks again!
nahchris 1 week ago
I'm going to go jerk off in my cat's mouth
dragginleftnut 1 month ago
Excelent Video!!!
mejiarinconleonardo 1 month ago
Thank you for the great explanation. Really helpful. :)
killmalletgodsrtmout 1 month ago
Great summary of all the important things!
FreestyleBrain 1 month ago
still hasn't sunk in yet :(
joeballardjrband 2 months ago
@joeballardjrband ok, then consider the folliwing: look at the picture at 2:19....
this is the case were you only response over linear correction. a practical example: a driver wants to follow a straight line on the floor... everytime he approaches the line, he still has momentum. this momentum causes the car to swing over the line.
now, what does a D-component do? the D-component involves the information about the momentum of the car. how does that D-komponent act?imagine the car approaches...
amrosik 1 month ago
@joeballardjrband ... approaches the line. then the error decreases, thereby the dx/dt is negative, and in sum P+D is smaller than P alone(because D is negative). and if this new output is fewer, then the driver will steer fewer, and as a result the car will swing over fewer.
now clear?
amrosik 1 month ago
that was really helpfull
110mhra 2 months ago
I think that your video is one of the unique that explains very clear the PID tunning. Good job!
MyRAFA70 2 months ago
How 2 get first hit rapiering
dukkySM64 2 months ago
Very clear definition, thanks.
clearair 2 months ago
Best video ever !!! Thanks to the man behind it. Took me obviously more thn 4 min. :p
anumsheraz 3 months ago
was very helpful !! better than a lot available
Thanks alot
tagar07 4 months ago
A graphic demostration of a PID in operation in a mechanism that most can relate to (like an airplane or car) would make understanding PID's A LOT easier.
mrCbeems 4 months ago
A good analogy is changing lanes on a freeway, where we have the feedback loop consisting of: eye - sensor; reference - car position; error - displacement to other lane; actuating signal - angle of steering wheel; disturbance - wind; plant/system - vehicle.
If u only have P controller, u can only instantaneously set the steering wheel angle to something proportional to the error. This will get you to the other lane if there were no disturbances. (to be cont.)
boxiness 4 months ago
But if there's some wind. For example you're trying to go to the right lane but we have some wind (disturbance) applied to the vehicle in the form of a step function at some time after you're turning into the lane, then it's possible you may end up with a constant offset. This occurs when the steering angle calculated from the P gain x error is equivalent to the force of the wind, thus canceling each other out and the car will move in a straight line, with a constant error.
boxiness 4 months ago
You could of course set the P gain to be very high to overcome potential disturbances. However if there were no wind e.g., then a very high P gain will cause the vehicle to overshoot the target lane. The system can even potentially be unstable and error go to infinity.
That's why the PI controller is so popular. The additional I gain solves the offset problem by looking at the cumulative error and increasing / decreasing the steering angle accordingly.
boxiness 4 months ago
So in the case where a step function wind is preventing the vehicle from turning into the right lane, the I gain, which depends on the cumulative error, will eventually overpower the force of the disturbance and allow the vehicle to move to the correct lane.
However this doesn't fix the problem of overshoot (settling time). In fact the PI controller has a higher settling time than the P controller. This should be obvious. So this is where the D term gain comes in.
boxiness 4 months ago
The D term gain is added to the PI controller now. The D term essentially looks at the rate at which the error is changing and try to counteract that change. So imagine a situation where the vehicle is oscillating around the target position in the lane. When it's moving from the center into the right shoulder, the error starts to increase, and since the D gain is proportional, the faster the error increases, the harder the D term tries to pull the vehicle back. u end up w/ reduced settling time.
boxiness 4 months ago
How to be confused as fuck in four minutes!
iammestamanRS 4 months ago 20
How does a controller work to maintain equilibrium in a closed loop system?
TheMimimocha510 4 months ago
Excellent.. please upload more on this topic. For example.. in most systems there are 2 PID's. One controls Speed and the other Current (Torque). Can you elaborate of these?
mrCbeems 4 months ago
Comment removed
mrCbeems 4 months ago
Comment removed
mrCbeems 4 months ago
Comment removed
mrCbeems 4 months ago
Comment removed
mrCbeems 4 months ago
Comment removed
mrCbeems 4 months ago
Ahh it all makes sense now!
thelegand1 5 months ago
Thanks, Nice simple explanation.
milburncamilo 5 months ago
Please can u explain the Digital PID control
tariqusman1 9 months ago
Well that took more than 4 minutes, but I do definitely understand it much better. THANKS SO MUCH!!!!!
chevon1920 10 months ago 14
I learned a lot from this. Thank you very much sir!
EngrKenXi 1 year ago
thanks
electronicscontrol 1 year ago