You can model the whole setup, throw it into a block diagram, and calculate out the correct parameters. Seems a little silly with something this simple but it pretty important in chemical processes etc where trial and error isn't feasible.
I've had a similar prodgect in class ( the name was "ball and plate", a stabilized ball on a touch panel) and I love how we spend litteraly 10 hours on a precise calculus of the value of kp ki and kd (modelize thé forces and momentum etc...) when you simply Made it step-by-step lol Super great video btw
@@calimero14 moi, j'ai éliminé la compétition. J'ai enlevé l'autocorrecteur parce que je devais trop souvent écrire deux fois ma phrase. J’étais tanné d’être en compétition avec l'autocorrecteur!😂
@@GuillaumePerronNantel sinon ultime solution que j'avais sur mon ancien téléphone, j'avais mis français et anglais dans le correcteur, le meilleur des deux mondes !
If you want more precision. You could use 2 wheel instead of 1. 1 for clockwise and 1 for count clockwise. Meaning the wheels keep going in the same directions and less jerking back and forth. As less accelaration is needed.
The one downside is that it decreases the reactive weight/dead weight ratio of the pendulum for a certain direction. But if it can achieve the angles and agility you want, then this doesn't really matter.
One the other hand, due to the increased total reactive weight, this setup would have twice the saturation margin as the single wheel setup. When one wheel is nearing saturation, the angular momentum could be transferred to the other wheel. You could do this by decelerating the saturated one at the same time as accelerating the other one in the same direction. During this operation, it's possible to not apply any torque, but one could also incorporate this to always run in the background by differentially moving the two wheels in concert. On the other other hand, doing the above would require one to move at least one wheel in both directions, doing away with the benefit frim the OP.
This is the most unrealistic depiction of programming I have seen since the movie 'Swordfish', your code always compiles and you didn't copy paste half of it from stackoverflow, you sir are a God, very well done.
Really impressive stuff! In graduate school I made an inverted pendulum and basically just tuned a PID until it stood upright lol. Now you have a cool physical system to test more advanced control methods though!
Holy shit, this is a true blast from the past. I had something like this in uni as a project to pass a course in control systems or some other similar subject. There was a motorized cart on a suspended rail with a pendulum (metal rod) attached to it, and the goal was to swing to and hold the pendulum in unstable equilibrium (basically up top, same as in the video) only by moving the cart left or right along the rail. The challenge was to achieve this with PID or LQ controller, if I remember correctly, and PID was the absolute terrible option. Its tuning was done as in video - random-ass numbers and see what happens. And of course, since it was the control theory related course, the true goal of this exercise was to solve a linear series of differential equations to get the theoretically perfect values of both PID and LQ params, which of course did not work because the cart and rail were constructed in 1990 and the acceleration was crap, so it was very much non ideal. Thanks BEC for reigniting my love-hate relationship with my uni courses :D
There’s something hilarious about enslaving a lego motor to balance an unstable system for eternity. “What is my purpose?” “You balance this stick forever.” “Oh my god.”
Very cool experiment! Calibrating PID settings, you seem have read the same paper we used to us as a reference; I recognize the same strategy (however, the last fine tuning always feels a bit at random for anybody :p).
I would love to see this attempted again but with 2 flywheels as it were. One Clockwise and one counterclockwise. It could make for a much stable system as there is no need for the slight delay in changing rotations and it is simply a matter of decreasing or increasing the power to each one seperatly.
I’m good with my hands and I’m amazing at math. No way I could figure out what any of this means tho lol. Engineering is ridiculous. Always wanted to go to school for it but didn’t feel like it.
I personally learned more in this "one cup of tea" episode then I would ever do so on the PID matter during my entire engineering course. Outstanding job!!
I'm really impressed by Your skills. You are lego designer, physicist, programmer and electronics engineer. Thanks for the effort You put into Your videos, good luck in future experiments!
@@alvlp-xyz Ngl, I’ve seen kids do some cool engineering stuff. Example is the kid in Mark Rober’s video. I’ve also seen a kid in a third world country solder and create some stuff out of discarded e-waste. The thing here is maybe you’ve never really tried to create things like this.
I think most people i STEM know at least some basic Python or C, because it's used all over the place (in fact a common complaint related to working in Python is having to work with code written by non-programmers)
@@EfeAksoy08 If you have no knowledge of Python, Lego, or physics, this won’t be interesting for you. Read the description or don’t, it’s not anyones responsibility to entertain you.
Instead of switching the target angle at a fixed frequency to avoid saturation, run a slower feedback loop that adjusts target angle as a function of motor acceleration. Essentially get it to search for a target angle where it doesn't need to accelerate. You could probably get it completely stationary that way.
Nice. So one control loop tries to minimize the angle difference between setpoint and actual angle, and another control loop adjusts the setpoint angle to minimize the motor effort
5:00 PID controller values : usually you set the P and D constants first, and end up with I part. The integral part is useful when current angle lags behind target, not for overall stability.
This is so epic. Coincidentally im doing this exact thing right now for a final project but using Non-linear backstepping control so it can swing up from any position. Nice job!!
I literally have no idea what's going on what they're coding or even what they're trying to achieve, but goddamn I sat thru everything mildly entertained and interested
@@tusharxo that is correct. it's a reaction wheel, which spins in reaction to it's angle being changed to get back to where it started. They're used in rockets, missiles, and other flying things.
I love it. Great project. How about a version with an arm that can freely rotate 360 degrees? Could it get up from neutral hanging down position? Could it deal with rotating the entire apparatus?
@@nikkiofthevalley Probably not with a simple PID controller like this but with a rigid arm and some extra code, you could get it to start swinging to the point where it does a 180 swing - you just reverse the reaction wheel direction at each end of the swing to load it in the opposite direction. It would take some work but it's imo doable. In high school I made a self-sustaining pendulum out of a mindstorms kit that only used a mass that was raised a few centimeters at the apex of the swing, and then released at the bottom - to model a children's swing set. It's pretty easy to get that to increase amplitude. That was attached via a string, though, so it couldn't do a full 180 swing... you need a rigid arm for that.
As a college student in aerospace engineering who is now learning PID controllers, this video is awesome. This is easily one of my top 3 channels, this is a great new topic and I can’t wait to see what’s next!
This is a really great intro to controls and dynamics! I especially like how you showed the effect of different kinds of control delay, and different mechanical setups that also had noticeably different stiffnesses 👏🏽👏🏽👏🏽👏🏽👏🏽
One question, what library did you use for the continuous plots? And how did you extract that data from your scripts? Just dumped out as text and plotted later or plotted on the fly?
Absolutely amazing work. The way that you are able to understand the meaning of formulas that there are behind an inverted pedulum and how do you implement them into the code and correct all the issues that apears during the development is incredible. I would like to be half as smart as you 😂
i know Jack shit about this kind of programming or math, but I do know from getting decent algebra grades, they give you the formulas so you learn how to plug and play with random numbers to see what happens. eventually if you get good at the world is your oyster
As a mechanical engineering student interested in mechatronics, this is the coolest thing I've ever seen. It makes me want to try something like it myself!
I think ANGLE_FIXRATE is playing a role similar to what you would get from clamping the integral term to avoid windup. Might try that to simplify the code
Wow, that's crazy. I've never actually thought about what an inverted pendulum means, I just know it's what you need to ride a unicycle, so with that in mind I wonder if this Lego robot could ride a unicycle?
There's at least one extra step missing here that basically means the answer is no. On a unicycle, you intentionally overbalance in one direction to get moving. This robot would not know to do that, or have any concept of navigation for that matter. Not to mention, this is a single axis inverted pendulum, and a unicycle not only has all three axes of rotation available, it also has two-and-some axes of movement. An attempt to convert this robot to a unicycle riding robot that could even remain stationary would be at least as complicated as making either robot from scratch, if not moreso.
@@Woodledude good point. I didn't mean navigating at all, but it does make sense what you say about rotation in other axes just to try and stay upright. I suppose you could remedy that by adding a track, like if the wheel on the bottom had an axel sticking out either side, you could rest that on an elevated surface to ensure it can only fall in one dimension, and perhaps use a gear on a gear track to keep friction better.
@@jblen Training wheels would probably be sufficient to reduce the balancing problem to effectively single axis. I have a suspicion the twist about the vertical axis might still pose unexpected issues with gyroscopic precession, but a sufficiently "calm" single-axis balancer could probably ignore that. Probably. Be interesting to see. Your track suggestion would definitely do it, but then we're reducing the problem so much as to be very nearly the original problem with a different coat of paint. On the flip side, if you can control the twist of the unicycle with gyroscopic precession, there might exist a highly optimized solution for a single-axis balancer to actually navigate effectively. I have NO idea if gyroscopic precession actually comes into play in a controllable way here, I haven't run through the logic in my head - This is all suspicion and speculation. But it's certainly interesting to muse on.
So cool seeing the gyroscopic effect being used this way , I have been amazed when learning about the physics of it . and I appreciate the engineering of it now .
This channel is so special. I love content like this, playing with toy problems and using engineering principles to make stuff that's so fun. keep up the good work!!
Ah yes, PID loop refining. The true "Try some numbers and see" of engineering
That was just too beautiful! Everything else was well thought out and planned. and then this tuning "algorithm". Roll 3d100 and see what happens.
Nowadays you just put in some result parameters, and train the PID based on the results
Sounds like the kind of problem you throw at a genetic algorithm or neural network.
@@emmote77 neural network is more for complex patterns
You can model the whole setup, throw it into a block diagram, and calculate out the correct parameters. Seems a little silly with something this simple but it pretty important in chemical processes etc where trial and error isn't feasible.
I've had a similar prodgect in class ( the name was "ball and plate", a stabilized ball on a touch panel) and I love how we spend litteraly 10 hours on a precise calculus of the value of kp ki and kd (modelize thé forces and momentum etc...) when you simply Made it step-by-step lol
Super great video btw
Ah un français. On nous reconnais direct à cause du correcteur qui met des "thé" quand on veut écrire "the" 😂
@@Matthias-tc4ec j'ai fait ce que j'ai pu contre le correcteur 😆
@@calimero14 moi, j'ai éliminé la compétition. J'ai enlevé l'autocorrecteur parce que je devais trop souvent écrire deux fois ma phrase. J’étais tanné d’être en compétition avec l'autocorrecteur!😂
@@GuillaumePerronNantel sinon ultime solution que j'avais sur mon ancien téléphone, j'avais mis français et anglais dans le correcteur, le meilleur des deux mondes !
I think you mean trial-and-error instead of step-by-step? Your English is great otherwise👍
Dude, that would make an amazing science Fair entry
If you want more precision. You could use 2 wheel instead of 1. 1 for clockwise and 1 for count clockwise. Meaning the wheels keep going in the same directions and less jerking back and forth. As less accelaration is needed.
The one downside is that it decreases the reactive weight/dead weight ratio of the pendulum for a certain direction. But if it can achieve the angles and agility you want, then this doesn't really matter.
@@Marci124 true. So i guess it depends on how heavy the motor and wheels are.
It's the acceleration that is needed though. Less acceleration=less torque
@@TheTomco11 angler momentum will also stabiles the proces.
One the other hand, due to the increased total reactive weight, this setup would have twice the saturation margin as the single wheel setup. When one wheel is nearing saturation, the angular momentum could be transferred to the other wheel. You could do this by decelerating the saturated one at the same time as accelerating the other one in the same direction. During this operation, it's possible to not apply any torque, but one could also incorporate this to always run in the background by differentially moving the two wheels in concert. On the other other hand, doing the above would require one to move at least one wheel in both directions, doing away with the benefit frim the OP.
Watching the code evolve was a good insight into programming.
Very cool.
I have loved watching this channel break into more complex engineering projects, this is exactly my slice of pie.
10:49 I opened my mouth wide in amazement for more than 1 minute, really amazing work
I love the testing method of "hit it with a bottle"
it's a tried and true method
It works on large insects,
younger siblings,
and sensory robots you want to hit without damaging any components
@@Fishman7523 you already said large insects, didn't have to add younger siblings!
This is the most unrealistic depiction of programming I have seen since the movie 'Swordfish', your code always compiles and you didn't copy paste half of it from stackoverflow, you sir are a God, very well done.
Me: seeing a fun lego vid with other things from a good youtuber
The video: MY GOAL IS BEYOND YOUR UNDERSTANDING
Really impressive stuff! In graduate school I made an inverted pendulum and basically just tuned a PID until it stood upright lol. Now you have a cool physical system to test more advanced control methods though!
Holy shit, this is a true blast from the past. I had something like this in uni as a project to pass a course in control systems or some other similar subject.
There was a motorized cart on a suspended rail with a pendulum (metal rod) attached to it, and the goal was to swing to and hold the pendulum in unstable equilibrium (basically up top, same as in the video) only by moving the cart left or right along the rail. The challenge was to achieve this with PID or LQ controller, if I remember correctly, and PID was the absolute terrible option. Its tuning was done as in video - random-ass numbers and see what happens.
And of course, since it was the control theory related course, the true goal of this exercise was to solve a linear series of differential equations to get the theoretically perfect values of both PID and LQ params, which of course did not work because the cart and rail were constructed in 1990 and the acceleration was crap, so it was very much non ideal.
Thanks BEC for reigniting my love-hate relationship with my uni courses :D
Give This Guy Enough Time And Legos And He'll Make An Iron Man Suit Better Than HackSmith
There’s something hilarious about enslaving a lego motor to balance an unstable system for eternity.
“What is my purpose?”
“You balance this stick forever.”
“Oh my god.”
Very cool experiment!
Calibrating PID settings, you seem have read the same paper we used to us as a reference; I recognize the same strategy (however, the last fine tuning always feels a bit at random for anybody :p).
what paper is that?
@@Taygetea PID Without a PHD? Great read in any case.
very good PID control theory experiment. Wish I had this in college.
I would love to see this attempted again but with 2 flywheels as it were. One Clockwise and one counterclockwise. It could make for a much stable system as there is no need for the slight delay in changing rotations and it is simply a matter of decreasing or increasing the power to each one seperatly.
Now you need to make a glider submarine
I do not understand anything but it's Legos, so it's cool!, Great video man.
you are the giga chad of lego technics
Love this! Would the next level of innovation be to have the angle sensor and electronics made of Lego also? :)
Awesome 🥰 very well done - and perfectly explained - was a pleasure to watch - you got a new fan 😊
This video is your masterpiece for sure. Great job!
1:42 tipping over 100 keys
I would love to see this used to make a control system for another Lego sub
Ole Kirk: so, constructor be only for kids, no one else.
Lego 70 years later:
This is just ASMR of tech
Glorious and gorgeous
It would be cool if you put it on some kind of Lego platform and drove it around
Absolutely amazing 🤩
Thats basically how many satellites and space probes keep their orientation in space.
Very, very, VERY good video.
I dont understand anything, great content, love you
The way you hit it with a bottle of cola🤣
She's cranky, isn't she!
Good work, great video style.
Now use resulting charts of target/measured angle vs. time to predict a stock market that's characterized by a self-regulating behavior
Creative video, thanks for sharing it :)
Hows that oscilliscope? That looked neat, im going to look into that.
I’m good with my hands and I’m amazing at math. No way I could figure out what any of this means tho lol. Engineering is ridiculous. Always wanted to go to school for it but didn’t feel like it.
Well done cool project
How hard would it be to add another arm that rotates the first arm on the same plane? How hard if it rotates on the perpendicular plane?
This was the best...
Put it on a spiny 360 axle and make it do loops
I felt like a hacker watching this
I don't want to know how long the adjusting of the parameters took...
too many parameters, just throw it into a machine learning algorithm and make some tea. jk. pretty cool!
That random PID tuning was hard to watch.
Here they taught in uni how long as you know around correct numbers, then just tune with trial and error.
Can you make it 2 dimensional? Have another one underneath or on top?
Next logical step a self stable unicycle
Now add the second axis.
this reminds me of Big Dog.
Brillant!
I do not understand. Well done, sir.
this is the single worst thing i could be doing at 1 am
Ugh.. this is cool
so cool to see you branch out the skills you apply on this channel, amazing work!
wow you watch him?
It really is fascinating!
Cool to see your favorite youtubers watching your other favorite RUclipsrs
Hey Azeal did not expect to see you here! Been a fan for almost a year now
@@ДмитроМінтенко-м7и жаль. . .
I personally learned more in this "one cup of tea" episode then I would ever do so on the PID matter during my entire engineering course. Outstanding job!!
yes and no
@@Hans-tr6dx Well it depends how often do you press "Pause" :)
@@Kombivar Yes that's true. If you really go and understand everything he writes / codes then you get a huge amount out of it ^^
@@Hans-tr6dx True
No
I'm really impressed by Your skills. You are lego designer, physicist, programmer and electronics engineer. Thanks for the effort You put into Your videos, good luck in future experiments!
Yes, I want to make something like that but things are expensive because I'm a kid🤣🤣😅
this is all very basic stuff, give it a shot and you will make reaction wheel robots in no time
@@alvlp-xyz Ngl, I’ve seen kids do some cool engineering stuff. Example is the kid in Mark Rober’s video. I’ve also seen a kid in a third world country solder and create some stuff out of discarded e-waste. The thing here is maybe you’ve never really tried to create things like this.
I think most people i STEM know at least some basic Python or C, because it's used all over the place (in fact a common complaint related to working in Python is having to work with code written by non-programmers)
@@xGOKOPx damn, wish I have a programming subject. I think there will be in g12. But I plan to learn to code anyway. I really hear a lot in phyton.
My favorite part was when the wheel spun.
Hi theft king I liked your videos ty
You've made some pretty cool things for your channel, but this one is by far the best one. Excellent work!
I dont get it. What did he make? What purpose does it have?
@@EfeAksoy08 If you have no knowledge of Python, Lego, or physics, this won’t be interesting for you. Read the description or don’t, it’s not anyones responsibility to entertain you.
@@DK1213 easy Einstein, i just asked what it is
@@EfeAksoy08
Obviously in the title and description of the video.
Qowgfb
Nicely done! I particularly appreciate how you documented everything at the end, so anyone could replicate your work and build on it. Thanks!
Instead of switching the target angle at a fixed frequency to avoid saturation, run a slower feedback loop that adjusts target angle as a function of motor acceleration. Essentially get it to search for a target angle where it doesn't need to accelerate. You could probably get it completely stationary that way.
Nice. So one control loop tries to minimize the angle difference between setpoint and actual angle, and another control loop adjusts the setpoint angle to minimize the motor effort
I would do a pulsed step-up acceleration in relation to the deviation angle.
Please... PLEASE make one that works in 2 axis! :D
Awesome video btw!
yeah, and try free standing on a carpet or something
Or all 3 ones. O.o
@@ВикторМарухин-с2ж *buys drone*
@@SylvieTheBagel really :D
5:00 PID controller values : usually you set the P and D constants first, and end up with I part. The integral part is useful when current angle lags behind target, not for overall stability.
My favorite lego building youtuber is back! Got my morning coffee with me and ready to enjoy your builds!
Morning? I have 16:13😅
@@dominikromanczyk4595 HEHE
@@dominikromanczyk4595 Haha its morning for me, Pacific Time!
I am in UTC+8,now is 20:10
@@newswang1217 We have an hour in Poland 16:25
Impressive. I will stick to Lego Duplo.
This channel is gonna give Boston Dynamics a run for their money in a few years at this rate.
I for one welcome our new Lego overlords.
Beautiful video for understanding how control algorithms work! You are probably a very good engineer.
Reading this comment as he hits it with a pop bottle/shakez entire thing, very ironic thing to read lol
@@kameronmyles2013 average engineer
This is so epic. Coincidentally im doing this exact thing right now for a final project but using Non-linear backstepping control so it can swing up from any position. Nice job!!
I literally have no idea what's going on what they're coding or even what they're trying to achieve, but goddamn I sat thru everything mildly entertained and interested
@@tusharxo that is correct. it's a reaction wheel, which spins in reaction to it's angle being changed to get back to where it started. They're used in rockets, missiles, and other flying things.
@@tusharxo yea i also got it eventualy
I was scrollin trying to see if anybody else was also clueless
I thought reaction wheels were pretty common these days.
im too dumb to understand whats going on
same
BREAKFAST
I love it. Great project.
How about a version with an arm that can freely rotate 360 degrees? Could it get up from neutral hanging down position? Could it deal with rotating the entire apparatus?
Given that these are Lego motors, probably not, at least not without some gearing to increase the torque produced.
@@nikkiofthevalley Probably not with a simple PID controller like this but with a rigid arm and some extra code, you could get it to start swinging to the point where it does a 180 swing - you just reverse the reaction wheel direction at each end of the swing to load it in the opposite direction. It would take some work but it's imo doable.
In high school I made a self-sustaining pendulum out of a mindstorms kit that only used a mass that was raised a few centimeters at the apex of the swing, and then released at the bottom - to model a children's swing set. It's pretty easy to get that to increase amplitude. That was attached via a string, though, so it couldn't do a full 180 swing... you need a rigid arm for that.
As a college student in aerospace engineering who is now learning PID controllers, this video is awesome. This is easily one of my top 3 channels, this is a great new topic and I can’t wait to see what’s next!
is this stuff difficult to learn in your course?
@@hchickenz1138 conceptually yes, the theory behind it is difficult, but implementing it is pretty straightforward.
What are the other two channels? ))
Yo, as a control engineer, it's cool to see you applying PID control to a project anyone can do. Keepit up
Basically a human flailing his arms when he’s unbalanced
This is a really great intro to controls and dynamics! I especially like how you showed the effect of different kinds of control delay, and different mechanical setups that also had noticeably different stiffnesses 👏🏽👏🏽👏🏽👏🏽👏🏽
One question, what library did you use for the continuous plots? And how did you extract that data from your scripts? Just dumped out as text and plotted later or plotted on the fly?
Matplotlib
dude you are a magician
That was, in my opinion, the most inspiring video you've made, and god knows how inspiring your vids are :)
Keep it up !
This channel just constantly ups the game. My jaw dropped multiple times throughout the video. It's more than just engineering, this is art. BRAVO 👏👏👏
This is incredibly thorough documentation! Great job! I'm very much impressed!
Absolutely amazing work. The way that you are able to understand the meaning of formulas that there are behind an inverted pedulum and how do you implement them into the code and correct all the issues that apears during the development is incredible. I would like to be half as smart as you 😂
i know Jack shit about this kind of programming or math, but I do know from getting decent algebra grades, they give you the formulas so you learn how to plug and play with random numbers to see what happens. eventually if you get good at the world is your oyster
Actually that's not an inverted pendulum to be precise, but still an awesome project!
I love how all your content has the same style even if it's not legos.
legally it is lego
As a mechanical engineering student interested in mechatronics, this is the coolest thing I've ever seen. It makes me want to try something like it myself!
I think ANGLE_FIXRATE is playing a role similar to what you would get from clamping the integral term to avoid windup. Might try that to simplify the code
Absolutely loved that iterative engineering process, it was therapeutic
Wow, that's crazy. I've never actually thought about what an inverted pendulum means, I just know it's what you need to ride a unicycle, so with that in mind I wonder if this Lego robot could ride a unicycle?
There's at least one extra step missing here that basically means the answer is no.
On a unicycle, you intentionally overbalance in one direction to get moving. This robot would not know to do that, or have any concept of navigation for that matter.
Not to mention, this is a single axis inverted pendulum, and a unicycle not only has all three axes of rotation available, it also has two-and-some axes of movement.
An attempt to convert this robot to a unicycle riding robot that could even remain stationary would be at least as complicated as making either robot from scratch, if not moreso.
@@Woodledude good point. I didn't mean navigating at all, but it does make sense what you say about rotation in other axes just to try and stay upright. I suppose you could remedy that by adding a track, like if the wheel on the bottom had an axel sticking out either side, you could rest that on an elevated surface to ensure it can only fall in one dimension, and perhaps use a gear on a gear track to keep friction better.
@@jblen Training wheels would probably be sufficient to reduce the balancing problem to effectively single axis. I have a suspicion the twist about the vertical axis might still pose unexpected issues with gyroscopic precession, but a sufficiently "calm" single-axis balancer could probably ignore that. Probably. Be interesting to see. Your track suggestion would definitely do it, but then we're reducing the problem so much as to be very nearly the original problem with a different coat of paint.
On the flip side, if you can control the twist of the unicycle with gyroscopic precession, there might exist a highly optimized solution for a single-axis balancer to actually navigate effectively. I have NO idea if gyroscopic precession actually comes into play in a controllable way here, I haven't run through the logic in my head - This is all suspicion and speculation. But it's certainly interesting to muse on.
5:35
I didn’t know the lego motor could respond and make that noise
1 SECOND AGO!!
@@AidanGamesYT whatcha doing timing these comments? Just curious
Easily my favorite video you've put together. Well done documenting everything on this project.
Ohh man yes please. Love the combination of LEGO with electronics. My two guilty pleasures. Keep going!
Now make an AI that automatically figures out these PID parameters independent of the configuration.
This is a field of control systems that's called adaptive control. No ai needed
That's impressive!
Looks like someone is putting their engineering degree to good use
Id like to see this made into a lego segway. That would be neat.
you could also do a motorbike on a similar principle
if you want less delay, use C instead of Python. Will be like a thousand times faster on a Pi (or anything)
even faster, use asm. even faster, write directly in machine code
The code isn't the bottleneck here but the sensors
So cool seeing the gyroscopic effect being used this way , I have been amazed when learning about the physics of it . and I appreciate the engineering of it now .
This is not a demonstration of gyroscopic effect. Acceleration of the wheel just transfers torque trough the motor to the pendulum to keep it upright.
Ok this is sick. I wouldn’t be surprised if you made a whole ass lego satellite
*3 seconds ago*
get this comment out of here man. respect the vid
@@imakedookie? i meant “sick” as in “cool”, if thats what u are talking about
@@OrbitalLizardStudios @aiden my guy. "3 seconds ago" is a useless comment
This channel is so special. I love content like this, playing with toy problems and using engineering principles to make stuff that's so fun. keep up the good work!!
Screw learning at a school or online I’m just gonna watch this guy
Now optimize the parameters with machine learning. Heck, you could probably just rewrite the whole thing to be an ML model with 1 input and 1 output!