Hardware Demo of a Digital PID Controller

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2015
  • The demonstration in this video will show you the effect of proportional, derivative, and integral control on a real system. It's a DC motor connected to an optical rotary encoder (quadrature) and is controlled by a digital control loop implemented on a TI Launch Pad MSP432. It uses a series of timers and interrupts to generate the PWM signals to the H-Bridge motor driver, read the pulses from the encoder, and calculate the control effort using a PID control algorithm. It also implements an anti-windup algorithm to improve the system stability since this is a real system and the motor saturates easily.
    If you listen, you can hear the PWM signal whine as it adjust the current to the motor. When I push on the flag with my hand you will hear it go quiet. That's when the PWM is at 100% duty cycle and the audible PWM AC current going to the motor is now DC.
    Post a comment if you liked the video!
    You can download the code, design files, and parts list here:
    github.com/arduinoNube/digita...
    (out of date: sourceforge.net/projects/digi... )
    Enjoy!
    www.gregoryholst.com

ความคิดเห็น • 420

  • @AmitsLife
    @AmitsLife 3 ปีที่แล้ว +424

    Thank you for not using any music

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว +1

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

    • @julians.2597
      @julians.2597 3 ปีที่แล้ว +6

      @@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 ปีที่แล้ว +721

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

    • @marcioandreyoliveira
      @marcioandreyoliveira 6 ปีที่แล้ว +4

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

    • @arduinoNube
      @arduinoNube  6 ปีที่แล้ว +60

      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 5 ปีที่แล้ว +1

      Thank you very much for sharing it with us!

  • @nialv7985
    @nialv7985 5 ปีที่แล้ว +458

    That is a very expressive hand

    • @auzworld
      @auzworld 4 ปีที่แล้ว +6

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

    • @vivekvenkatsubramaniam437
      @vivekvenkatsubramaniam437 3 ปีที่แล้ว +10

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

    • @itzm1kea
      @itzm1kea 3 ปีที่แล้ว +1

      I read expensive too ^^😄

  • @nicolassoncini2266
    @nicolassoncini2266 4 ปีที่แล้ว +33

    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!

  • @vilmondesribeiro4363
    @vilmondesribeiro4363 5 ปีที่แล้ว +39

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @engvdo5297
    @engvdo5297 5 ปีที่แล้ว +27

    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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @gams101
    @gams101 5 ปีที่แล้ว +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.

  • @PeteVree
    @PeteVree 7 ปีที่แล้ว +234

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

    • @arduinoNube
      @arduinoNube  7 ปีที่แล้ว +28

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

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

  • @melhariri6720
    @melhariri6720 6 ปีที่แล้ว

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

  • @milindgulve9136
    @milindgulve9136 5 ปีที่แล้ว +7

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

  • @quahntasy
    @quahntasy 3 ปีที่แล้ว +10

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @martinmiglio
    @martinmiglio 5 ปีที่แล้ว +15

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @naboulsikhalid7763
    @naboulsikhalid7763 5 ปีที่แล้ว

    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

  • @cyrelharris
    @cyrelharris 6 ปีที่แล้ว

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

  • @MrSaemichlaus
    @MrSaemichlaus 4 ปีที่แล้ว

    Excellent teaching! Practical, hands-on and playful.

  • @ColinMcNulty
    @ColinMcNulty 3 ปีที่แล้ว +18

    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... :-/

  • @MunamNaseer
    @MunamNaseer 6 ปีที่แล้ว

    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.

  • @damny0utoobe
    @damny0utoobe 5 ปีที่แล้ว +3

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

  • @passion7312
    @passion7312 3 ปีที่แล้ว

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

  • @MAYDAYDEEJAY
    @MAYDAYDEEJAY 6 ปีที่แล้ว

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

  • @martin840909
    @martin840909 ปีที่แล้ว

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

  • @natarajana.v4262
    @natarajana.v4262 4 ปีที่แล้ว

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

  • @abdellahbarrous8516
    @abdellahbarrous8516 3 ปีที่แล้ว

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @TeDoFwAr
    @TeDoFwAr 5 ปีที่แล้ว +10

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @emreipek4485
    @emreipek4485 5 ปีที่แล้ว +1

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @FLyR9
    @FLyR9 5 ปีที่แล้ว

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

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

  • @dekyed
    @dekyed 2 ปีที่แล้ว

    Finally a great demonstration to help us visualize these ideas!

  • @camilomartinez1105
    @camilomartinez1105 6 ปีที่แล้ว +6

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

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

  • @giovannibianchessi1578
    @giovannibianchessi1578 7 ปีที่แล้ว

    Great, clean and instructive demo! Thank you.

  • @Dillbeet
    @Dillbeet 3 ปีที่แล้ว +1

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @techelevatesolutions
    @techelevatesolutions 6 ปีที่แล้ว

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

  • @punpck
    @punpck 5 ปีที่แล้ว

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

  • @jonathanrabe3727
    @jonathanrabe3727 3 ปีที่แล้ว

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @j3s0n
    @j3s0n 3 ปีที่แล้ว +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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @nosweat9841
    @nosweat9841 6 ปีที่แล้ว

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

  • @acrobat9983
    @acrobat9983 6 ปีที่แล้ว +20

    Probably the best PID Vid on TH-cam :)

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @MuhammadHamza-ul5ky
    @MuhammadHamza-ul5ky 5 ปีที่แล้ว

    Your demonstration is FAB. 👌 Thank you !

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

  • @MrImmi34
    @MrImmi34 5 ปีที่แล้ว

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

  • @RodrigoCruz-iz3kb
    @RodrigoCruz-iz3kb 5 ปีที่แล้ว

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

  • @rogerandersen7046
    @rogerandersen7046 5 ปีที่แล้ว +7

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @charmindesai3730
    @charmindesai3730 6 หลายเดือนก่อน

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

  • @luistorh
    @luistorh 5 ปีที่แล้ว

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

  • @SteveJobzz
    @SteveJobzz 5 ปีที่แล้ว +9

    This should be shown in classrooms!

  • @kaili9552
    @kaili9552 2 ปีที่แล้ว

    best PID illustration video I have ever seen.

  • @paulocesarestradasoplin5078
    @paulocesarestradasoplin5078 3 ปีที่แล้ว

    Extremely awsome demonstration, great job!

  • @chrisbryden8102
    @chrisbryden8102 2 หลายเดือนก่อน

    An absolutely amazing demonstration and final result!!!

  • @yahuiz7877
    @yahuiz7877 4 ปีที่แล้ว

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

  • @MrPashee
    @MrPashee 2 ปีที่แล้ว

    Best explanation of PID I've ever seen.

  • @IncroyablesExperiences
    @IncroyablesExperiences 5 ปีที่แล้ว +66

    Very clear, great job!

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @kunalpanchal7751
    @kunalpanchal7751 6 ปีที่แล้ว

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

  • @ms2649
    @ms2649 3 หลายเดือนก่อน

    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

  • @esnatzea
    @esnatzea 5 ปีที่แล้ว

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

  • @wackyvorlon
    @wackyvorlon 6 ปีที่แล้ว

    Thanks for sharing your design and code!

  • @alexmaximas384
    @alexmaximas384 5 ปีที่แล้ว

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

  • @jaimerdz3274
    @jaimerdz3274 5 ปีที่แล้ว

    Thank you for this great demostration.

  • @dimasarifiyan3758
    @dimasarifiyan3758 3 ปีที่แล้ว

    So cool! Thanks man, you taught me a lot in a short time

  • @sumanth5875
    @sumanth5875 6 ปีที่แล้ว

    Phenomenal demonstration, thank you!

  • @vextrek6036
    @vextrek6036 2 ปีที่แล้ว

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

  • @kaoshavoc
    @kaoshavoc 5 ปีที่แล้ว

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

  • @mikeallenfpv
    @mikeallenfpv 3 ปีที่แล้ว

    This is very cool thanks for demonstrating!

  • @RetroCarton
    @RetroCarton 7 ปีที่แล้ว +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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @diansafari4875
    @diansafari4875 5 ปีที่แล้ว

    Great video, it's help me understanding pid terminologi

  • @mohammedfawzikharroub8482
    @mohammedfawzikharroub8482 4 ปีที่แล้ว

    Thank you for your effort in explaining. Great video. Keep it up (Literally using PID control xD).

  • @moayaddaghles9544
    @moayaddaghles9544 6 ปีที่แล้ว

    Great ......
    What I was looking for since long time
    Thanks alot

  • @W00PIE
    @W00PIE ปีที่แล้ว +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?

  • @Tadesan
    @Tadesan 5 ปีที่แล้ว +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

  • @nachiketsharma8808
    @nachiketsharma8808 4 ปีที่แล้ว

    Best demonstration on youtube!! Thanks a lot

  • @brodiemacleod69
    @brodiemacleod69 4 หลายเดือนก่อน

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

  • @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 7 ปีที่แล้ว

      +1 I would love that!

  • @maxounette-jv7dj
    @maxounette-jv7dj 5 ปีที่แล้ว

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @laworder416
    @laworder416 4 ปีที่แล้ว +1

    Very interesting, thank you for sharing. Do you have the schematic? showing the connections of all the components used with the msp432?

  • @zvikagivli7665
    @zvikagivli7665 5 ปีที่แล้ว +6

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

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

  • @eduardoramada5164
    @eduardoramada5164 8 หลายเดือนก่อน

    Hi Gregory, nice content! Do you authorize its download and use as support content in a educational simulator? Thanks

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

  • @OriginalJetForMe
    @OriginalJetForMe 6 ปีที่แล้ว +2

    This is a very cool demonstration!

  • @WofWca
    @WofWca 5 ปีที่แล้ว

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

    • @arduinoNube
      @arduinoNube  5 ปีที่แล้ว

      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.

  • @nicholasjohnson3542
    @nicholasjohnson3542 5 ปีที่แล้ว

    Excellent demonstration.

  • @Gameplayer55055
    @Gameplayer55055 3 ปีที่แล้ว +1

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

    • @arduinoNube
      @arduinoNube  3 ปีที่แล้ว +1

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

    • @Gameplayer55055
      @Gameplayer55055 3 ปีที่แล้ว +1

      Working in progress

  • @metaeditors
    @metaeditors 5 ปีที่แล้ว

    Great work Gregory

  • @johanelmander3787
    @johanelmander3787 6 ปีที่แล้ว +3

    Best explanation ever.

  • @dickpiano1802
    @dickpiano1802 4 ปีที่แล้ว +1

    This is amazing. Thanks.
    In the code you have the derivative error as error_d = (error-error_old)/dt. What are the benefits to using a derivative approximation instead of calculating the derivative directly as you have done?
    For example in Simulink's PID block you'll find that the derivative error is computed as error_d = N/(1 + N*error_integral). N is an integer. This removes some of the noise from the derivative term. What are the practical implications of this?

  • @karthikeyanradhakrishnan9138
    @karthikeyanradhakrishnan9138 3 ปีที่แล้ว

    Loved it man. Thank you so much.

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

  • @jardel_lucca
    @jardel_lucca 7 ปีที่แล้ว +2

    Amazing. Thanks for sharing! I'm going to study your code now =)

  • @martinbyrne8000
    @martinbyrne8000 2 ปีที่แล้ว

    Great demonstration. Could you let me know what motor you used as the one that is listed on the Ebay link is no longer available, Thanks.

  • @elena6516
    @elena6516 2 ปีที่แล้ว

    this is awesome, thank you for this!

  • @bofasaldana6849
    @bofasaldana6849 2 ปีที่แล้ว

    Thank you so much for this video!

  • @Egon3k
    @Egon3k 3 ปีที่แล้ว

    so satisfying when it is set up correctly :)

    • @landonjacobs815
      @landonjacobs815 3 ปีที่แล้ว

      th-cam.com/video/aOl4YwAGyVw/w-d-xo.html

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

  • @toledomerendo
    @toledomerendo 5 ปีที่แล้ว

    Neato! Thanks for sharing this with the world!

  • @HexhamFoodCo
    @HexhamFoodCo 6 ปีที่แล้ว

    fantastic, I am looking at applications in robot control.
    the integral is the bugger

  • @ddwwssttaanngg
    @ddwwssttaanngg 2 ปีที่แล้ว

    Great Demo!!! I am trying to build a demo exactly like this using a Arduino microcontroller and I am wondering if it is actually possible and if your code can be converted to work with an Arduino instead of the Texas Instruments controller? I also have a question regarding the type and model of H-Bridge your using in this example as well as what the resolution (pulses per revolution) your using in this example. Any help you could give me would be immensely appreciated. Thank you!!

  • @joaoeliasmothe7351
    @joaoeliasmothe7351 6 ปีที่แล้ว

    Hello Gregory ! Your video is great, and also one of the best explanations about PID control i've ever seen ! Could you tell me the specifications of the motor and encoder you used ? Thank you !

  • @rojbinandan2806
    @rojbinandan2806 4 ปีที่แล้ว

    Excellent example of PID controller

  • @comelypepper
    @comelypepper 6 ปีที่แล้ว

    Hello Gregory. First, thank you for this neat video, it's helpful to see a real system.
    I had some questions regarding these notes about examples in your code:
    // 6. Sampling time and Zero Order Hold
    // 7. Integration Error
    // 8. Uneven sampling times
    With regard to 6, I would like to check my understanding. Are you identifying the sampling time with the controller loop rate? (100hz, 200hz, or 800hz in the video)
    If you are, does the effect of a zero order hold with slower loop rates/sampling times act as a low pass filter that induces some kind of phase shift that is responsible for the vibration with high PID constants?
    Were examples 7 and 8 completed/demonstrated in your video, and if not, are there any resources you can direct me to that treat these points mathematically?