PID Balance+Ball | full explanation & tuning

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

Комментарии •

  • @ELECTRONOOBS
    @ELECTRONOOBS  5 лет назад +22

    Follow me on FACEBOOK for more: facebook.com/Electronoobs
    help me on Patreon: www.patreon.com/ELECTRONOOBS

    • @ahmdabdallah2132
      @ahmdabdallah2132 5 лет назад +1

      Electronoobs 🔴 What Is Islam? ⚠️
      🔴 Islam is not just another religion.
      🔵 It is the same message preached by Moses, Jesus and Abraham.
      🔴 Islam literally means ‘submission to God’ and it teaches us to have a direct relationship with God.
      🔵 It reminds us that since God created us, no one should be worshipped except God alone.
      🔴 It also teaches that God is nothing like a human being or like anything that we can imagine.
      🌍 The concept of God is summarized in the Quran as:
      📖 { “Say, He is God, the One. God, the Absolute. He does not give birth, nor was He born, and there is nothing like Him.”} (Quran 112:1-4)[4] 📚
      🔴 Becoming a Muslim is not turning your back to Jesus.
      🔵 Rather it’s going back to the original teachings of Jesus and obeying him.

    • @mm_ca4mgn
      @mm_ca4mgn 5 лет назад

      puedes ponerle subtitulos porfavor.

    • @brunsniggel
      @brunsniggel 5 лет назад +2

      Did you try reading a couple of distance measurments and f.ex averaging the result? Might be able to smooth out the noise from the sensor

    • @KeithOlson
      @KeithOlson 5 лет назад +1

      ​@@ahmdabdallah2132 ...except Allah is NOT Yahweh--they follow two COMPLETELY different ideas of justice, for example--nor did Jesus teach what Mohammed did; quite the opposite, in fact. For example, Jesus allowed Himself to be killed for His beliefs, while Mohammed killed others for his. (I won't reply further, as the original post was religious spam, but lies must not be allowed to stand unprotested.)

    • @featherbrain7147
      @featherbrain7147 5 лет назад

      I like the fact your code does not use a library, so the computation is easily visible.

  • @uatiger1
    @uatiger1 4 года назад +23

    Very Thankful to you brother. I am an Electrical Engineering graduate and I have studied Control Systems extensively in my degree. I studied the mathematics of PID controllers in excruciating detail. And never fully understood it and could never apply it in practice until I watched this video of yours. Hats off man.

  • @cuturbs
    @cuturbs 5 лет назад +16

    I usually don't leave a comment on videos, but man, this one is gold. I'm an almost graduaded eletrical engineer and I took control classes. They were full of math and theory and lacked pratical exemples and your explanation is flawless. Just earned a new subscriber. Keep up this excelent work!

  • @dave4882
    @dave4882 15 дней назад

    As a controls technician, this was explained in detail in my classes. The number of engineering students comenting on this says a lot to me. This is a pretty good explanation of pid control. 4 things id like to comment on. The seesaw set up is a bit flawed, in that a response of say 5% matters a lot more when the ball is at the end of the balance beam than when its at the center. So non linear control situation here. 2. The use of a rotating servo utilizing a crank(the disk, is set up as a crank) also creates a nonlinear situation. These 2 items are probably the cause of some of your oscillations.
    3. You showed it, but didn't comment on it much, that there is a sweet spot in most control loops. Outside of that sweet spot, it can become unstable. When you stopped the ball in the center at 8:45, you placed the loop back into its sweet spot and let the look regain control. You can tune a loop to control over a wider area, but lose fine control at the set point. Some loops will actually have more thsn a single set of pid values so that once a process upset causes the controled variable to get out of that sweer spot, a better set of pid values is used to regain control, until the tighter control values can once again be utilized. 4. Utilizing a small fan to blow on the ball would have been a good demonstration as to what a loop will do under a process load situation. When using only 1 control type.

  • @bogdanmarinescu78
    @bogdanmarinescu78 5 лет назад +8

    I've read quite a few PID tutorials in the past and they helped me understand how PID works, but this is still by far the best explanation of PID that I've ever seen, and now I understand PID even better. Thanks and keep up the good work!

  • @johnschmidt874
    @johnschmidt874 5 лет назад +369

    I think it's the best explanations of PID control concept i've ever had. It didn't dive into mathematical model, but it gave concept of how PID works. It's good if you make another video on how to apply filters on the system.
    Thanks for making this awesome video mate.
    Edit: you've got a new subscriber here.

    • @Evgen-Evgen-Evgen
      @Evgen-Evgen-Evgen 5 лет назад +2

      Yeah

    • @MrScorpnok
      @MrScorpnok 5 лет назад +4

      This controller uses the ideal formula for D i think. If the setpoint is changed from a value to another (or the measured value...)in this case if the ball is moved from one point to another, the difference between measure and setpoint will instantly change and so the D will jump up to infinite for a moment (error-previousError/TIME)... In reality a filtration constant is needed. The shaking in this is probably is due to te inaccuracy of the measuring device (the measurement value jumps in steps instead of smooth rise/lowering) for that you'll need the filtration timeconstant, which will limit the jump of the D-control. Don't really know how to explain better without bringing laplace-functions to the table... Laplace functions are imo the easiest way to show the principle but i'd have to explain how they work...

    • @MrScorpnok
      @MrScorpnok 5 лет назад +4

      So, lets assume the system in this video checks the balls position every 1 ms and the accuracy of the measurement is 5mm. If the ball moves really slow, lets say it is 20mm away... it can move a few mm (to 22mm) before the measurement device reacts, and when it reacts (at 23mm), it'll think it has moved to 25mm. Now that the last measurement before the change was 1ms ago, the derivate part calculates 5mm/1ms, even tho the ball would be just barely rolling. The speed calculated with these values ends up being 5m/s. This makes the excessive back-n-forth movement. I think you might have already figured out why the filtration is needed but anyways... I was bored so I explained anyways :D also this didn't help at all with what you were asking which was HOW to make the filtration XD

    • @MrScorpnok
      @MrScorpnok 5 лет назад +5

      Elimination of derivative kick is a good term to google

    • @akkudakkupl
      @akkudakkupl 4 года назад +1

      @@MrScorpnok You can also just get rid of the D term if you are okay with a bit of overshoot. Most real life process automation just ditches the D term because it has destabilizing properties :D

  • @miiroderrick8821
    @miiroderrick8821 4 года назад +1

    Was researching about PID temperature controller, I found my self on your video, then I wanted to get more explanation on PID control systems, RUclips brought me here surprised you're the same person to offer both my interests and I don't need any extra video. Honestly, you're the best I have ever seen in electronics.
    Thanks for the simple and creative illustrations.

  • @final0915
    @final0915 3 года назад +5

    it’s 2:39am in the UK and I need to get up at 6:30am. This has made my day already! thank you so much for putting this together.

  • @WillHenson2009
    @WillHenson2009 5 лет назад +18

    One of the best practical demonstrations of PID I've ever seen, fantastic!

  • @clairecelestin8437
    @clairecelestin8437 Год назад +2

    Seeing the behavior of each component in a real system made it absolutely clear what each expression does, and how they work together to hold the system at a specific value. This was a really great demonstration.

  • @PhilippeCarphin
    @PhilippeCarphin Год назад

    I spent at least an hour last week trying to find a video on PID control for my friend and none of them including the one I selected were as good as this so I'm gonna send him this one immediately.

  • @mibrahim4245
    @mibrahim4245 4 года назад +3

    if you explain it simply, you understand it !!
    YOU'RE AWESOME explaining the PID parts ..
    - Mechatronics engineer

  • @ranashreyas
    @ranashreyas 5 лет назад +7

    This was such an amazing explanation, mostly because you used a physical model and tested it; no other tutorial has actually implemented it. Thank you!

  • @defenestrated23
    @defenestrated23 5 лет назад +21

    Heckin' fantastic. I've spent countless hours on PID theory and programming. This is hands-down the best example I've seen. Insta-subscribed.

  • @Octagon-514
    @Octagon-514 5 месяцев назад

    In my opinion this is one of the best PID explanation videos on youtube, Simple, graphic and understandable! Great video!

  • @mmdnaderi7183
    @mmdnaderi7183 5 лет назад +130

    best explanation ever ! thank you again

  • @OsoMagna
    @OsoMagna Год назад

    Embedded control system engineer here. This is an excellent tutorial. Even Bob Pease would agree, while arguing you could replace the Arduino with a quad op amp.

  • @harshdesai1932
    @harshdesai1932 5 лет назад +5

    You Explained this in best way than any youtuber can explain. You have cleared my so many doubts. You are a genius. Keep Spreading knowledge. I really really appriciate you man.

  • @IncroyablesExperiences
    @IncroyablesExperiences 5 лет назад +78

    Great, when you really understand these things you always want to go further, not as a teacher that thinks he understood.

    • @RiteshNEVERUNIFORM
      @RiteshNEVERUNIFORM 4 года назад +3

      I really needed that

    • @ramonmorales4937
      @ramonmorales4937 3 года назад +3

      bruhhh my teacher doesn't want us to understand, he just want to cover the signature, even when he is a doctor in control systems.
      We know how to design a PID in math but not in real plants LOL

    • @justineloi1234
      @justineloi1234 3 года назад +3

      Apparemment je ne suis pas le seul français ici !

  • @abhiramghanta9060
    @abhiramghanta9060 11 месяцев назад +1

    this is one of the best examples that clicked for me

  • @edgeeffect
    @edgeeffect 5 лет назад +4

    I've read about the theory several times without fully understanding but this simplified experiment makes it all very clear..... great stuff.

    •  4 года назад

      I know right! I totally agree.

  • @GuyFromJupiter
    @GuyFromJupiter Год назад +7

    Higher gain values make for a faster reacting system, but they also tend to make the system very unstable if raised too high. This is especially true in systems with a considerable amount of dead time, which is the time from the PID changes its output to when there is a response from the system as measured by the sensor. This is why PID controls always have to be tuned for an optimal balance of performance and stability.

  • @nieldewet5315
    @nieldewet5315 5 лет назад +3

    What a brilliant and intuitive explanation. No lecturer of mine could ever explain it like this.

  • @wikrap1
    @wikrap1 5 лет назад +1

    You actually closed half year of lectures on my studies in 3 minutes... :D Very practical approach.

  • @donstillwell9894
    @donstillwell9894 5 лет назад +1

    Excellent demonstration of PID control. We are going to build your PID project to use in our maintenance training, where I work, to hopefully give our maintenance team members a better understanding of how a PID control work and how to tune a PID loop. Thank you very much for taking the time to make the video and sharing it with us!!

  • @jiangxu3895
    @jiangxu3895 4 года назад

    Best PID explanations. I’ve gone through many tutorials, none of them explained well to show the importance of each parameter. It is especially difficult for me to understand the integrate of distance, when the differentiation of distance is equal to speed, which is much easier to understand. Anyway, great video. Keep up!

  • @ShopperPlug
    @ShopperPlug 2 года назад

    This is really a cool PID example, like the fact it is using a LIDAR. This is the best explanation of PID and how it works.

  • @RafaelKarosuo
    @RafaelKarosuo 3 года назад

    As many other have said, this 14 minutes helped understand the PID control implementation in code, way better than a semester of my automation and control introduction. Thanks

  • @ravindrasarak2007
    @ravindrasarak2007 5 лет назад +3

    PID was always a tough topic to visualise but your demonstration made it really easy.
    Thank you so much.

  • @sumedhburbure4173
    @sumedhburbure4173 4 месяца назад

    This is the best video on youtube to explain PID controller concept visually!

  • @mrtspirit
    @mrtspirit 10 месяцев назад

    I have watched many videos however non of them put those keywords together. " While the P value is small, hence no error to be sensored to create any movements ,as a result of no changes also No D action to take a place " loved it .

  • @chaussebenjamin
    @chaussebenjamin 3 года назад +1

    This is the best PID explanation I have seen so far! Thank you!!!

  • @Barxxo
    @Barxxo 4 года назад +1

    One of the best PID- explanation i found so far. Thank you.

  • @robbgosset674
    @robbgosset674 3 года назад

    This is by far one of the best explanations of how PID control works. Clear, concise and covers all the encessary information. Thanks for making this video!

  • @eritronc
    @eritronc 5 лет назад

    I hope i was told the PID system that way at the university! In 13 minutes i learn what i couldn't on 7 years! Your application is so clear. Thank you!!

  • @ChillyFries444
    @ChillyFries444 10 месяцев назад

    Best PID video every , semesters worth of college courses in Control Systems never got this into me dude, great job

  • @santopino2546
    @santopino2546 5 лет назад +7

    Hi, I work with PID controllers in the process industry 32 years now, to help simplify things, from experience, in reality a PI works fine with most processes,
    The D component may give an extra help in some temperature controllers.

    • @JonathanWaltersDrDub
      @JonathanWaltersDrDub 5 лет назад +1

      My understanding is that D will help protect from overshoot. This will help eliminate wasted energy. I see this could be useful in driving economy or other autonomous vehicle systems. What do you think?

    • @PowerSports
      @PowerSports 5 лет назад

      @@JonathanWaltersDrDub cruise control is a PID system in newer cars

    • @JimmyVelghe
      @JimmyVelghe 5 лет назад

      Indeed PI is in general enough to get a system stable, I only use D with very agressively changing processes. That being sayd good base explanation of PID control.

  • @DhruvJaiswal-q1b
    @DhruvJaiswal-q1b 4 месяца назад

    I have to say man, you just instilled some pretty decent curiosity for control systems in me through this video. It is a very big thing for me as being an Electrical Engineering Major I was always terrified of control systems and control theory. Great video Keep it up.

  • @kun_fu_taco4775
    @kun_fu_taco4775 4 года назад

    You are a life saver my friend! We have a system that control volumetric flow and we are trying to keep the flow rate steady at very low flows, this is all controlled by a PID system and I had a hard time understanding how to input the values. This really helps! "If the error is too small, the proportional won't affect" This seems true because we have a harder time controlling the lowest flows which is probably not being detected by the system.

  • @Debraj-HTC
    @Debraj-HTC 8 месяцев назад

    This video clearly explains the PID, studying each of the P, I, and D separately made me get it finally.

  • @mcdran4549
    @mcdran4549 Год назад

    Thanks! This helped me so freaking much!!

  • @Amir-kz6yq
    @Amir-kz6yq 5 лет назад +50

    I see you have paid attention at your control systems' lectures

  • @ezion67
    @ezion67 5 лет назад

    This is about the best demo of how PID control works ever.

  • @Mustafff76
    @Mustafff76 5 лет назад +2

    I've never understood PID well enough, until now :D Thank You!

  • @muqarrab8736
    @muqarrab8736 5 лет назад +4

    That explanation was really good, a noob as well as a professional could understand what you were saying. Subscribed

  • @Green__Man
    @Green__Man 2 года назад

    Damn dude you're the fifth video I've watched on this subject today but the first to actually make sense 🔥

  • @theflyingdutchman787
    @theflyingdutchman787 5 лет назад +1

    The best PID explanation I’ve found on the internet! Well done.

  • @gildedbear5355
    @gildedbear5355 3 года назад +1

    Never had issues understanding the P or D part, but I was always a mystery. THANK YOU!

  • @MatsMatsuo
    @MatsMatsuo 7 месяцев назад

    Thank you very much, this was one of the videos that helped me to, finally today, develop my PID controll for BALL & PLATE. You have no idea on how much you helped me. Thank you!

  • @hugbearsx4
    @hugbearsx4 5 лет назад +44

    Great! So now it's time for a video on PID tuning, right? That is, finding the optimal values for p, i and d parameters.

  • @MrJordot7
    @MrJordot7 5 лет назад +1

    I work with PID control quite often yet this is the best way I've heard it explained!
    Fancy doing a slight development of the same experiment, but put a fan at one end that you can direct towards/away from the ball to model an outside influence? When you use a PID for cooling, the temperature of the coolant can change, which means your actuator may need to start providing 'more' even though it was at equilibrium.

  • @electronics.unmessed
    @electronics.unmessed Год назад +1

    Nice PID control demonstration. Thanks!

  • @77Chester77
    @77Chester77 3 года назад

    This was my first video in the field of controllers and now I feel that I already have a rough idea what P-, I- and D-Values do.
    Thank you very much!

  • @MABdrone
    @MABdrone 3 года назад +1

    Very nice! The quadcopter pilots always struggle with PID concepts, I think this can help a lot!

  • @brandonmartin7779
    @brandonmartin7779 3 года назад

    This is hands down the best illustration of PID control I've seen! Great work!

  • @KrisKasprzak
    @KrisKasprzak 3 года назад

    From one DIY RUclipsr to another... well done.

  • @tme2912
    @tme2912 5 лет назад +23

    You forgot to explain how the banana in the key of PID process. ;)
    Thank you very clear explanation

    • @KshitijKale
      @KshitijKale 4 года назад +5

      for anyone wondering; the banana is for scale

    • @unchartedgroupielove
      @unchartedgroupielove 3 года назад

      @@KshitijKale because the ruler on the side wasn't clear enough haha

  • @thesimonien
    @thesimonien 3 года назад +1

    Best pid explanation i ever got, thank you !

  • @te9781
    @te9781 Год назад

    Best PID explanation I ever watched. THANK YOU

  • @damiangames1204
    @damiangames1204 7 месяцев назад

    taking a control course at uni now. this helps a lot with getting the feel of what each does very nicely!

  • @babdie
    @babdie 5 лет назад

    For the first time understood ,what actually is PID , great application and good video man

  • @AYPAK
    @AYPAK 3 года назад

    I never had this realization of PID controller. Really appreciate the effort you put in this video

  • @nirmalroot
    @nirmalroot 3 года назад

    Bro fantastic explanation this video really helps me a lot I searched every video and ask my friends to explain me all r saying error 1 etc I don't know maths after watching ur video I finally understand with example
    Thankyou for ur video bro

  • @illosuth
    @illosuth 4 года назад +1

    Let me thank you. For the very first time I understand what exactly the Derivative part does!!

  • @albrosTeam
    @albrosTeam 5 лет назад

    I found this video very clear to demonstrate the PID concept and the isolated effect of each feedback component. Thank you for sharing

  • @nylapiriri1147
    @nylapiriri1147 3 года назад

    One of the best experiments on PID control.

  • @mehmetkayhan2465
    @mehmetkayhan2465 2 года назад

    Congrats for your great effort. It's the best explanations of PID Control ever I 've seen. Thanks a lot.

  • @TexanMonkey
    @TexanMonkey Год назад

    Very good video! It really helped my robotics students understand PID controls!

  • @goldrushjkgh
    @goldrushjkgh 5 лет назад +85

    Damn this reminds me of a subject called Control Systems in Engineering... That subject though... All the sleepless nights to pass that subject...

    • @snap-off5383
      @snap-off5383 5 лет назад +8

      That was my elective at DeVRY analog and digital controls. Our professor would drink with us after class at the local bar. . .

    • @goldrushjkgh
      @goldrushjkgh 5 лет назад +5

      @@snap-off5383 you got cool professors over there I see

    • @saddle1940
      @saddle1940 5 лет назад +3

      My favourite subject, but this video explained it much clearer over a couple of minutes than I ever got from sitting those classes. Mind you, I probably understand it much better here and now because of the classes though.

    • @goldrushjkgh
      @goldrushjkgh 5 лет назад +1

      @@saddle1940 same here, watching this guy's videos on RUclips for free seems much better than paying for sitting in classes lol

    • @fluffigverbimmelt
      @fluffigverbimmelt 5 лет назад +6

      Same here. Nearly failed my exam but was always interested in the topic itself.
      I only found joy in Control Engineering when I did my thesis there. Very different from theoretical lectures

  • @saketanand44
    @saketanand44 3 года назад

    really amazed to see practical aspect of whatever we study theoretically...Thanks

  • @surajmate8047
    @surajmate8047 5 лет назад

    thanks sir
    I think it's the best explanations of PID control concept i've ever had.
    please keep teaching and helping us thank you so much
    im from india and im big fan of your electronics projects
    again thanks

  • @ConsultingjoeOnline
    @ConsultingjoeOnline 5 лет назад +2

    Awesome tutorial. I do hvac programming and I write pids for temp control. This is a great video for understanding the P, I and D. Keep it up.

  • @UseR-ne8fm
    @UseR-ne8fm 3 года назад +1

    Thats a tremendous idea, thank you! I will pass this to my students ;)

  • @tunahankaratay1523
    @tunahankaratay1523 5 лет назад +1

    Best PID video I've ever seen!

  • @karantarade
    @karantarade 5 лет назад +2

    I'm sending this video to every professor, teacher, tutor who is/was teaching control systems.

  • @RamKumar-kv1fx
    @RamKumar-kv1fx Год назад

    Bro explained better than my Prof. Although I could solve all theoretical problems to clear the sem. I understood the actual meaning of the I and the D in PID only today, i understood P easily 😅

  • @quantomic1106
    @quantomic1106 5 лет назад +1

    Best PID demo I've seen. Keep up the good work bud!

  • @ranganatennakoon
    @ranganatennakoon 5 лет назад +1

    The best demo of PID I've seen and thank you very much !!!

  • @glen_nz
    @glen_nz 4 года назад

    Been trying to understand this for a while, thanks for simplifying the explanation, it really helped. You've gained a subscriber.

  •  4 года назад +1

    Awesome channel! One of the best practical explanations of PID control I've seen!

  • @CollinBaillie
    @CollinBaillie 4 года назад

    First explanation I've seen that made me understand the Derivative is based on the rate of change of the Error, not just the Error, or possibly just rate of change for a variable which effects a change in error (but which is used without involving the actual error)

  • @Thunderchops1984
    @Thunderchops1984 Год назад

    Great video. Studied this at uni and this explains the terms practically and very clearly. Nice one. 👍

  • @Z3R0-FC
    @Z3R0-FC Год назад

    I hated my systems control class cuz I could never visualize the significance of any of this. This video sparked my interest to relearn it

  • @charmingali34
    @charmingali34 4 года назад +2

    Very nice 👌 I don't work with PID but you remind of past times when we studied Controls.

  • @markmaker2488
    @markmaker2488 4 года назад

    Thank you, I must agree that this is the best example and explanation of PID ever.

  • @paulbrouyere1735
    @paulbrouyere1735 Год назад

    You have a new subscriber. 25 years ago I made a solar follower with some light receiving resistors. Didn’t function very practically, could be improved by this PID system. Scheme was somewhere end the 90’s published in Elektuur (Dutch electronics magazine)

  • @JamesFraley
    @JamesFraley Год назад

    Amazing videos with the best PID explanation I've seen.

  • @OsoPolarClone
    @OsoPolarClone 5 лет назад

    A fantastic educational video that explains and demonstrates EACH PART of the equation and how each contributes to the solution. Well done!

  • @Arthur-rh9tf
    @Arthur-rh9tf 5 лет назад

    Wow probably the best explaination of pid controllers. Thank you good sir

  • @worldvision8645
    @worldvision8645 4 года назад

    We love your channel and you inspire us to start our own channel about control theory, system identification and computational intelligence. Love your videos!

  • @maximebegin1454
    @maximebegin1454 Год назад

    That video explain in the first minute the purpose of PID. 👏

  • @DennisMurphey
    @DennisMurphey Год назад

    Outstanding I had to slow your voice down but it is an excellent lecture and demo Practical to Applied Science always works better for learning Thank You, Dennis

  • @Stefan_Van_pellicom
    @Stefan_Van_pellicom 5 лет назад +20

    Excellent explanation of PID !
    Now explain the banana.

  • @brandonmeyer2922
    @brandonmeyer2922 4 года назад +3

    Absolutely love this clear, concise, simple explanation!! Been watching your videos for a while now and love them all. Keep up the great work!!

  • @stevelee7843
    @stevelee7843 2 года назад

    One of the best demonstration of PID! kudos 👏🏻

  • @Chouby3
    @Chouby3 Год назад

    Wow such a great explanation with real life application. Love it! Thank you

  • @SecurityDivision
    @SecurityDivision 5 лет назад +1

    Damn probably the best demonstration! And also it explains the meaning of the formulas.

  • @Leafyfpv
    @Leafyfpv 5 лет назад +1

    I havent watched this through yet but can tell its a great instructional video... Also
    That circuitboard background is SICK!!!!!

  • @kenlipper874
    @kenlipper874 5 лет назад +1

    Thanks for that - really cool! I've been trying to get a grasp on PIDs as applied to my racing quadcopters. Your excellent experiment and explanation really helped.

  • @philkennedy342
    @philkennedy342 5 лет назад

    Thanks for the share a nice intuitive way of explaining pids something I've not fully understood till now....