DIY Arduino Ball and Beam : PID control
Вставка
- Опубліковано 9 лют 2025
- This project is perfect if you want to move your first steps into the world of control engineering.
I'll explain in details how the PID algorithm works, so that you will be able to use it in every project you can think about. The only limit will be your imagination!
Lengths of wooden beams: 40cm, 10cm, 4cm
===============================
Components :
1 Arduino Pro Mini
1 MG996R servomotor
2 HC-SR04 sensors
===============================
Code : github.com/leo...
===============================
Circuit : github.com/leo...
===============================
#arduino #arduinoproject #engineering #controltheory #robotics #diy #coding #codingtutorial
Thank you.. because of you many people like me can learn easily hard concept of engineering ...
The capacitor is used to give more power to the moter at the Beginning, it is connected parallel with the motor (negative side with ground and Positive side with 5 V)
These are all the connections for the project : drive.google.com/file/d/1JrXXs7UJkxqDbQnFygE6pDJnkBuDaLge/view?usp=drivesdk
code plz
@@pumpkin3984the code in the video description
THANK U
Thank you so much!
This is awesome, thanks a lot
very nice and well done... 👍👍 i just watched a self-balance version using the esp32 pid... thanks.. 😀
Great work mate !
Hello, a question, do you know what the measurements of the structure are?
Hi! nice video but i have a question; where do i connect the capacitor? and the HC-SR04 sensor has 4 connections, and on your circuit drawing it only shows 3, do you have any information about this considering the correct connections?
What would happen if we use another servo, for example an sg90?
Do you you have the lengths of your setup? Like how tall you made it and such?
Ooo niiiice dude!
where you implement the capacitor?
Can you please drop the code you used for your project
Hi, a question. Can you write the detailed dimensions of the woods used in the project?
Thank you for useful video. I have a qs for you if I want to use a sensor HC-SR04, how will can I change the code?
where do you connect the capacitor
????
????
Hello thank you for this project. Do you have a matlab file and the dimension of the woods? Thank you
No tienes un código para control difuso en este sistema?
where did we connect the capacitor to ?
I like this
is it possible to do this project with an Arduino UNO ?
Excuse me, could you please help me with the connection of the arduino, I know you installed the circuit but is it just that or is it missing, since in the video it seems to be more because of the jumpers
Bro just connect the sensors and motor, there are tutorials on the internet. All it’s doing is reading the input of one sensor and setting the value as the output to the pic controller. Obviously there is there is a power source in the background, it’s really quite simple, just be creative with it
Buenas noches disculpe el capacitor que indico en los planos del circuito no esta incluido como es su conexion un favor y se podria usar la alimentacion de 5 voltios en un Arduino mega? ?
hello ise this same project your code so you put it as it is I wase it in arduino uno
and the cube is not placed at the distance of the cart
Hi, how are you?
I got a doubt...
How did you perform the calcus to get the the values for: Kd, Kp and Ki.
I will really apreciate your help, thank you so much.
Hi Liliana, nice question!
Firstly I used control theory to compute the transfer function between the cart position and the servomotor angle.
Finally I used simulink to tune the PID values.
But because of a not perfect mechanical structure these values didn't work well.
So I used the Model Identification Toolbox from Matlab so as to identify the correct transfer function, and then again I used simulink to tune the values.
Another option, faster and easier, is try to guess them through some experiments.
You can set them all to 0.
Start from Kp, increasing it slowly.
When you are satisfied with it, start increasing Ki.
Finally you can adjust also Kd value.
Thank you!!!! :D I really appreciate that you take the time to reply my question.
@@homemadeengineering9159 YOU WOULD HAVE ALSO PUT THOSE OPERATIONS, IF YOU ARE GOING TO TEACH A PROJECT YOU MUST DO IT WELL, EXPLAINING EACH STEP IN DETAIL🙄
how to connect the second ultrasonic sensor you did not explain in the circuit diagram
Hello dear, do you know if you managed to carry out that project, did you understand the diagram, could you please tell me.
can i use arduino uno r3 instead ?
Hello. Mi trying yo make this project for school. I want you to know if You can help of solving some douts that i have?
Thank yuou.
Hello, please share detailed dimensions of the woods used in the project?
What s the length of the lever connecting the motor and the beam ??
Hey, thank you for the Code Breakdown. I'm working on a pretty similar project, and when looking at other's approaches to it online, I struggled to find clear code, yours is much easier to understand. Do you have any tips on filtering out noise/bad data from the distance sensor? Loved the video btw!
I really appreciate your comment! My suggestion is to use a digital low pass filter, as I mentioned in the video both to filter the measurements and the derivative action
Hey did you figure out how to add in the capacitor?
Hi , just wondering the size of servo used here ?@@homemadeengineering9159
can you plz tell us the dimensions of the wood design.
Thank you for this very nice piece of engineering. I am trying to recreate this with some friends and we were wondering whether it would be possible to see the dimensions of the woodwork. Thank you in advance!
The length of the wood is 40cm
Thank you
Can you show us the right circuit diagram sir ?
Hey, the arduino pro mini is 3,3 volts or 5 volts?
What's the use of capacitor?
????
Hi. Can you give the exact measurements of the structure please?
Hey,in line 88, how did you get the two values 24,156
its minimum and maximum voltage value of working of servomotor i believe but idk
simulink?
Hello sir. Can you help me please?
hello , i want code. Do you sent it to me by e-mail?
como se hace paso a paso?
Hello
I am very interested in this model, I would like to contact you to learn more
How do we contact each other?
Hi! nice video but i have a question; where do i connect the capacitor? and the HC-SR04 sensor has 4 connections, and on your circuit drawing it only shows 3, do you have any information about this considering the correct connections?