How to Defy Physics With LEGO 51515 - PID Self Balancing Robot

  Рет қаралды 41,521

Builderdude35

Builderdude35

Күн бұрын

Пікірлер: 93
@Builderdude35
@Builderdude35 3 жыл бұрын
What other cool things have you used PID for? Let me know here!
@fishybuilds9230
@fishybuilds9230 Жыл бұрын
I'm not really sure if it was a PID controller but when I built the gyro boy that came with the ev3 set, the code was very hard to understand and there wasn't any way to change the PID values if it even had any. A video breaking down the code would be great!
@VJBrickss
@VJBrickss Жыл бұрын
Same
@_yaseen
@_yaseen 3 жыл бұрын
Thanks!
@Builderdude35
@Builderdude35 3 жыл бұрын
What did Yaseen mean by this?
@Builderdude35
@Builderdude35 3 жыл бұрын
Thanks Jimmy :) that phrase is something of a meme among my friends, and Yaseen knows it all too well
@Builderdude35
@Builderdude35 3 жыл бұрын
no it's not about you haha
@jinfenggoh
@jinfenggoh 3 жыл бұрын
Thanks
@Builderdude35
@Builderdude35 3 жыл бұрын
You're welcome!! :D
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
The sensor is not a gyroscope, but a 3D acceleration sensor, so it basically can output angles based on the movement of 3 little MEMS mass-spring systems. Nothing to integrate. Just read out the spring movement in the 3 directions and calculate angles with plain gonio functions.
@FlyingMD11
@FlyingMD11 2 жыл бұрын
May I add some improvement to your algorithm? The motors are controlled by power, so I‘d say with torque. The torque required is not linear with the error of angle, but with sin(error), as this is gravity‘s vector component perpendicular to the lever. This results in a reduced correction around the target angle and a higher correction once deflected. So I wrapped the error Formular with a sinus function. Of coarse the PID values need to be adjusted afterwards. By doing so I could achieve a much more stable balance.
@micheleraucci9070
@micheleraucci9070 2 жыл бұрын
can you please share more details
@tharunsankar4926
@tharunsankar4926 3 ай бұрын
That’s pretty clever. But if error > pi/2 your torque is going to a big negative value. But to make things linear (and reduce computational effort), I would do a z-transform instead and tune the sample time.
@micheleraucci9070
@micheleraucci9070 2 жыл бұрын
Do you think it is possible to backsolve Kp, Ki and Kd by tracking the effect of power on the robot roll angle? So the idea is to let it play a little bit on its own by modifying the constants until it reaches the desired result and then these will become the constants to use. A little bit like the goal seek in excel.
@michaels.4034
@michaels.4034 2 жыл бұрын
Hey, mechanical engineer here. It should be possible. There are techniques already used in Technology, e.g plane stabilazation. Also bc you can analyze the swinging behaviour on the hub itself and calaculating the right parameters. Im currently working on this and let you know if i manage to do so ;)
@tharunsankar4926
@tharunsankar4926 3 ай бұрын
If you linearize your system, and convert it into state space about an upright point (delta_xdot = A delta_x + B*deltau), then what you could do is plot your eigenvalues and vary it with respect to your PID gains. Your poles could potentially give you info on your settling and response times.
@controlaguy6315
@controlaguy6315 2 жыл бұрын
O dont know why but it is not working for me im gonna restart and i checked the robot and code 100 times i hope when i restart it will work
@tarstco
@tarstco 3 жыл бұрын
After making it balance, can you then make it drive around like the old lego mindstorms?
@ivorjawa
@ivorjawa 2 жыл бұрын
Why didn’t you just incorporate the .25 into Ki? Unless I’m very wrong, it’s mathematically equivalent and an extra multiplication you don’t need to keep repeating.
@Ziad_414
@Ziad_414 3 жыл бұрын
Builderdude 35 returned back 👍🥳
@Builderdude35
@Builderdude35 3 жыл бұрын
yup!
@Ziad_414
@Ziad_414 3 жыл бұрын
@@Builderdude35 I love all your Videos ❤️👌
@Builderdude35
@Builderdude35 3 жыл бұрын
Thanks so much! I am thrilled you enjoy them! :D
@miguelnassour110
@miguelnassour110 2 жыл бұрын
Weird why I tried making the program but my hub flopped to the floor… even when I change the balance variable’s angle
@reenabondada7490
@reenabondada7490 2 жыл бұрын
Same
@Xx_NeonYT_xX
@Xx_NeonYT_xX 4 ай бұрын
@@reenabondada7490 same
@dluders
@dluders 3 жыл бұрын
I wonder if the Space-X rockets use PID programs to move the rocket gimbals when landing....
@Builderdude35
@Builderdude35 3 жыл бұрын
I will have to ask my SpaceX colleagues ;)
@SeconYan
@SeconYan 3 жыл бұрын
Long time no see, guy.
@Builderdude35
@Builderdude35 3 жыл бұрын
Yeah
@sampadadeshmukh1823
@sampadadeshmukh1823 Ай бұрын
Can you please explain this in ev3🙏🙏🙏🙏🙏🙏
@prueba-qv3ym
@prueba-qv3ym 3 жыл бұрын
hi! ma man yo i was wondering if you can bring the xiaomi robot and compare to a lego one. thanks!
@MalarLearner75
@MalarLearner75 3 жыл бұрын
I will get one this week
@Builderdude35
@Builderdude35 3 жыл бұрын
Congrats!
@MalarLearner75
@MalarLearner75 3 жыл бұрын
Well it’s finally here it was only a day
@daeboos
@daeboos 2 жыл бұрын
My robot keeps falling over it corrects it a little too late then over corrects can you help
@ImpostorSus
@ImpostorSus 2 жыл бұрын
Should I change power variable and 0.25 or just k values?
@VladoNikiforov
@VladoNikiforov 3 жыл бұрын
It is fantastic! Can I download/buy the program?
@darkesto
@darkesto 3 жыл бұрын
Can you update the central position in real time? Suppose that you surface angle changes it Will nevet hold upright with the current implementatiob
@mathguy9495
@mathguy9495 3 жыл бұрын
Can you do this with the EV3?
@Builderdude35
@Builderdude35 3 жыл бұрын
absolutely! One thing to look out for is that it may be more challenging to build a robot that has balanced weight
@Phoenix0224
@Phoenix0224 10 ай бұрын
i want to download this
@thorbjrnhellehaven5766
@thorbjrnhellehaven5766 3 жыл бұрын
I want to remote control movement for this robot: Fwd/bwd and turn.
@thorbjrnhellehaven5766
@thorbjrnhellehaven5766 3 жыл бұрын
I guess you could manipulate the roll target, to make it go fwd/bwd
@ImpostorSus
@ImpostorSus Жыл бұрын
Did you manage to get it working? I've got some problems with doing it so I'd be happy if I can get some advice
@thorbjrnhellehaven5766
@thorbjrnhellehaven5766 Жыл бұрын
@@ImpostorSus I barely tried, but not giving it enough time for any success . Then canibalized parts for a different project.
@thorbjrnhellehaven5766
@thorbjrnhellehaven5766 Жыл бұрын
@@ImpostorSus maybe check out their other video about this kzbin.info/www/bejne/nJLdinZsmN50pJo
@alexandrucreata6342
@alexandrucreata6342 Жыл бұрын
Do you thing you can do this with Lego boost?
@GamingKing-jo9py
@GamingKing-jo9py 3 жыл бұрын
cool pid
@Builderdude35
@Builderdude35 3 жыл бұрын
thanks chief!
@Builderdude35
@Builderdude35 3 жыл бұрын
What was your favorite part of the video?
@GamingKing-jo9py
@GamingKing-jo9py 3 жыл бұрын
@@Builderdude35 idk i guess the whole thing
@Builderdude35
@Builderdude35 3 жыл бұрын
hahaha I like that answer :D
@tomatus270389
@tomatus270389 3 жыл бұрын
You didn't divide by dt in the derivative.
@Builderdude35
@Builderdude35 3 жыл бұрын
You have out-mathed me, I tip my hat to you.
@jaapcilia392
@jaapcilia392 3 жыл бұрын
@@Builderdude35 How does this correction change the code for this robot? And how is "dt" defined or calculated. Please help. I've spent days on making this thing work, but to no avail.....
@joakkoing
@joakkoing 3 жыл бұрын
This is not necesary to divide by dt because you can assume that the time between loops is almost constant
@aleksandarvolkanovski4565
@aleksandarvolkanovski4565 3 жыл бұрын
Collaboration with Thoroughfare production?
@Builderdude35
@Builderdude35 3 жыл бұрын
This is a cool idea! I hadn't heard of this channel before, but just checked them out and they have some cool content there.
@yen-thanhmac9900
@yen-thanhmac9900 3 жыл бұрын
Ok, but how can you programe it??? I don't even know what the heck to do with it.
@LEGO_CREATOR_IDEAS
@LEGO_CREATOR_IDEAS Жыл бұрын
my robot is not working. it very slow sensing :(
@Meowzofficial
@Meowzofficial 3 жыл бұрын
POV:You bought gyro boy on wish but it has a newer technoligy so its kind of beeter but not as pretty
@Builderdude35
@Builderdude35 3 жыл бұрын
Lmao
@kaydeinomg5829
@kaydeinomg5829 3 жыл бұрын
Ok now one wheel
@LegoMaster5197
@LegoMaster5197 3 жыл бұрын
Hi
@LegoMaster5197
@LegoMaster5197 3 жыл бұрын
This is the first comment i think
@Builderdude35
@Builderdude35 3 жыл бұрын
Indeed you are the certified first commenter
@LegoMaster5197
@LegoMaster5197 3 жыл бұрын
@@Builderdude35 Epic, love your videos btw
@Builderdude35
@Builderdude35 3 жыл бұрын
@@LegoMaster5197 I'm thrilled to hear that! What's your favorite video so far?
@LegoMaster5197
@LegoMaster5197 3 жыл бұрын
@@Builderdude35 The one where you reviewed the Porsche 911 (10295)
@monmonwadee127
@monmonwadee127 7 ай бұрын
Not working
@a.sanusinazareth9213
@a.sanusinazareth9213 3 жыл бұрын
Your robots not balance enough. How can make it more stable. I'm dying
@user-jj1tp4qm8m
@user-jj1tp4qm8m 3 жыл бұрын
1.7
@dinhtuan752
@dinhtuan752 3 жыл бұрын
this is a bot
@user-jj1tp4qm8m
@user-jj1tp4qm8m 3 жыл бұрын
@@dinhtuan752 no its not Dinh Tuan
@KhangPhucNguyen-kc3sb
@KhangPhucNguyen-kc3sb Жыл бұрын
👍👍
@jeramiahbrown8555
@jeramiahbrown8555 3 жыл бұрын
2 hours of adjusting variables to find different ways of making it not work. Oh well.
@Builderdude35
@Builderdude35 3 жыл бұрын
It took me several hours and trying a few different surfaces to get it to work. Don't get discouraged. If it were easy, everyone would do it. ;)
@lubogregor3534
@lubogregor3534 3 жыл бұрын
@@Builderdude35 is there at least some reasonable range for each of the P.I.D. variables to operate within? (So great to see you back again btw).
@cindyshaiu
@cindyshaiu 11 ай бұрын
Scammer
@reenabondada7490
@reenabondada7490 2 жыл бұрын
Doesn't work. That is just a scam. Don't try it, it's just a waste of time and lego.
@woodywong76
@woodywong76 2 жыл бұрын
100% Agree this is bad
@reenabondada7490
@reenabondada7490 2 жыл бұрын
@@woodywong76 I know right!
@GOOFYAHTAGGER
@GOOFYAHTAGGER 2 жыл бұрын
Mabey you did it wrong idiot cuz it worked for me
@reenabondada7490
@reenabondada7490 2 жыл бұрын
@@GOOFYAHTAGGERWow I wonder what world you live in
@cindyshaiu
@cindyshaiu 11 ай бұрын
True😢
@erikvarga5212
@erikvarga5212 2 жыл бұрын
For me the program doesn't work. I don't know why. But also I don't think it's your fall, you are a very good guy who wants to help us better understand lego MINDSTORMS. You are the Best!!! RESPECT.
5. LEGO (Technic) Mindstorms 51515 Robot inventor BLAST. Обзор робота.
15:50
BrickGarage - LEGO® Technic Creations
Рет қаралды 29 М.
Stop Making THIS MISTAKE With Your LEGO Gyro Sensor
10:18
Builderdude35
Рет қаралды 19 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
AI-powered LEGO robot learns how to sort bricks by color (LEGO MINDSTORMS 51515)
19:16
Prof. Bricks - LEGO® robotics
Рет қаралды 33 М.
5 Reasons Why LEGO Spike Prime Will Take Over FLL
12:50
Builderdude35
Рет қаралды 30 М.
How I Built A LEGO Treadmill That Moves In EVERY Direction
18:06
Banana Gear Studios
Рет қаралды 834 М.
I made an AI LEGO® PixelArt Robot
15:48
Creative Mindstorms
Рет қаралды 617 М.
Building a Working LEGO Laptop...
33:42
Brick Machines
Рет қаралды 511 М.
FLL Masterclass Part 2: 10 Tips to Make Your LEGO Spike Prime Robot Drive Straight
8:00
One-kit Rubik's Cube Solver with LEGO MINDSTORMS Robot Inventor
6:56
Antons Mindstorms
Рет қаралды 45 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН