Inverted Pendulum - Arduino Balancing Robot

  Рет қаралды 5,993

Ian Carey

Ian Carey

Күн бұрын

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/downloads/inverte...
Code: gist.github.com/careyi3/d087f...
3D Printing Files: www.thingiverse.com/thing:552...
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
@maca_2599
@maca_2599 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
​@@careyian perfect, thank you very much
@GustavoelGamer
@GustavoelGamer Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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.
@Elect_Ng
@Elect_Ng 2 ай бұрын
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.
@Elect_Ng
@Elect_Ng 2 ай бұрын
please help am doing project just like this...
@irvingheredia7575
@irvingheredia7575 Жыл бұрын
Nice project bro! I wonder if you have the schematic diagram of connections, could you help me out please?
@careyian
@careyian Жыл бұрын
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 Жыл бұрын
@@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!
@buildeverythingvn
@buildeverythingvn 8 ай бұрын
Can you give me the diagram, I don't know how it is connected even though I have read your program, thanks
@careyian
@careyian 8 ай бұрын
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 8 ай бұрын
@@careyian I can contact you via facebook or discord
@buildeverythingvn
@buildeverythingvn 8 ай бұрын
iCan you give me the circuit diagram on paper, it doesn't need to be very complicated@@careyian
@steve5nash
@steve5nash 10 ай бұрын
Can you do a double pendulum
@careyian
@careyian 10 ай бұрын
Possibly!! Might add it to the list for a future project
Arduino Self Balancing Robot
17:22
Ian Carey
Рет қаралды 2,1 М.
I Built a Ball Balancing Robot
8:55
Aaed Musa
Рет қаралды 1 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
УГАДАЙ ГДЕ ПРАВИЛЬНЫЙ ЦВЕТ?😱
00:14
МЯТНАЯ ФАНТА
Рет қаралды 3,8 МЛН
Inverted Pendulum(s) #1 - Assembling Hardware
18:30
Scott Rumschlag
Рет қаралды 43 М.
How to Master PID Control in 2024 (feat. Arduino) | Ep. 3
3:26
ubicoders
Рет қаралды 2,7 М.
Balancing Robot with PID - Mini Robot PCB
17:29
Electronoobs
Рет қаралды 45 М.
DIY sonar scanner (practical experiments)
14:30
bitluni
Рет қаралды 1 МЛН
I built a rover using a Raspberry Pi & Arduino
16:56
Lukas Deem
Рет қаралды 173 М.
Inverted Pendulum(s) #3 - Swing Up
8:45
Scott Rumschlag
Рет қаралды 27 М.
Writing in Titanium on Glass - Lift-Off Photolithography
18:02
Advanced Tinkering
Рет қаралды 30 М.
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 42 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 59 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 435 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 2,4 МЛН