Hardware Demo of a Digital PID Controller

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

КОМЕНТАРІ • 428

  • @AmitsLife
    @AmitsLife 3 роки тому +482

    Thank you for not using any music

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

      ua-cam.com/video/aOl4YwAGyVw/v-deo.html

    • @julians.2597
      @julians.2597 3 роки тому +7

      @@John-eh2zc not doesnt like music, doesnt like annoying background music in tech videos. Usually because one either cant listen to it atm or is already listening to their own music, or because the music used is really bad stock music

  • @pfaprado
    @pfaprado 7 років тому +741

    Man this is the best summary of PIDs an engineering student could get. Thank you!

    • @marcioandreyoliveira
      @marcioandreyoliveira 7 років тому +4

      Forastieri I second you.
      This demo is simply amazing. I loved it a lot .

    • @arduinoNube
      @arduinoNube  6 років тому +61

      I'm glad you found it helpful! I actually built this for a mechatronics class demonstration at Georgia Tech where I did my teaching practicum (TA) during grad school.

    • @jonatan01i
      @jonatan01i 6 років тому +1

      Thank you very much for sharing it with us!

  • @nialv7985
    @nialv7985 6 років тому +471

    That is a very expressive hand

    • @auzworld
      @auzworld 5 років тому +6

      Yeah..its like its got a life of its own !!

    • @vivekvenkatsubramaniam437
      @vivekvenkatsubramaniam437 4 роки тому +10

      I read it as 'expensive' and wondered why a prosthetic arm looked so real

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

      I read expensive too ^^😄

  • @nicolassoncini2266
    @nicolassoncini2266 4 роки тому +37

    I watched this video 4 years ago and now I'm doing my master's thesis on control and just today as I was thinking about it, it popped back into my recommended. Love it!

    • @arduinoNube
      @arduinoNube  4 роки тому +4

      Nicolas S. Thank you for taking time to leave a note. I hope your thesis goes well! Glad you found the video helpful!

  • @martinmiglio
    @martinmiglio 6 років тому +16

    I wrote a final paper on this concept for one of my math courses, yet this video explains the main idea in 3 minutes

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

    I heard about PID control from people in the BBQ world, but had no idea what it actually meant. Now, I am weeks away from getting a degree in Mechanical Engineering and I have a much better understanding. Your video really solidified everything and provides an excellent explanation of PID control. As a side project, I am going to build a PID controller to regulate temperatures of a smoker with the use of a fan.

  • @engvdo5297
    @engvdo5297 5 років тому +28

    It's amazing.
    till now we seen only formulas and heard something like PID. But, now we can understand practically how it's work
    Thank you so much

  • @quahntasy
    @quahntasy 4 роки тому +12

    *Finally in 2020 I found a hand that talks. Way explanatory video than people actually talking to explain*

  • @ColinMcNulty
    @ColinMcNulty 3 роки тому +19

    I was a Motion Control Engineer in my very first job 25 years ago, long before robots were cool like they are today.
    I worked on streamlined robotic arms inside wind tunnels, satellite tracking TV transmission vans, formula 1 racing car "4 poster" testing rigs, air-to-air missile testing systems, and tank tracked robots that would crawl inside nuclear reactors using neodymium magnets that hugged the surface so they could drive upside down held up by magnetism!
    At their core, all those projects worked because of PID control of DC motors. Some days I wish I'd staying in that industry... :-/

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

      Hi! Thanks for sharing your experience. Why did you leave the industry and where are you now?

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

    The idea of using a pendulum to demonstrate this is genius as it's so easy to imagine the movement in relation with underdamped and critically damped graphs in your minds eye

  • @PeteVree
    @PeteVree 8 років тому +234

    This is phenomenal. So cool that you've shared the code, etc. Thanks so much.

    • @arduinoNube
      @arduinoNube  8 років тому +28

      Np. Let me know if you find it useful. -G

  • @AUTEM_Industrial_Automation
    @AUTEM_Industrial_Automation 2 роки тому +1

    At GeorgiaTech, Atlanta, I've had the change to physical watch this demo in ME6405 course with J. Rogers. Great job Gregory ! 👍

  • @vilmondesribeiro4363
    @vilmondesribeiro4363 6 років тому +39

    Phenomenal, and congratulations, this will help our students to understand PID and closed loop control systems.

  • @gams101
    @gams101 6 років тому +3

    This is such a good demonstration about understanding the PID. I really wish I found out this video quite earlier when I was having a project in my Control System subject so that it would be less bloodier for my group.

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

    Currently working on a DIY PID controller for homebrewing, I have just finished some tests and also ran some auto-tuning methods (Ziegler-Nichols), now I have the maximum overshoot down to 0,1K, which is really nice. But boy, it takes time! The output is used as PWM control for an SSR with a cycle time of 5 seconds. It must be fun to work with a system that reacts so fast like yours, you get instant feedback and can tweak more or less in realtime. I think, I'll build something similar, just for fun!

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

      Hey man. Can you give some insigths and maybe some articles or content to implement a self tuning pid?

    • @chaitanyapatil7513
      @chaitanyapatil7513 2 місяці тому

      hey man please help me with this project

  • @rogerandersen7046
    @rogerandersen7046 5 років тому +7

    i kinda now want just this youtube channel to have loads of videos of strange electroprojects with this talketive hand.

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

    Damn this is the best explanation of PID I've ever seen and it's in under 3 minutes

  • @IncroyablesExperiences
    @IncroyablesExperiences 5 років тому +65

    Very clear, great job!

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

    I never quit knew how to prevent windup properly, i used to just reset the error when target was reached and it "worked" but was not how it should be done.
    Had a look at your code and now have a better understanding of how to do it

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

    This perfectly bridged the gap between the math and real world output! Thank you :)

  • @Aw4yed
    @Aw4yed 6 років тому

    man i never understand the pids but now with ur video it looks really easy

  • @RetroCarton
    @RetroCarton 8 років тому +6

    Very well explained video. It's a great project
    Maybe you should do a basic tutorial for dummies on the P, I and D effects on the control system, it would be a great idea

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

    Excellent stuff!
    I would add one extra feature: u = Kp*error + Ki*error_i + Kd*error_d + offset;
    Sometimes we have a deadband or the axis is fighting gravity; In reality, the Ki can never stabilise the axis.

    • @thegreatzoom5073
      @thegreatzoom5073 3 роки тому +3

      I don't see why it couldn't? The I term just keeps accumulating error and would end up reeling in that offset or deadband on its own right? And if it's oscillating over the point then the D term is supposed to dampen those oscillations.

    • @MatsMatsuo
      @MatsMatsuo 5 місяців тому

      @@thegreatzoom5073 Ki*Error_i can and will be enough to get to reference with propper Anti-windup, or, if necessary, with some sort of adaptive PID gain. Never heard of this "+offset", but it might be a thing, i just never heard of

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

    Great video, clear shows the function of PID.
    It is much better than many explanation videos with too many words and formulas.

  • @Tadesan
    @Tadesan 6 років тому +3

    I worked at a company where the PID control was referred to as Pissing In the Dark.
    Man those guys sucked. You rock!

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

      hehehe what is the name of that company?

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

      well it kinda is, you have to find the right parameters for it to work really well for your application, though once you find them it can be hella tight, though finding these controll parameters is an art and not really a science

  • @milindgulve9136
    @milindgulve9136 5 років тому +7

    This is one of the best Explanations for PID With practical meaning I have ever seen and understood. Thankyou !

  • @MrImmi34
    @MrImmi34 6 років тому

    One button, controls so many gains, frequency code... amazed.

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

    Best video on PIDs ! Short, well explained and covers all aspects of the subject.

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

    For high speed servos, it is common for the PID to be clocked at 6MHZ or more. Some applications are analog using 3 summed op amps. One for each component of PID. They are more difficult to tune. The Proportional is simple and can use a pot for gain. Derivative and Integral have both gain and time components which must be timed to the motor and load to be properly tuned. The gain is simple with a pot, but the time, involves changing capacitors, or changing the clock rate on a switched capacitor low pass filter, or other adjustable low pass filter.

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

    Best explanation of PID I've ever seen.

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

    best PID illustration video I have ever seen.

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

    Finally a great demonstration to help us visualize these ideas!

  • @naboulsikhalid7763
    @naboulsikhalid7763 6 років тому

    you saved my day. I couldn't wish more. Now I saw all these constants working, their effects in real time. thank you very much

  • @MunamNaseer
    @MunamNaseer 7 років тому

    Thank you so much Mr.Gregory L. Holst , I salute you for such a great heart to share everything , it will help us to understand working and implementation of PID controller. You are at place of my professors. I will start working on your efforts . Thank you thank u again.

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

    Dude, you nailed that! That looks perfect, and you didn't even fine tune the parameters but it still works so good...

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

    Finally after watching lot of videos about pid, your video helped me to understand pid easily.
    Thankyou

  • @camilomartinez1105
    @camilomartinez1105 6 років тому +6

    I love control theory, it's my favorite branch of electronic engineering
    Greetings from Colombia

  • @TeDoFwAr
    @TeDoFwAr 6 років тому +10

    Thank you. The missing info is found..... And all the code to build and explore further. Legend!

  • @zvikagivli7665
    @zvikagivli7665 5 років тому +6

    UA-cam was made for this kind of videos. GREAT!!!

  • @WofWca
    @WofWca 6 років тому

    Awesome. 10 hour version pls.
    Ok, just a little bit more would be enough.

    • @arduinoNube
      @arduinoNube  6 років тому

      I do take requests. :) thanks for the comment. As soon as I hit 1000 subscribers I’ll make another video. Which would you prefer 1) how to build and program a PID controller or 2) a more in depth run through of what I showed in this video? Reply with a 1 or 2 and I’ll make the one with the most votes.

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

      @@arduinoNube both, but if I had to pick just one I'd say #2. There's tons of libraries and example codes of PID controls for Arduino and other controllers out there, and it would be nice to have a good walk through explaining how to set it all up, but having the deepest and best understanding of the PID system itself can help with tuning and optimizing of any of those systems.

  • @melhariri6720
    @melhariri6720 7 років тому

    A brilliant video demonstration with clarity and simplicity...well done! Thanks for the contribution.

  • @acrobat9983
    @acrobat9983 7 років тому +20

    Probably the best PID Vid on UA-cam :)

  • @cyrelharris
    @cyrelharris 7 років тому

    Awesome demo. For me this is very informative and I recommend that everyone, using PID controls should watch this video.

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

    I couldn't understand PID controller how to use in real life. Perfect work! Thanks a lot :)

  • @natarajana.v4262
    @natarajana.v4262 4 роки тому

    Best explanation for a PID controller. Very practical and amazing.

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

    You actually deserve more than a million views until now :)

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

    Wow. Thanks for the video.
    Actually, my Final Project when in college is similar to this, but only Software simulation. And you make my dream come true!

  • @nosweat9841
    @nosweat9841 7 років тому

    Great illustration. I'll share it with my fellow techs.

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

    Excellent example of PID controller

  • @marlinderwall8873
    @marlinderwall8873 5 місяців тому

    I don't do control systems but I did IT work in refineries. Why control systems engineers needed advanced degrees makes a lot more sense now.

  • @MAYDAYDEEJAY
    @MAYDAYDEEJAY 6 років тому

    I don't think I've ever seen better explanation of PID :)
    Very Nice !

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

    Excellent teaching! Practical, hands-on and playful.

  • @damny0utoobe
    @damny0utoobe 6 років тому +3

    Love it. Great logical explanation. Makes control systems look easy

  • @wyvern4588
    @wyvern4588 6 років тому

    Amazing this system can control multi-copters with so much noise, multiple motors wind drag and infinite different forces at work.
    Now when this system wigs out, your drone is hell on blades.

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

      IIRC almost every drone controller already uses PID in their software.

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

    I have no idea what it is or what you said but it was fun to watch

  • @MrJacobbbo2
    @MrJacobbbo2 6 років тому +23

    If only my multi rotor was tuned so well.

    • @cetyl2626
      @cetyl2626 6 років тому

      I wonder if windup is a problem in multi rotors? I don't recall seeing that parameter.

    • @georgegx95
      @georgegx95 6 років тому +3

      @@cetyl2626 modern multirotor code has way more pid controller improvements than just windup, but for curiosity reasons here you go: github.com/betaflight/betaflight/search?q=windup&unscoped_q=windup

  • @junaidayaz6011
    @junaidayaz6011 6 років тому

    I just have to say.i have not learned all this in control systems in 6 months in my semester,as from this 3 mins video..Thanks man!

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

    Very useful video for learning PID technology.
    I just made Minecraft thermostat with it, thanks!

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

      Oh! Can you make a video/screencast and post a link?

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

      Working in progress

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

    This demonstration is what they must be showing in classrooms.

  • @MrBobWareham
    @MrBobWareham 6 років тому

    Very good demo of PID control nice demo hardware well made and executed

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

    Thank you very much for sharing your excellent work with all of us.

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

    Extremely awsome demonstration, great job!

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

    I dont know why i am here but is so satisfying

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

    so satisfying when it is set up correctly :)

  • @MuhammadHamza-ul5ky
    @MuhammadHamza-ul5ky 6 років тому

    Your demonstration is FAB. 👌 Thank you !

  • @deathpony698
    @deathpony698 6 років тому +2

    This is on par with a 400 level course I spent $3000 on... cool

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

    Very nice demonstration. Thank you. Many commented, that it's a good explanation, but it does not explain anything, it just shows it in operation. Is there more information about the exact setup, the motor, position sensor, controller, software?

  • @kaoshavoc
    @kaoshavoc 6 років тому

    Awesome. Wish i had seen this when i was making a pid out if an arduino.

  • @giovannibianchessi1578
    @giovannibianchessi1578 8 років тому

    Great, clean and instructive demo! Thank you.

  • @brodiemacleod69
    @brodiemacleod69 11 місяців тому

    Video so good you did all the teaching my proof needed when showing this to our entire lecuture lol

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

    This is very cool thanks for demonstrating!

  • @chrisbryden8102
    @chrisbryden8102 9 місяців тому

    An absolutely amazing demonstration and final result!!!

  • @maxounette-jv7dj
    @maxounette-jv7dj 6 років тому

    A masterpiece! It's good you made it silent, because if its needed we could be put on pause without having half a sentence ;)

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

    Now that is an awesome video. Thank you for doing this.

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

    Thanks for a video where every second tells! 3 min. of PID essence.

  • @techelevatesolutions
    @techelevatesolutions 6 років тому

    Fantastic work, thank you for taking the time to make this

  • @punpck
    @punpck 6 років тому

    great demonstration! the best on summary I've ever seen :)

  • @RodrigoCruz-iz3kb
    @RodrigoCruz-iz3kb 6 років тому

    Amazing! Your videos are helping me a lot in control theory!

  • @wackyvorlon
    @wackyvorlon 6 років тому

    Thanks for sharing your design and code!

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

    you bring to light for my embedded project! Thank you!

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

    Holy shit the last one is really satisfying

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

    wish we had this in college. Control was my least favourite subject because it was not very practical best explaintion of the material I have ever seen!!!!!!!!!!

  • @kunalpanchal7751
    @kunalpanchal7751 7 років тому

    Awesome presentation of control theories.. Loved it..!!

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

    Great demonstration. Suitable for an introduction course in control. I subscribed your channel.

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

    Great demo!

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

    Great work Gregory

  • @technoshamanarchist
    @technoshamanarchist 8 років тому

    Very nice and explanatory demonstration. Thank you :)

    • @arduinoNube
      @arduinoNube  8 років тому +5

      +technoshamanarchist Hey, no problem. I'm glad you liked it. Maybe if there's enough interest, I'll do another video on how to build and program it. :)

    • @technoshamanarchist
      @technoshamanarchist 8 років тому +1

      +Gregory L. Holst That would be great :)

    • @PorkyFighter
      @PorkyFighter 8 років тому

      +1 I would love that!

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

    super helpful! though god pids are such hell to make and account for the numerous errors and stuff!

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

    Amazing execution, well done

  • @esnatzea
    @esnatzea 6 років тому

    Thank you! Really awesome and very good to understand the concept!

  • @danielc4361
    @danielc4361 5 днів тому

    Yup. This is the best example

  • @nicholasjohnson3542
    @nicholasjohnson3542 6 років тому

    Excellent demonstration.

  • @BKK-Japan1
    @BKK-Japan1 5 років тому

    Your force is strong.

  • @jaimerdz3274
    @jaimerdz3274 6 років тому

    Thank you for this great demostration.

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

    Best demonstration on youtube!! Thanks a lot

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

    awesome
    awesome, awesome, awesome.
    My question is: Can the controller automatically characterise the motor and thus pre-calculate the optimal parameter values based on max torque, inertia etcetc ?

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

      The magic comes from the right set of parameters. You need to find the right values for your device, either empirically or by using (automated) heuristic methods. But once these parameters match your use case, you can pretty much surprise your system with all kind of weird situations and it will react as desired.

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

      @@W00PIE since then i learned that there are other methods, more appropriate, for complex system. This is not a complex system, though.

  • @Jrod_FPV
    @Jrod_FPV 7 років тому

    very cool thanks for sharing. it would be helpful and educational if you showed the physical result of each parameter being way too low , barely too low, wait to high, and barely too high, as well as holding all variables the same, then adjusting the sampling frequency.

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

    Good function to use on autopilot to help stabilise an aircraft run by granny. Can you also do a tuning for heating application?

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

    Thank you so much for this video!

  • @milindgulve9136
    @milindgulve9136 7 років тому

    Good Example of PID Control system.