Это видео недоступно.
Сожалеем об этом.

Inverted Pendulum - Arduino Balancing Robot

Поделиться
HTML-код
  • Опубликовано: 18 авг 2024
  • In this video I show off my latest balancing robot which is an inverted pendulum robot! In the video I explain how it works and also do a bit of a deep dive into some background in the area of control theory.
    Background Info, Code, 3D Files, Parts List: iancarey.ie/do...
    Code: gist.github.co...
    3D Printing Files: www.thingivers...
    Two Wheel Balancing Robot: • Arduino Self Balancing...
    Ball & Beam: • Ball & Beam - Show & Tell
    Detailed Control Theory: • Pendulum Control Theor...
    Patreon: / careyi3
    Website: iancarey.ie
    #robotics #controltheory #3dprinting #electronics #arduino

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

  • @Elect_Ng
    @Elect_Ng 2 месяца назад +1

    howx the encoder measures the tilt angle

    • @careyian
      @careyian  2 месяца назад

      So there is a shaft at the base of the pendulum which runs inside bearings and is fixed to the pendulum. Onto this shaft I have mounted a quadrature encoder. So as the pendulum tilts, the shaft rotates. The encoder can measure the rotation, and so we can then work out the tilt angle.

  • @maca_2599
    @maca_2599 8 месяцев назад +1

    Hello, I have some questions.
    How does the encoder read the increment, does it have a slotted wheel?
    Does the encoder know which direction the pendulum rotates?

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

      Hey there, good questions! The encoder does indeed have a slotted wheel. It’s a very high precision one that is made of a very thin disc with tiny lines cut into it. The reader shines a light and records light and dark as the light shines through the slots. It actually does this twice as there are two reader heads in the unit separated by some distance. This is also how it then can figure out the direction of rotation. It’s what’s called quadrature, it reads the rising and falling edges of the pulses and so is able to figure out the direction. If you are interested in this look up quadrature encoders, specifically the encoder I used was a HEDS-9000 encoder.

    • @maca_2599
      @maca_2599 8 месяцев назад +1

      ​@@careyian perfect, thank you very much

  • @Elect_Ng
    @Elect_Ng 2 месяца назад +1

    please help am doing project just like this...

  • @buildeverythingvn
    @buildeverythingvn 9 месяцев назад +1

    Can you give me the diagram, I don't know how it is connected even though I have read your program, thanks

    • @careyian
      @careyian  9 месяцев назад

      Hi there, I don’t actually have any wiring diagrams for it. I’d have to draw some up, will see if I have time to do it any time soon. However, the wiring shouldn’t be too hard, if you look up the wiring for a DRV8825 stepper motor and a quadrature encoder you should be able to figure it out.

    • @buildeverythingvn
      @buildeverythingvn 9 месяцев назад

      @@careyian I can contact you via facebook or discord

    • @buildeverythingvn
      @buildeverythingvn 9 месяцев назад

      iCan you give me the circuit diagram on paper, it doesn't need to be very complicated@@careyian

  • @irvingheredia7575
    @irvingheredia7575 Год назад +1

    Nice project bro! I wonder if you have the schematic diagram of connections, could you help me out please?

    • @careyian
      @careyian  Год назад +1

      Hey there, you can check out this link in the description for all the details I have published about it. iancarey.ie/projects/invertedpendulum
      The only thing I don’t have is a wiring diagram, but if you look at the code it’ll have the pins I’m using in the Arduino, hopefully that helps a bit!

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

      Thanks a lot for answer, but I'm looking for the connection diagram Arduino-Electronic components, I've been searching for in your website but I haven't found it. If you could help me with that I’ll appreciate it.

    • @careyian
      @careyian  Год назад +1

      @@irvingheredia7575 hi there, such diagrams don’t exist I’m afraid.

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

      I'm glad you had time to answer my questions, thanks a lot!

  • @GustavoelGamer
    @GustavoelGamer Год назад +1

    How do I create the swinging rod and can you pass the libraries you used?

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

      Hi there, I cut a length of stainless steel rod I had to length and threaded the end. The weights are then just a bunch of washers secured with a nut. The washers allows you to tune the weight at the end however, if you don’t have access to thread cutting tools, the rod on its own will work just fine. One tip, the longer and rod and the more weight on the end of it, the easier it will be the balance. Hope that helps!
      As for the libraries, you can find the code in the link in the description.

    • @GustavoelGamer
      @GustavoelGamer Год назад +1

      @@careyian Can u give me the diameter of the swinging rod?, I am making an inverted pendulum as a final project for a subject and we only need the part of the pendulum

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

      @@GustavoelGamer it is 5mm

    • @GustavoelGamer
      @GustavoelGamer Год назад +1

      @@careyian I have finished with the mechanical part, only the programming part is missing. Do pins 6, 7, and 8 go to the stepper motor driver or to which components do they go?

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

      @@GustavoelGamer 6,7,8 all connect to the microstepping config pins of the driver labeled m0,m1,m2. They are not strictly necessary, you can hard wire them for a single stepping mode. I did it this way so I could tune the stepping mode in code once everything was soldered together. If you are working on a breadboard it’s still handy but it’s not too bad to just move jumper wires around.

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

    Can you do a double pendulum

    • @careyian
      @careyian  11 месяцев назад

      Possibly!! Might add it to the list for a future project