PID Balance+Ball | full explanation & tuning

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 665

  • @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 18 днів тому

    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.

  • @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.

  • @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.

  • @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, UA-cam 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.

  • @WillHenson2009
    @WillHenson2009 5 років тому +18

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

  • @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

  • @mibrahim4245
    @mibrahim4245 4 роки тому +3

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

  • @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.

  • @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.

  • @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!

  • @abhiramghanta9060
    @abhiramghanta9060 11 місяців тому +1

    this is one of the best examples that clicked for me

  • @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!

  • @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.

  • @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 .

  • @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.

  • @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.

  • @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.

  • @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.

  • @chaussebenjamin
    @chaussebenjamin 3 роки тому +1

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

  • @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!

  • @mmdnaderi7183
    @mmdnaderi7183 5 років тому +130

    best explanation ever ! thank you again

  • @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.

  • @wikrap1
    @wikrap1 5 років тому +1

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

  • @electronics.unmessed
    @electronics.unmessed Рік тому +1

    Nice PID control demonstration. Thanks!

  • @nieldewet5315
    @nieldewet5315 5 років тому +3

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

  • @sumedhburbure4173
    @sumedhburbure4173 4 місяці тому

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

  • @Barxxo
    @Barxxo 4 роки тому +1

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

  • @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

  • @thesimonien
    @thesimonien 3 роки тому +1

    Best pid explanation i ever got, thank you !

  • @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 !

  • @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.

  • @ezion67
    @ezion67 5 років тому

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

  • @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.

  • @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.

  • @Amir-kz6yq
    @Amir-kz6yq 5 років тому +50

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

  • @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!!

  • @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.

  • @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!

  • @damiangames1204
    @damiangames1204 7 місяців тому

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

  • @ChillyFries444
    @ChillyFries444 10 місяців тому

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

  • @ravindrasarak2007
    @ravindrasarak2007 5 років тому +3

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

  • @tunahankaratay1523
    @tunahankaratay1523 5 років тому +1

    Best PID video I've ever seen!

  • @KrisKasprzak
    @KrisKasprzak 3 роки тому

    From one DIY UA-camr to another... well done.

  • @nylapiriri1147
    @nylapiriri1147 3 роки тому

    One of the best experiments on PID control.

  • @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.

  • @mcdran4549
    @mcdran4549 Рік тому

    Thanks! This helped me so freaking much!!

  • @theflyingdutchman787
    @theflyingdutchman787 5 років тому +1

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

  • @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!

  • @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)

  • @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)

  • @Mustafff76
    @Mustafff76 5 років тому +2

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

  • @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 🔥

  • @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

  • @te9781
    @te9781 Рік тому

    Best PID explanation I ever watched. THANK YOU

  • @saketanand44
    @saketanand44 3 роки тому

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

  • @UseR-ne8fm
    @UseR-ne8fm 3 роки тому +1

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

  • @brandonmartin7779
    @brandonmartin7779 3 роки тому

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

  • @muqarrab8736
    @muqarrab8736 5 років тому +4

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

  • @babdie
    @babdie 5 років тому

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

  • @gildedbear5355
    @gildedbear5355 3 роки тому +1

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

  • @illosuth
    @illosuth 4 роки тому +1

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

  • @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!

  • @stevelee7843
    @stevelee7843 2 роки тому

    One of the best demonstration of PID! kudos 👏🏻

  • @quantomic1106
    @quantomic1106 5 років тому +1

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

  • @MABdrone
    @MABdrone 3 роки тому +1

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

  • @ranganatennakoon
    @ranganatennakoon 5 років тому +1

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

  • @AYPAK
    @AYPAK 3 роки тому

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

  • @JamesFraley
    @JamesFraley Рік тому

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

  • @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!

  • @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

  • @tcarney57
    @tcarney57 3 роки тому +1

    Good and very-clear demonstration. BTW, what's the banana for? I've noticed a few electronics and radio UA-camrs putting bananas in their videos. Why?

  • @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

  • @justorymes
    @justorymes 3 місяці тому

    I could see another PID being useful for reaction time required based on the change in position (delta) of the ball that responds much faster to larger changes and slower at smaller changes, also the set point might benefit from a target window to keep the jitters down as i suspect the distance sensor is making rapid changes for minor movements.

  • @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 😅

  • @charmingali34
    @charmingali34 4 роки тому +2

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

  • @Thunderchops1984
    @Thunderchops1984 Рік тому

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

  • @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.

  • @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

  • @francoisguyot9770
    @francoisguyot9770 2 роки тому

    That was very gratifying! I loved the balancing ball idea.

  • @maximebegin1454
    @maximebegin1454 Рік тому

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

  • @eoinprendergast9096
    @eoinprendergast9096 3 роки тому +1

    Can I use your video on AIST presentation?

  • @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

  • @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.

  • @Arthur-rh9tf
    @Arthur-rh9tf 5 років тому

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

  •  4 роки тому +1

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

  • @filmogosc
    @filmogosc 3 роки тому +1

    Awesome explanation, thank you

    • @jasperzoey1912
      @jasperzoey1912 3 роки тому

      With the help of..DR RORPOPOR HERBAL ON UA-cam i have been cured totally from PID....🤩🤩

  • @strydomobile
    @strydomobile 5 років тому

    One of the best explanations I've seen. Well done.

  • @markmaker2488
    @markmaker2488 4 роки тому

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

  • @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

  • @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!

  • @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 UA-cam 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

  • @SecurityDivision
    @SecurityDivision 5 років тому +1

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

  • @karantarade
    @karantarade 5 років тому +2

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

  • @JimK0QJC
    @JimK0QJC 3 роки тому

    Excellent demonstration. I will use this with students. Thanks you