Noise Filtering in PID Control | Understanding PID Control, Part 3

  Рет қаралды 344,298

MATLAB

MATLAB

6 жыл бұрын

This video describes how to make an ideal PID controller more robust when controlling real systems that don’t behave like ideal linear models.
- Download Code Examples to Learn How to Automatically Tune PID Controller Gainshttps: bit.ly/2HKBh12
Noise is generated by sensors and is present in every system. The derivative in an ideal PID controller amplifies high-frequency noise. Even if that noise is relatively low amplitude, the derivative will sense it and possibly amplify it enough to impact the controller. To protect against high-frequency noise impacting the system, you can modify the derivative path with a low pass filter to reduce the noise before it causes any problems.
PID Control with MATLAB and Simulink: bit.ly/2Qg57y8
PID Control Made Easy: bit.ly/2Q7Hhor
PID documentation: bit.ly/2Qi4fcE
Watch more MATLAB Tech Talks: bit.ly/2rTc8Yp
Check out more control system lectures on Brian's Channel: bit.ly/2IUlvkw
Get a free MATLAB Trial: goo.gl/ZHFb5u
Learn more about MATLAB: goo.gl/8QV7ZZ
Learn more about Simulink: goo.gl/nqnbLe
See What's new in MATLAB and Simulink: goo.gl/pgGtod
© 2018 The MathWorks, Inc. MATLAB and Simulink are registered
trademarks of The MathWorks, Inc.
See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names maybe trademarks or registered trademarks of their respective holders.

