Inverted Pendulum(s) #2 - Basic Balancing

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

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

  • @matthiaswandel
    @matthiaswandel 8 лет назад +20

    A lot of DC motors have the brushes at a non 90 degree angle to the field. This essentially gives the brushes a bit of "timing advance" to compensate for the magnetic field in the stator shifting slightly in response to the rotor's field. This makes the motor more efficient at running forward, but less efficient at running backwards. Run the motor both ways, see which way it runs faster and / or consumes more current.

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

      I was going to say something similar, much less articulate though, you nailed it. I've observed this with my r/c projects but never knew the science behind it.

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

      +Matthias Wandel I'm partial to this rather than the belt theory, mainly because then, it would mean that the printers would suffer from this and i've never observed that with my plotters.
      It's the motor that's at fault, not the belt setup.

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

    Man this is so cool to see being built from scratch and seeing the process of trouble shooting so much!

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

    Gosh, I must be a bigger nerd than I thought to be watching and enjoying this. See? I'm even using "Gosh!"

  • @johnjohn-ed9qt
    @johnjohn-ed9qt 8 лет назад

    very nice. There are a lot of control strategies, and you seem to have found one that is good. The last time I played around with the inverted pendulum, my error signal was built around no carriage motion, carriage centered, and stable angle for the pendulum. I didn't bother with building in what vertical was. If the carriage is near center and the angle is constant while the carriage isn't moving, then it is in balance.

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

    To stop a DC motors you could do Dynamic braking (ie bridging the motor terminals with a resistor), but that might require change the H bridge setup. Just something to think about.

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

    Fascinating build, thanks for sharing and thanks for the wonderful detail. :)

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

    Great project

  • @d.i.d
    @d.i.d 8 лет назад

    Great project!

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

    That's called an underflow error when using an unsigned integer and counting below zero. Interesting!

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

      +Cody Carse I've never heard of that, a new term for the vocabulary!

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

    I found a bias issue in my encoder count code. You have to make the point of increment and decrement the same. Encoder counting code found online doesn't account for this

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

    It's hard to tell from the video but it seems that the pendulum is mounted just a wee-bit off centre. Could this contribute to the right bias? Given the length off the stick, even small shift will contribute quite a bit of mass.

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

      +Vojtěch Frič I don't think that would matter, since he is calibrating by "balancing" the shaft (letting the shaft hang), so the shape of the stick should not have any effect on calibration.

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

      +neistridlar Hmm, that makes sense. I was thinking that in extreme case if you would try to balance L-shaped pendulum, it would be harder because it would tend to tip to one side. But the calibration should take of that regardless of the pendulum shape.

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

      +Vojtěch Frič I definitely thought about this and it's how I'm currently compensating for the bias. I'm setting the initial neutral to 1199 (0.15 degrees left of ideal) rather than 1200 from the hanging position. It seems to work well so I'm leaving it for the moment.

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

    I'm working on an inverted pendulum similar to yours. I am using LQR control and I am having the same problems that you had. Short-circuit at the source. the pendulum oscillates too much ... the programming that I did consumed a lot of time and I can not measure the speed satisfactorily ... your video will help me ..Greetings from Brazil

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

    Did you ever think about putting an accelerometer on the stick?

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

      +Jim Beshears I have one and was planning to use it on the cart for more advanced control strategies, to help tune the transfer function.

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

    I figured out your "right biased" problem. Its got to be the earths rotation...

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

      It's oriented mostly North/South and only slightly East/West, I guess that explains why it's a minor effect!

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

      Turn it man, let's find out!

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

    You triple checked that your rails are level? Carpet yields over time.

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

    give it some help with a counterweight?

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

    You run a dvorak keyboard?

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

      Yes, I switched in high school.

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

      i tried it once. Just couldnt bring myself to retrain.

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

    may i know your sensor code?

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

    +100 likes