Classic Inverted Pendulum - Equations of Motion

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 มี.ค. 2015
  • 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.

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

  • @osamaahmadieh4660
    @osamaahmadieh4660 4 ปีที่แล้ว +10

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

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

      Glad to help

  • @theodoretsitsimis9973
    @theodoretsitsimis9973 8 ปีที่แล้ว +51

    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.

  • @sebascarra
    @sebascarra 9 ปีที่แล้ว +23

    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!

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

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

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

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

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

      You're welcome

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

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

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

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

    Your Video helps me a lot!

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

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

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

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

  • @fcvgarcia
    @fcvgarcia 7 หลายเดือนก่อน

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

    • @bdcoller
      @bdcoller  7 หลายเดือนก่อน

      You're welcome.

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

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

    Very nice video. Thanks a lot!

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

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

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

    Thank you! Best tutorial on yt

  • @evanparshall1323
    @evanparshall1323 3 ปีที่แล้ว +2

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

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

      acceleration in the radial direction @10:50 should be divided by L, not multiplied. Right?

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

    Fantastic explanation thank you Sir ❤

  • @DusanPavlicek78
    @DusanPavlicek78 9 หลายเดือนก่อน

    This was brilliant!

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

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

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

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

    Excellent!!!!

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

  • @pierluigimicarelli30
    @pierluigimicarelli30 8 ปีที่แล้ว

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

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

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

    Thank You very much.

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

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

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

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

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

      Working Model

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

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

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

    Thanks a lot

  • @Mr-jq9xf
    @Mr-jq9xf 6 ปีที่แล้ว

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

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

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

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

    Very helpful Thank you.

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

      You're welcome.

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

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

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

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

      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

  • @kayzoku1
    @kayzoku1 8 ปีที่แล้ว +2

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

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

      8 yrs and still no reply

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

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

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

    nice video sir

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

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

  • @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 8 หลายเดือนก่อน +1

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

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

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

    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

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

    This video wins BIGLY

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

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

    Thank you soooooooo muuuuuucccchhhh

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

    oh man! beautifully explained. :-)

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

    You can support your code is not? thanks you!

  • @zak3037
    @zak3037 8 ปีที่แล้ว

    is very good

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

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

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

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

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

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

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

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

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

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

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

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

    why your final equations different from wikipedia?

  • @anjalir4971
    @anjalir4971 2 ปีที่แล้ว +1

    cool

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

    Tqm

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

    Why we use not the Friction power on car

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

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

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

      Are they******
      And What mean the " L "?

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

  • @pooya130
    @pooya130 9 ปีที่แล้ว

    Beauty

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

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

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

    Why didn't apply moment of inertia? 🤔

    • @bdcoller
      @bdcoller  2 ปีที่แล้ว +1

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

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

    Brianno rules

  • @88koiboi88
    @88koiboi88 6 ปีที่แล้ว

    17:06 lmao