Пікірлер: 90
@BrianBDouglas
@BrianBDouglas 6 жыл бұрын
Thanks for watching, everyone! Write your questions here and I’ll try to answer if I can. Cheers!
@mosmanxia3291
@mosmanxia3291 6 жыл бұрын
Can Kalman filter be used in this derivative step?
@BrianBDouglas
@BrianBDouglas 6 жыл бұрын
Mosman Xia maybe in the derivative path, I’ve never done that though. A Kalman filter is used to estimate a state using a model and measurements. So usually you’ll see it in the feedback path blending the sensor measurement with a prediction to create an optimal estimation of whatever you’re measuring. This can act like a low pass filter and remove that high frequency sensor noise before it even enters the PID controller.
@draganostojic6297
@draganostojic6297 6 жыл бұрын
Hello Brian, for my PID, I put a LPF in front of the PID controller to suppress high frequency due to sampling (avoid antialiasing). My thinking is that this will also suppress noise and eliminate the need for a filter in front of just D. Is this reasoning correct.
@BrianBDouglas
@BrianBDouglas 6 жыл бұрын
Dragan Ostojić yep that would work too. If it’s a linear LPF then you can put it before or after the D path because of the commutative property of linear systems. If you put it before the P and I path then the LPF would also affect those paths then as well. It all depends on what exactly you’re going for and how you want to implement it. If your anti-aliasing filter had the right cutoff frequency and roll off characteristics for your PID controller then you’re done.
@roki8035
@roki8035 6 жыл бұрын
Hey Brian, I never understood why it is possible to calculate a slope at the current time step. Isn't a Derivate in a controller acausal?
@theKiroo
@theKiroo 6 жыл бұрын
Your fan since 2014 I've immediately recognized your voice and I was like"...wait...is this Brian?!" Thanks so much, I owe so much to you sir
@leoshen4676
@leoshen4676 3 жыл бұрын
Me sitting here wondering did I fail to learn at school or the school failed to teach 😂 Thanks Brian best lecturer out there
@hackerstreak6270
@hackerstreak6270 4 жыл бұрын
Amazing explanation! I was looking for just this kinda video the whole time! Thank you so much and keep doing such videos.
@shubhamkothari2709
@shubhamkothari2709 3 жыл бұрын
Thank you for this amazing one! The clarity of each and every concept is so simply explained by you, it just makes the topic much more interesting understanding the practical implementation.
@SABIRALI-gf3fv
@SABIRALI-gf3fv 5 жыл бұрын
Thank you so much for your time Mr. Brian Douglas.
@martinevans8965
@martinevans8965 6 жыл бұрын
These videos are so clearly explained. Nice work.
@brajlecz9485
@brajlecz9485 Жыл бұрын
These videos are a lifesaver. Thank you for making them.
@wiloberlies9598
@wiloberlies9598 5 жыл бұрын
Once again, great stuff Brian...looking forward to the next video. Thank you!
@xuhan4682
@xuhan4682 3 жыл бұрын
Great Lecture. Well explained and compact.
@vheisshu
@vheisshu 2 жыл бұрын
great lecture. require minimal algebra for the explanations which is great for a non-mathematical literate like me. Amazing Brian!! thank you.
@mohamedkandil8782
@mohamedkandil8782 6 жыл бұрын
Awesome Brain! keep rocking !!
@abdelkaderbelabed3868
@abdelkaderbelabed3868 Жыл бұрын
Hi, Brian your videos about control theory is great, I hope you will talk about MPC controller
@tonyyuan4857
@tonyyuan4857 4 жыл бұрын
@Brian, Thank you for your great video. for 9:34, the alternative approach, how should it be implemented in a discrete structure? If SN/(S + N) is "c2d"ed, a differential structure will appear.
@richardatkinson2376
@richardatkinson2376 4 жыл бұрын
thank you do much for these videos, i learned a lot. may i ask what software are you using for this video presentation.
@pranavdheer5971
@pranavdheer5971 5 жыл бұрын
This is really amazing!!
@Rancrom
@Rancrom 6 жыл бұрын
If you could release all these videos before my exam Friday next week, that’d be great!thanks!
@karunamudliyar5625
@karunamudliyar5625 5 жыл бұрын
Thank you Brain for this wonderful video. Are you going to talk about discrete PID control in future? Thanks.
@varokke137
@varokke137 3 жыл бұрын
I am from future. He did.
@karunamudliyar5625
@karunamudliyar5625 3 жыл бұрын
@@varokke137 Thanks..!! Have a nice day..!!
@yoyomemory6825
@yoyomemory6825 4 жыл бұрын
Thaaaanks for the clear explanation !!!!
@user-kt3ni8xr4c
@user-kt3ni8xr4c 10 ай бұрын
Thanks for this didactic videos,its very useful.
@rahulranjan1601
@rahulranjan1601 3 жыл бұрын
Thanks for making such a good video.. 🙂
@ronaldos3738
@ronaldos3738 2 жыл бұрын
Wow you are pretty good explaning this thinks, thanks a lot
@nhattienle1985
@nhattienle1985 9 ай бұрын
So incredible! Your video is so goodd
@engineeringeveryday
@engineeringeveryday 4 жыл бұрын
Thanks for teaching.
@enen2777
@enen2777 Жыл бұрын
Great lecture!
@Olavotemrazaodenovo
@Olavotemrazaodenovo 3 жыл бұрын
Congratulations from Brazil.
@yakhunt9424
@yakhunt9424 Жыл бұрын
Parts 1 and 2 were great, but this made my head explode
@kafi251974
@kafi251974 6 жыл бұрын
thanks for this video
@uzairarifawan
@uzairarifawan 4 жыл бұрын
which microcontroller is best for Simulink models? I'm designing QuadCopter and I'm getting little bit to confuse that how to implement practically this Simulink model. Thanks in Advance. and your lectures are very awesome and easily understandable.
@vladpanainte8443
@vladpanainte8443 5 жыл бұрын
Hello Brian, I have a sensor with long time response in the system. Let's say that the system will detect an error and will activate the actuators in order to correct it. I am afraid that in reality the error will be corrected but the system will keep the actuators activated for a longer time than it is necessary and we will use a lot more resources than it is necessary. Is there any option to delay the controller's response? The sensor can't be changed, maybe there is another option for trolling this system?
@1998zakwan
@1998zakwan 3 жыл бұрын
This saved my semester
@jessysaintauret3615
@jessysaintauret3615 6 жыл бұрын
Hey Brian Great video as usual. I have one question though at 5:10 when you derivate y(t)= sin (Xt+phi) , its derivate should not be dy(t)/dt= X cos (Xt+phi) ?, or maybe that's why you shifted it with 90deg? Thanks
@BrianBDouglas
@BrianBDouglas 6 жыл бұрын
Yep, exactly why I shifted it 90 deg :)
@gabrielvoss6251
@gabrielvoss6251 5 жыл бұрын
yeah but you have also written down that noise = y(t)=asin(W t + f0) which is wrong because it's cos. This particular aside, your videos are amazing and you explain everything very clearly@@BrianBDouglas
@bikkyrouth4553
@bikkyrouth4553 5 жыл бұрын
Because sin(90+fi) =cosfi
@vladfarias
@vladfarias 5 жыл бұрын
Excellent!!!!!!!!!!!!
@thomassaook7787
@thomassaook7787 Жыл бұрын
Many thanks Brian, I need to implement and code PID in digital form via C++ or as they call it "Discrete PID" . Would you please help, or just provide a link where I can start up?
@andrewnforsyth
@andrewnforsyth 4 жыл бұрын
i'm just trying to learn enough to set a control strategy for a refrigeration condenser. after all of my "actuator" hardware is instantiated in the application, it only asks for 3 settings P I D, which i assume are unitless whole numbers? does it differ across different controllers or is there some sort of standard in place?
@fernando.liozzi.41878
@fernando.liozzi.41878 6 жыл бұрын
Thanks!
@rafaymohsin9216
@rafaymohsin9216 2 жыл бұрын
Who are the people that dislike this video. Great teacher, great lecture
@vansytnut7177
@vansytnut7177 6 жыл бұрын
Thank you
@MohamedAli-xb7kh
@MohamedAli-xb7kh 4 жыл бұрын
Thanks a lot 🌸
@zihaoyuan8810
@zihaoyuan8810 2 жыл бұрын
This dude's hand draw is insane.
@jayaprakashms6769
@jayaprakashms6769 Жыл бұрын
Hello Douglas .. have a good day
@thirumurthym7980
@thirumurthym7980 3 жыл бұрын
nice video . thnx
@ThomasHaberkorn
@ThomasHaberkorn 23 күн бұрын
what if one limits the sample rate for the sensor signal, would that also cut off higher frequencies?
@waizoongwong6930
@waizoongwong6930 3 жыл бұрын
I finally understand why we need a filter...
@vonromerlabas9946
@vonromerlabas9946 2 жыл бұрын
do you have any book recommendations for PIDs?
@myozinaung
@myozinaung 6 жыл бұрын
Hi sir, when we normally use a low-pass filter, we face the phase lagging. For the real-time signal, phase lag is undesirable. How can we eliminate the phase lag caused by a low-pass filter?
@BrianBDouglas
@BrianBDouglas 6 жыл бұрын
Hello, good question! Not all phase lag hurts a real-time system. If you look at a Bode plot for a low pass filter you'll see that there is almost no phase lag at the low frequencies (passband) and that there is 90 degrees of lag at the high frequencies (stopband). So if you're using the low pass filter to block undesirable noise, the low pass filter will only add lag to those high-frequency noise signals (not a big deal) and not add very much lag to the low-frequency​ signals you want.
@601106790
@601106790 4 жыл бұрын
HI Brain Douglas could you please make some vedios about filters in control systems? I am looking forward to studying them @Brain Douglas
@jafariarshadbarg6945
@jafariarshadbarg6945 2 жыл бұрын
I want the simulation file of adjusting the pid fines by the pso algorithm using the three-phase induction motor optimization method by direct torque control. Can anyone help?
@moromoro1839
@moromoro1839 5 жыл бұрын
thanks
@CaptnCall
@CaptnCall 5 жыл бұрын
"Thinking makes my head hurt" I now know how Ralphie on the Simpsons feels.
@animafun5696
@animafun5696 10 ай бұрын
where does the 90 degress come from in 5:10
@DmpDk
@DmpDk 2 жыл бұрын
Chilling late night watching the videos, learning a ton, love the blackboard animations *Video hits **2:30**, My entire world turns incandescent hot glowing white* JEEEZUUUSSS FAAAACK MAAH POOR RETINAS!! Anyway, love your video's, learning a ton
@nicholasn.2883
@nicholasn.2883 3 жыл бұрын
I didn’t know this was like whole thing.
@sorooshkeivanfard6383
@sorooshkeivanfard6383 3 жыл бұрын
very very bombe
@nabilandadamslaboratory3422
@nabilandadamslaboratory3422 3 жыл бұрын
How would I implement a low pass filter in a digital PID controller?
@N00B283
@N00B283 3 жыл бұрын
With an FIR or IIR filter. Pre requisite would be discrete maths and knowledge on transfer functions, Laplace transform and z-transform. If you wan’t to be able to do it yourself without the aid of a program. But really by then you should probably be studying electronics engineering or control engineering 😛 but really this stuff is 5th semester stuff
@muhammadgamal9071
@muhammadgamal9071 2 жыл бұрын
How to choose the value of N ??
@kunalsalvi8382
@kunalsalvi8382 6 жыл бұрын
Hey Brian, love your videos. But could you make the background white so it's easier to see? Anyways, great video 👌
@Cars0ndh
@Cars0ndh 5 жыл бұрын
You could try inverting the colors on your monitor to make the background white.
@loaymassalha8066
@loaymassalha8066 5 жыл бұрын
Thank you Brian How can we use PID block to calculate a signal derivative And may you explain with examples Hope you can explain about Feedforward control together with Feedback controller (I need to improve an existing feedback steam pressure control by adding a feedforward control part acting on steam flow measurement)
@BoneAppleTea
@BoneAppleTea 3 жыл бұрын
**Click** Noice!
@jateenbhagat5496
@jateenbhagat5496 4 жыл бұрын
isn't the derivative wrong 5:20
@Vivenk88
@Vivenk88 4 жыл бұрын
No. Derivative of sine is cosine. Cosine can also be expressed as a phase shifted sine. It's the same he's used there.
@Green-zw9pv
@Green-zw9pv 3 жыл бұрын
😭 rocket science
@aslamaddoor2522
@aslamaddoor2522 4 жыл бұрын
Hey bro What is your degree What about your education??
@aslamaddoor2522
@aslamaddoor2522 4 жыл бұрын
I am just curious!!
@lululu111
@lululu111 4 жыл бұрын
low pass filter
@noahd8673
@noahd8673 3 жыл бұрын
This video was really confusing. Why did we start taking derivatives of frequency’s, when before we were taking derivative of the difference between actual and desired value? also when u were talking about low pass filters where u talking about hardware or software? cause it seemed like hardware but then u said we are multiplying the low pas filter by the derivative, which also made no sense just by itself, which seems like software, and then u started talking about wiring things in parallel and series which made me think hardware, but you started doing more math which made me think software.
A PID Tuning Guide | Understanding PID Control, Part 4
12:05
PID vs. Other Control Methods: What's the Best Choice
10:33
RealPars
Рет қаралды 104 М.
ОДИН ДОМА #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Did you find it?! 🤔✨✍️ #funnyart
00:11
Artistomg
Рет қаралды 116 МЛН
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 97 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 103 МЛН
PIDs Simplified
13:07
SiieeFPV
Рет қаралды 281 М.
How to control a DC motor with an encoder
9:30
Curio Res
Рет қаралды 411 М.
What Is PID Control? | Understanding PID Control, Part 1
11:42
MATLAB
Рет қаралды 1,7 МЛН
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 721 М.
Everything You Need to Know About Control Theory
16:08
MATLAB
Рет қаралды 502 М.
What is a PID Controller? | DigiKey
22:19
DigiKey
Рет қаралды 60 М.
PID Math Demystified
14:38
Scott Hayes
Рет қаралды 458 М.
Apple watch hidden camera
0:34
_vector_
Рет қаралды 39 МЛН
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 15 МЛН
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 1,8 МЛН
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 8 МЛН
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 6 МЛН
⌨️ Сколько всего у меня клавиатур? #обзор
0:41
Гранатка — про VR и девайсы
Рет қаралды 552 М.