Classic Inverted Pendulum - Equations of Motion

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • In this video, we derive the full nonlinear equations of motion for the classic inverted pendulum problem. Although the Lagrange formulation is more elegant, this video uses a simpler Newtonian approach that anyone with sophomore-level engineering dynamics should be able to understand.

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

  • @theodoretsitsimis9973
    @theodoretsitsimis9973 8 лет назад +52

    Please make a 2nd part of this video explaining the control system for stabilizing the inverted pendulum! Very good work!!

    • @altuber99_athlete
      @altuber99_athlete 4 года назад +7

      Here it is: www.spumone.org/courses/control-notes/inverted-pendulum/
      There are 4 more videos.

  • @osamaahmadieh4660
    @osamaahmadieh4660 5 лет назад +10

    Man I love the love way you actually explain stuff, and not simply state equations! Fantastic explanation of accelerations!

  • @sebascarra
    @sebascarra 9 лет назад +24

    Excellent video. Most control books don't review mechanics and all and just throw in the final result or vaguely deduct the equations needed to build the state-variables expression. The only thing I would have liked is that Newton's 2nd law for rotation had been used instead, working with torques and the moment of inertia of the pendulum in respect to the axis in the pendulum-cart joint. However, the point of this video is to achieve the equation in a simple way to avoid having to remember rigid body mechanics entirely and stuff like that, so I understand why you took the way you took. Thank you very much!

  • @clintathusaz
    @clintathusaz 8 лет назад +4

    Where is part 2?? This was such a good refresher video. I loved this stuff in college and after only a few years of not using it I've lost a lot of it!

  • @venkatyalamati3285
    @venkatyalamati3285 8 лет назад +2

    Very fundamental and generalized way of applying the Newton formula for deriving the system dynamics.. No need to By-Heart any advanced formulas... All are basic things. Excellent..

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

    This was what I have been trying to find for weeks. Thank you very much :)

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

    Wow great video. Had a minor memory lapse on centripetal acceleration but thank you for the great explanation!

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

    Thanks for the excellent explanation!!! I didn't notice the time passing by.

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

      You're welcome.

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

    Is there a part two to this video taking the laplace transformation? that would be an absolute life saver right now

  • @senthilkumaranmahadevan4991
    @senthilkumaranmahadevan4991 6 лет назад

    Great job. After a long time I understood inverted pendulum. Thanks a lot .

  • @ichoose111
    @ichoose111 6 лет назад

    Excellent video. Tried solving a similar system using Euler Lagrangian method cos i though Newton's approach would be difficult. The way it is described here makes it look so simple.

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

    Thank you! Best tutorial on yt

  • @alvarovargas2217
    @alvarovargas2217 9 лет назад +4

    Nice video, I understood a lot from it. However, what if I want to write the equations of motion for an inverted pendulum with a fixed end and an inertia wheel on the other?

  • @TheShellify
    @TheShellify 9 лет назад +4

    Thanks for your great video. It's easy to follow and understand. At about 16:00 you started to eliminate the tensions with multiplying cos(theta) to (3) and sin(theta) to (4). This seems to solve the problems the the tension very nicely, but I don't get the clue behind it.
    Could you drop some explaining words, why this step is allowed? thanks a lot and keep going with your nice videos.
    --alex

    • @bandar1606
      @bandar1606 7 лет назад

      The tension force T is expressed in two equations. From (3), you can say T = AAAA and from(4) T = BBBB.
      Now T = T or AAAA = BBBB. Now simplify this one equation. Multiplying (3) by cos and (4) by sin is to simplify the equation. You don't have to do it but you should.

    • @murilloprestesvilla9539
      @murilloprestesvilla9539 6 лет назад +1

      I get a little confused here too. Beacause, Tsen(theta) in equation (3) is a vector in the î direction, and Tcos(theta) is a vector in the j direction. I don't get how summing these vectors, even when multiplying by any number, could be equal to zero. But regardless that, it was na awesome explanation! Thank you

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

      I think we have to do:
      (3)*cos*j and (4)*sin*i (**)
      if (3) is in terms of i , (4) is terms of j and ixj = k.. so (**) is in terms of k

  • @laiafbin4495
    @laiafbin4495 6 лет назад

    Your Video helps me a lot!

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

    This was brilliant!

  • @usamaniaz2981
    @usamaniaz2981 6 лет назад

    I will just say Its perfectly perfect. The best experience in learning inverted pendulum, by the way where is second part?

  • @ohmakademi
    @ohmakademi 6 лет назад

    thank you very much. it is very useful for us .

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

    Very nice video. Thanks a lot!

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

    BROTHER...YOU ARE JUST GOD !!!!!!

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

    Fantastic explanation thank you Sir ❤

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

    After approximating sin(θ) = θ, cos(θ) = 1, and θ·θ'^2 = 0, where the prime indicates first derivative, and after substituting equation (5) in equation (6) and taking the Laplace transform, would the transfer function be Θ(s)/F(s) = [1/(Mc·L)]/[s^2 - g·(Mc·Mp)/(Mc·L)]?

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

      should be "g(Mc+Mp)" not "g(Mc*Mp)" but yeah, thats the TF

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

    This video wins BIGLY

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

    Very helpful Thank you.

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

      You're welcome.

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

    Thank You very much.

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

    NOTE: The direction of tension forces in the free body diagrams are drawn in the wrong direction. It should've been the opposite. Because otherwise, assuming no control force, we would expect the cart to accelerate upwards which doesn't make sense.

  • @kayzoku1
    @kayzoku1 8 лет назад +2

    great video!
    but why is the angle formula -cos(x)-sin(x) for the tangential acceleration? I mean why minus

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

    Thank you soooooooo muuuuuucccchhhh

  • @jfbarbosaboro
    @jfbarbosaboro 7 лет назад +1

    Thank so much for this explanation!!! You saved me! hahaha I would never wonder to multiply those equations by sin and cossine in order to eliminate the tension T, hahaha. Great video!

  • @ravikiran5567
    @ravikiran5567 8 месяцев назад

    What if I write Newton's second law for rotation of pendulum... Can you pls explain that

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

    Excellent!!!!

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

    Thank you so much .. i was looking for it...can you do a video on differential drive movile robot ..forming state space equations..

  • @ricardomiranda7737
    @ricardomiranda7737 7 лет назад

    Excellent!

  • @danteflores7596
    @danteflores7596 7 лет назад

    If I had a rod with a considerable mass and a moment of inertia, should I make a free body diagram for that rod and for the ball separately, or the forces due to the ball can be considered into the rod's free body diagram? Thanks!

  • @ricardomiranda7737
    @ricardomiranda7737 7 лет назад

    Where can I go to help me substitute the F (force) term for the motor properties from the wheel motors. Planning to use a two wheeled cart, wheels adjacent to each other...

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

    How do I convert from e_theta and e_r to i and j? I sort of get what's happening by looking at it, but not in any concrete way

  • @RajRoy-ok9uf
    @RajRoy-ok9uf 8 лет назад

    we considered centripetal force when calculating the acceleration of the mass relative to cart but should not that be balanced by centrifugal acceleration? and can you suggest me any piece of reference to learn more

  • @m3tzeko
    @m3tzeko 6 лет назад +1

    Why is the tension acting on the cart negative in the x-direction?

    • @ironpine5815
      @ironpine5815 6 лет назад

      Because of the way he has the FBD of the cart drawn. Also, something in tension always pulls away from it's ends...

  • @ertsberg
    @ertsberg 7 лет назад

    Nice video, good explanation. What software or library did you use to do the simulation of the system?

  • @Rafisidqi
    @Rafisidqi 7 лет назад

    Hi, thank you for your great video. If you could mention some of your reference used, it would be great. Thank

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

    Thank you!
    can we replace the x with lsin(theta) and have one degree of liberty?

  • @Mr-jq9xf
    @Mr-jq9xf 6 лет назад

    how can i solve a question with lagrangian method when piont of support of a pendulum is oscillating horizontally

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

    In practical when the cart moves left the pendulum moves right, so keeping this in mind the ac in the equation ap = ac + ap/c should be negative of the acceleration of cart?
    Correct me if I am wrong?
    Because I compared your answers with a text I was reading on this topic and there was a slight difference in the final answer due to this reason.

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

      The equations in the video are correct.

  • @pierluigimicarelli30
    @pierluigimicarelli30 8 лет назад

    hello, Brianno Coller thx, what are the changes for two wheels inverted pendulum? for example radius of the wheels etc....

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

    what about the moment of inertia of the pendulum?

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

      In this derivation, I modeled the pendulum as a point mass.... so it did not have a moment of inertia. It could be added without much difficulty.

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

      @@bdcoller iam making a self balancing robot and im treating it as this pendulum on a cart example, can you please tell me how to calculate the moment of inertia for something like that ?

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

      @@bdcoller What would be its inertia, then? And where would it be added in the equations?

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

    Why we use not the Friction power on car

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

    can anyone explain the accelection about the cirle e theta part?

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

      You can read the section 11.5B ("Radial and Transverse Components") of the chapter 11 ("Kinematics of particles") of the textbook "Vector mechanics for engineers: Statics and dynamics" (12th edition), by Beer, Johnston, Cornwell & Self. They deduce the same equation in Eq. 11.46 of the textbook.

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

      @@altuber99_athlete thank you so much.I'll refer the book you suggested.👍

  • @vuthanhty1329
    @vuthanhty1329 7 лет назад

    You can support your code is not? thanks you!

  • @matthewjames7513
    @matthewjames7513 7 лет назад

    Thanks for the video! I'm a bit unsure why you only showed tension in the rod. Shouldn't the rod also have a shear force perpendicular to tension? Otherwise it's just a string??

    • @nikaross7646
      @nikaross7646 7 лет назад

      strings only support a tension force whereas rods support compression and tension. when the pendulum is above the horizontal the rod is in compression so the string would bend

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

    nice video sir

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

    what mean " Lθ double dot " and " L θ dot square "? They are simple variables-?

  • @forteleaerieneromane
    @forteleaerieneromane 9 лет назад

    What would be the angle needed, given the acceleration "a" of the linear moving part, so that the pendulum would be at rest?

    • @forteleaerieneromane
      @forteleaerieneromane 9 лет назад

      forteleaerieneromane assuming that the translating part is moving infinitely to either left or right

  • @cyrusIIIII
    @cyrusIIIII 8 лет назад

    why your final equations different from wikipedia?

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

    can we not use an angle sensor to give us the angle of the rod. such as mpu6050

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

      Yes. I'm not sure what your point is. Equations of motion remain the same.

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

      If I want to make an autonomous inverted pendulum, using a microcontroller and control system, So will I need an angle sensor to find the angle of the rod, or just only these equations will be enough? thank you

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

      in a quadcopter which has 4 motors,. an angle sensor is used that gives the angle of the quadcopter and the quacopter then sets different speeds of the 4 motors to keep the quad level.

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

      @@Spectamin The equations by themselves are not enough to control the system. To balance the pendulum, you would need some sort of feedback. An encoder (angle sensor) or an IMU would be very valuable .

  • @hky9906
    @hky9906 7 лет назад

    Thanks a lot

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

    sir please make more vedio on equation of motion via Newton's second law

  • @deniskartachov4845
    @deniskartachov4845 8 лет назад

    Hey, great video. I'm actually trying to model such a pendulum for a project. Could you please refer me to a video, or a website that explains why the acceleration of the pendulum is the acceleration of the cart + the acceleration of the pendulum relative to the cart?
    Thanks!

    • @bdcoller
      @bdcoller  8 лет назад +1

      +Denis Kartachov www.spumone.org/courses/dynamics-notes/rigid_body_kinematics/

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

      Yes, that equation is correct. I just checked the textbook by Young, Freedman, Sears and Zemansky. They say that equation is valid only for Newtonian mechanics, but fails for objects traveling at near the speed of light (of course, neither the car nor the pendulum will ever move that fast.)

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

    Why can we add (3)cos(theta)+(2)sin(theta) together?

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

      Do you mean (3) cos(theta) + (4) sin(theta), like that shown at 19:00? If so, then it is important to know what this means. The (3) refers to equation (3) and the (4) refers to equation (4). So (3) cos(theta) means that I'm taking every term on both sides of equation (3) and multiplying by cos(theta). When I do so, I still have an equality (i.e. the stuff on the left side of the equation EQUALS the stuff on the right side. Similarly for (4) sin(theta). Then we simply take these two equalities and add them together: add the left sides of the two equations; add the right sides; the two sums should be equal. That's it.

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

    On equation (5) (at 22:33) shouldn't it be -2MpL(theta double dot)?

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

      Are you suggesting that I'm missing a 2? There should not be a 2. This is because of the trig identity: cos^2 + sin^2 = 1. It is described at 19:00.

  • @saranashjain794
    @saranashjain794 7 лет назад

    can please tell me why you take centripetal acceleration outward .As much as i know it always towards center of circle. Or it is a centrifugal force . pls reply
    between very nice video

    • @bdcoller
      @bdcoller  7 лет назад

      It is not outward. In the video, the centripetal acceleration is written as -L thetaDot^2 e_r. Notice that it's in the -e_r direction... so it's inward.

    • @saranashjain794
      @saranashjain794 7 лет назад

      Brianno Coller ok i got it

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

    Why didn't apply moment of inertia? 🤔

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

      It's because I treat the pendulum as a point mass on the end of a massless rod.

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

    in 10:51 why is it minus sign?, shouldn't it be a plus sign? Help please My exam is on Thursday, November 29th.

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

      It's because that term is a centripetal acceleration. Centripetal acceleration is toward the center. The basis vector e_r is outward. Therefore, the centripetal acceleration is in the minus e_r direction.

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

      Ohh I see. Right, thank you so much, Brianno! God bless you! Regards from Innopolis, Tatarstan, Russia. Wednesday, November 28th, 2018.

  • @zak3037
    @zak3037 9 лет назад

    is very good

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

    oh man! beautifully explained. :-)

  • @anjalir4971
    @anjalir4971 2 года назад +1

    cool

  • @mritunjaichandra2407
    @mritunjaichandra2407 8 лет назад

    Hey i neeed to take a laplace transform of the final equation (at 22:41) but I don't understand how can I take L transform for the MpL(theta')^2 * theta. as it has a derivative and the independent variable multiplied together.
    PLEASE HELP ASAP.

    • @bdcoller
      @bdcoller  8 лет назад +1

      you have to linearize before taking the Laplace transform.

    • @drumbum7999
      @drumbum7999 8 лет назад

      +Brianno Coller rekt

    • @bandar1606
      @bandar1606 7 лет назад +3

      Laplace transformation method is not applicable for nonlinear system as the case with this inverted pendulum cart system. If you really wanna do that, then you have to impose some assumptions so that the system is considered as a linear system. The physical meaning behind this notion is that when you start the experiment, the pendulum must be placed very close to the vertical position and there are no external forces that deviate it from that position, therefore, it is safe to assume that con(theta) = 1 and sin(theta) = theta.

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

    Tqm

  • @pooya130
    @pooya130 9 лет назад

    Beauty

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

    Brianno rules

  • @88koiboi88
    @88koiboi88 6 лет назад

    17:06 lmao