How selfless of you. Most people would charge for something like this, but you actually help learners learn-by-project approach by making it available to other users. I subbed. Looking forward to your content.
2 things for those interested: 1) It is moving because for some reason of that force applied on the Y+ on the 3rd plate, together with the main step input of the system. This is looping through again and again making a set reference point of let's say "+X degrees" hence it moves in a direction. Tuning it manually I found that if you keep that force on the top plate let's say +1, then you should have a step input with an initial value of +4, and that should make sure that the robot stabilizes using perfect PID values automically tuned and realistic environment. With this logic if you want to let's say simulate your own different setpoint remember that if you want to have a 10 degrees setpoint add +4 to it to make it appropriate and realistic, so put into the step an initial value of +14, and so on. In short, that constant movement of the robot is due to that initial force given to the top plate. 2) for those maniacs out there like myself, if you want to keep Z+ axis as your "UP" then just add a rigid transform right before the prismatic joint and set it as follows: Method: Standard axis > Axis: -Y > Angle:90. then go to the Mechanism Configuration and have gravity as: [0 0 -9.80665] this way gravity is kept as a force towards your relative "DOWN". Click ok, then hit Ctrl+D and enjoy your Z as "UP/Down" and X as "Forward/Backward" and Y as "Sideways".
I am having an issue, at the mid of the video, the bot is oscillating while give a +y force at p3, but mine is not oscillating, but moving and rotating at a faster pace(increasing), yes, i set the damping coeff at rotating joint. Anyway its moving but not oscillating. Can anyone help me with this?
interesting video although just doing a standard screen cast even if it's longer would be much more useful. I feel like i have to debug this tutorial. You add in blocks and components offscreen and use keyboard short cuts without explaining how to search for components. Also things like at 12:12 where you say it's really crucial to set a value and then cover the actual screen with a blown up screen shot of a properties window (but is it the one you're talking about, is it a bug and which one is it for), below the screenshot you can see the bottom of the actual window you're editing.. Great topic but honestly just a screen share of the whole process (sped up for bits if needed) would be much more useful. Nothing fancy just what you did is best.
@@hobby_coding i have gone same steps wt the vedio simscape then multibody elements but there is only 4 options they are variable mass ,inertia ,solid, graphic where could i find the cylinderical solid option?please
Great work!! I was impressed by this and wanted to implement LQR controller instead of PID. Can you implement LQR controller on the body, I am having some issues doing that. I dont know how to apply the state space model to the simscape simulations.
Thanks for the video, I'm facing a problem and I wanted to ask here: the mechanic explorer doesn't show any of the parts that I created it only shows a grey screen. Does anyone know how to solve that?
Hello, facing the same issue.. And if I select auto tuning method. The dialogue box opens and it shows plant cannot be linearized. And also my model is not seen only grey screen is visible. Can you please tell me what to do?
Hello, I enjoyed the video. We are currently working on a project to produce segway. I succeeded in copying the video with my modeling. The question is, is the p,i,d value tuned in this multibody reliable? I mean, does it automatically calculate the transfer function? Thank you for the video. Thank you.
Simulink is an educational tool and many students use it for their final year projects,so I thought i'd make a mini project in Simulink before the second semester arrives.
@@hobby_coding my model is related to this only , I have made a self balancing robot in simuscape , I didn't get The correct output that's why i asked for help
@@AbhinavSingh-fq9ek ok, i will take a look into it later , I'll send you the answer via mail . 🔥 IMPORTANT : the value of the gain block is : -180 / 3.14
you mean the robot contacting the ground? i believe there is an unofficial library made by one of the Simulink employees, I didn't have the time to implement this idea thou, maybe in the future.
@@oktaysaglam2372 i think this block was introduced lately to simscape , however a couple of years ago when you wanted to achieve such a thing you had to download a library from file exchange, anyways I'm grateful to you for telling me about it , I'm definitely gonna explore this further.
This simulation is available at : ko-fi.com/s/716bba8384
thinks
I was actually the first one to download it. Very
@@wenhaoli6218 I'm glad you liked it
@@hobby_coding Looking forward to your update, I will always pay attention
How selfless of you. Most people would charge for something like this, but you actually help learners learn-by-project approach by making it available to other users. I subbed. Looking forward to your content.
2 things for those interested:
1) It is moving because for some reason of that force applied on the Y+ on the 3rd plate, together with the main step input of the system. This is looping through again and again making a set reference point of let's say "+X degrees" hence it moves in a direction. Tuning it manually I found that if you keep that force on the top plate let's say +1, then you should have a step input with an initial value of +4, and that should make sure that the robot stabilizes using perfect PID values automically tuned and realistic environment. With this logic if you want to let's say simulate your own different setpoint remember that if you want to have a 10 degrees setpoint add +4 to it to make it appropriate and realistic, so put into the step an initial value of +14, and so on.
In short, that constant movement of the robot is due to that initial force given to the top plate.
2) for those maniacs out there like myself, if you want to keep Z+ axis as your "UP" then just add a rigid transform right before the prismatic joint and set it as follows: Method: Standard axis > Axis: -Y > Angle:90. then go to the Mechanism Configuration and have gravity as: [0 0 -9.80665] this way gravity is kept as a force towards your relative "DOWN". Click ok, then hit Ctrl+D and enjoy your Z as "UP/Down" and X as "Forward/Backward" and Y as "Sideways".
This is an amazing video I always wondered how this was done. Thank you very much hope to see more videos! Subscribed!!
i as well
I love ❤️ and subscribe your channel. Thanks very much bro and continue more deep video
And contact me I will help you with everything I can.
Let's be friends
thank u soooo much. this video saves my life
you're welcome :)
what is a gravity? why the robot is running very quickly when i run it
Nice video, thanks for sharing :)
you're welcome ;)
Remarkable! Wonderful I am speechless..
Glad you enjoyed it!
that was so helpful thankyou
I am having an issue, at the mid of the video, the bot is oscillating while give a +y force at p3, but mine is not oscillating, but moving and rotating at a faster pace(increasing), yes, i set the damping coeff at rotating joint. Anyway its moving but not oscillating.
Can anyone help me with this?
interesting video although just doing a standard screen cast even if it's longer would be much more useful. I feel like i have to debug this tutorial. You add in blocks and components offscreen and use keyboard short cuts without explaining how to search for components. Also things like at 12:12 where you say it's really crucial to set a value and then cover the actual screen with a blown up screen shot of a properties window (but is it the one you're talking about, is it a bug and which one is it for), below the screenshot you can see the bottom of the actual window you're editing..
Great topic but honestly just a screen share of the whole process (sped up for bits if needed) would be much more useful. Nothing fancy just what you did is best.
thanks for the valuable remark.
Increasing integral gain has steady state error almost zero. But when I autotune it. Increasing integral gain doesnt effect steady state error. Why?
how do you see all components at 8:19?
Thank you. could you explain how to communicate with a real 2 wheel robot and how we apply this tutorial on that?
hello and please,in the library i cant find cylindrical solid option why is that
make sure simscape is installed
@@hobby_coding i have gone same steps wt the vedio simscape then multibody elements but there is only 4 options they are variable mass ,inertia ,solid, graphic
where could i find the cylinderical solid option?please
@@merondesta3895 i have matlab 2019b so maybe you have a different version than me
@@hobby_coding yes so do i have to install that one or i can replace by other like from variable mass option lists
thankyou
why is the force in the y direction when the plane of movement is the xz? Why isn't it the z?
in this simulation i only consider movement in one axis
Which block or component in the simulation is responsible for giving the force for the robot to move ?
the pid controller gives the control signal which is then fed to the prismatic joint
in this simulation you are just calculation vertical angle?
i'm calculating the tilt angle with respect to the vertical axis.
Why I can't use outotune?
yes you can, just be careful with the output limits.
@@hobby_coding Also, do we need to include the weight of battery and microcontroller in the simulation?
@@k1s1t7 yes absolutely
If l have the mathmatical model ..how to use it in the simulink ..plz answer me
Great work!! I was impressed by this and wanted to implement LQR controller instead of PID. Can you implement LQR controller on the body, I am having some issues doing that. I dont know how to apply the state space model to the simscape simulations.
sure, great idea.
i made the LQR implementation you can check it out
@@hobby_coding Thank you soo much.
@@Aakash3101 you'r most welcome
Can you make a video talking about used PID+Neural Network to control self-balancing robot in Simulink?
you mean tuning pid params using a nn ?
@@hobby_coding yep, I hope you will
I have own Solidworks design parts and apply PID same way. But increasing integral gain doesnt have steady state error less.
check your COG, it has to be somewhere in the center of the robot and not biased (to the left or the right )
@@hobby_coding Thanks for reply. I understood mostly. But what does it mean as biased?
@@technopeace4077 it means that the COG is centered regarding the x and y axis
How can I keep robot from going?
how can i get the transfer function of the system from this simulation?
Can you make a video talking about a spherical robot?
That sounds like a nice idea
what is 12:10
Sir, on which version is math lab simulink is 2013/2017/2020 etc... We can do this as a project
but i can't find cylindrical solid in simscape
What sensor to be used in the actual project ?
MPU 6050 is what i use
Can we control the positon of the Robot like you have done in the lqr video in this simulation
Do you mean adding another PID controller ? maybe , but you need another sensor which is the motor encoders
At 14:01 what is value of gain ?
kindly Answer me
he put it in the video description -----> gain block is : -180 / 3.14
Thanks for the video, I'm facing a problem and I wanted to ask here: the mechanic explorer doesn't show any of the parts that I created it only shows a grey screen. Does anyone know how to solve that?
1 - make sure you connect the model to the world frame
2 - make sure you update the model using CTRL- D
@@hobby_coding did both still no result
Hello, facing the same issue.. And if I select auto tuning method. The dialogue box opens and it shows plant cannot be linearized. And also my model is not seen only grey screen is visible. Can you please tell me what to do?
Thank you, this was excellent. I don't think the student license let's us do the animation though.
Someone tell me about mathematical equation this video, please ?
Could you help me with the programming in simulink?
Hello, I enjoyed the video.
We are currently working on a project to produce segway.
I succeeded in copying the video with my modeling. The question is, is the p,i,d value tuned in this multibody reliable? I mean, does it automatically calculate the transfer function?
Thank you for the video. Thank you.
did you findout your question answer i'm facing same problem
Nice work
I'm naive in matlab.
I'm just wondering what advantages do you see in simulink over ROS+Gazebo for simulation of this robot model..?
Simulink is an educational tool and many students use it for their final year projects,so I thought i'd make a mini project in Simulink before the second semester arrives.
Why have you taken positive feedback loop instead of negative feedback loop?
it's negative just look at the negative gain , also read the description of the video for more information about this
Okay why is the initial perturbation made negative?
@@khiyanatdeori5957 well , you can set it to positive if you want it doesn't matter which side you push the robot from, the result should be the same.
Thanks a lot ❤️
@@khiyanatdeori5957 you are welcome :)
I'm facing a problem with my Simuscape model , I've mailed you my .slx file can you please have a look and help me in rectifying the errors
please read the description first .
@@hobby_coding my model is related to this only , I have made a self balancing robot in simuscape , I didn't get The correct output that's why i asked for help
@@AbhinavSingh-fq9ek ok, i will take a look into it later , I'll send you the answer via mail .
🔥 IMPORTANT : the value of the gain block is : -180 / 3.14
@@hobby_coding yes sir I did put the same value of gain
How can I make a contact definition on the model?
you mean the robot contacting the ground? i believe there is an unofficial library made by one of the Simulink employees, I didn't have the time to implement this idea thou, maybe in the future.
@@hobby_coding "Spatial
The Contact Force "block creates a contact between two definitions. I'm surprised you don't know :/
@@oktaysaglam2372 i think this block was introduced lately to simscape , however a couple of years ago when you wanted to achieve such a thing you had to download a library from file exchange, anyways I'm grateful to you for telling me about it , I'm definitely gonna explore this further.
@@oktaysaglam2372 this i what i was talking about
link : ua-cam.com/video/8nDqJ6skk-8/v-deo.html
@@hobby_coding thank you brother success :D
Is this video back on the shelves
i made a remastered version