PID Balance+Ball | full explanation & tuning

  Переглядів 714,661

Electronoobs

Electronoobs

День тому

$2 for 5PCBs (Any solder mask colour): jlcpcb.com
See each step for the P, the I and D action. See how each of the variables will change the output and finally get the ball stablea and stop it in the middle of the balance. Theory + example of PID tunning.
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.com/eng_preguntas...
Facebook page: / electronoobs
Canal en Español: / @electronoobsenespanol
LINKS
-------------------------------------
Tutorial website :electronoobs.com/eng_arduino_t...
Schematic: electronoobs.com/eng_arduino_t...
Code: electronoobs.com/eng_arduino_t...
3D files: electronoobs.com/eng_arduino_t...
PART LIST
-------------------------------------
Arduino nano: rover.ebay.com/rover/1/711-53...
Sharp 2y0a21 sensor: rover.ebay.com/rover/1/711-53...
Futaba S3003 servo: rover.ebay.com/rover/1/711-53...
🔬PRINTERS FDM
-------------------------------------
Artillery Sidewinderr X1 (364€ Aliexpress): s.click.aliexpress.com/e/_9y9haI
Artillery GENIUS (307€ Aliexpress): s.click.aliexpress.com/e/_A9SvG2
Creality3D Ender 3 Pro (230€ Aliexpress): s.click.aliexpress.com/e/_APcCa2
Anycubic Mega S (206€ Aliexpress): s.click.aliexpress.com/e/_ALcTLs
ELEGOO NEPTUNE 2 (186€ Aliexpress): s.click.aliexpress.com/e/_AM2y7c
Prusa i3 MK3S Clone (393€ Aliexpress): s.click.aliexpress.com/e/_ASNXyi
Creality CR-10 V3 (480€ Aliexpress): s.click.aliexpress.com/e/_AnycCO
🔅PRINTERS RESIN
-------------------------------------
ELEGOO Mars Pro (208€ Aliexpress): s.click.aliexpress.com/e/_A0nVFY
ELEGOO Saturn MSLA (480€ Aliexpress): s.click.aliexpress.com/e/_AKxJim
Anycubic Photon Mono (199€ Aliexpress): s.click.aliexpress.com/e/_9ulv4K
Creality HALOT ONE (275€ Aliexpress): s.click.aliexpress.com/e/_Ak7jBC
Like share and subscribe to motivate me. Thank you
#PID
#balance
#servo

КОМЕНТАРІ: 637
@ELECTRONOOBS
@ELECTRONOOBS 4 роки тому
Follow me on FACEBOOK for more: facebook.com/Electronoobs help me on Patreon: www.patreon.com/ELECTRONOOBS
@ahmdabdallah2132
@ahmdabdallah2132 4 роки тому
Electronoobs 🔴 What Is Islam? ⚠️ 🔴 Islam is not just another religion. 🔵 It is the same message preached by Moses, Jesus and Abraham. 🔴 Islam literally means ‘submission to God’ and it teaches us to have a direct relationship with God. 🔵 It reminds us that since God created us, no one should be worshipped except God alone. 🔴 It also teaches that God is nothing like a human being or like anything that we can imagine. 🌍 The concept of God is summarized in the Quran as: 📖 { “Say, He is God, the One. God, the Absolute. He does not give birth, nor was He born, and there is nothing like Him.”} (Quran 112:1-4)[4] 📚 🔴 Becoming a Muslim is not turning your back to Jesus. 🔵 Rather it’s going back to the original teachings of Jesus and obeying him.
@martinmoraga2220
@martinmoraga2220 4 роки тому
puedes ponerle subtitulos porfavor.
@brunsniggel
@brunsniggel 4 роки тому
Did you try reading a couple of distance measurments and f.ex averaging the result? Might be able to smooth out the noise from the sensor
@KeithOlson
@KeithOlson 4 роки тому
​@@ahmdabdallah2132 ...except Allah is NOT Yahweh--they follow two COMPLETELY different ideas of justice, for example--nor did Jesus teach what Mohammed did; quite the opposite, in fact. For example, Jesus allowed Himself to be killed for His beliefs, while Mohammed killed others for his. (I won't reply further, as the original post was religious spam, but lies must not be allowed to stand unprotested.)
@featherbrain7147
@featherbrain7147 4 роки тому
I like the fact your code does not use a library, so the computation is easily visible.
@uatiger1
@uatiger1 3 роки тому
Very Thankful to you brother. I am an Electrical Engineering graduate and I have studied Control Systems extensively in my degree. I studied the mathematics of PID controllers in excruciating detail. And never fully understood it and could never apply it in practice until I watched this video of yours. Hats off man.
@bogdanmarinescu78
@bogdanmarinescu78 4 роки тому
I've read quite a few PID tutorials in the past and they helped me understand how PID works, but this is still by far the best explanation of PID that I've ever seen, and now I understand PID even better. Thanks and keep up the good work!
@johnschmidt874
@johnschmidt874 4 роки тому
I think it's the best explanations of PID control concept i've ever had. It didn't dive into mathematical model, but it gave concept of how PID works. It's good if you make another video on how to apply filters on the system. Thanks for making this awesome video mate. Edit: you've got a new subscriber here.
@Evgen-Evgen-Evgen
@Evgen-Evgen-Evgen 4 роки тому
Yeah
@MrScorpnok
@MrScorpnok 4 роки тому
This controller uses the ideal formula for D i think. If the setpoint is changed from a value to another (or the measured value...)in this case if the ball is moved from one point to another, the difference between measure and setpoint will instantly change and so the D will jump up to infinite for a moment (error-previousError/TIME)... In reality a filtration constant is needed. The shaking in this is probably is due to te inaccuracy of the measuring device (the measurement value jumps in steps instead of smooth rise/lowering) for that you'll need the filtration timeconstant, which will limit the jump of the D-control. Don't really know how to explain better without bringing laplace-functions to the table... Laplace functions are imo the easiest way to show the principle but i'd have to explain how they work...
@MrScorpnok
@MrScorpnok 4 роки тому
So, lets assume the system in this video checks the balls position every 1 ms and the accuracy of the measurement is 5mm. If the ball moves really slow, lets say it is 20mm away... it can move a few mm (to 22mm) before the measurement device reacts, and when it reacts (at 23mm), it'll think it has moved to 25mm. Now that the last measurement before the change was 1ms ago, the derivate part calculates 5mm/1ms, even tho the ball would be just barely rolling. The speed calculated with these values ends up being 5m/s. This makes the excessive back-n-forth movement. I think you might have already figured out why the filtration is needed but anyways... I was bored so I explained anyways :D also this didn't help at all with what you were asking which was HOW to make the filtration XD
@MrScorpnok
@MrScorpnok 4 роки тому
Elimination of derivative kick is a good term to google
@akkudakkupl
@akkudakkupl 3 роки тому
@@MrScorpnok You can also just get rid of the D term if you are okay with a bit of overshoot. Most real life process automation just ditches the D term because it has destabilizing properties :D
@WillHenson2009
@WillHenson2009 4 роки тому
One of the best practical demonstrations of PID I've ever seen, fantastic!
@robbgosset674
@robbgosset674 3 роки тому
This is by far one of the best explanations of how PID control works. Clear, concise and covers all the encessary information. Thanks for making this video!
@miiroderrick8821
@miiroderrick8821 4 роки тому
Was researching about PID temperature controller, I found my self on your video, then I wanted to get more explanation on PID control systems, UKposts brought me here surprised you're the same person to offer both my interests and I don't need any extra video. Honestly, you're the best I have ever seen in electronics. Thanks for the simple and creative illustrations.
@donstillwell9894
@donstillwell9894 4 роки тому
Excellent demonstration of PID control. We are going to build your PID project to use in our maintenance training, where I work, to hopefully give our maintenance team members a better understanding of how a PID control work and how to tune a PID loop. Thank you very much for taking the time to make the video and sharing it with us!!
@ranashreyas
@ranashreyas 4 роки тому
This was such an amazing explanation, mostly because you used a physical model and tested it; no other tutorial has actually implemented it. Thank you!
@final0915
@final0915 3 роки тому
it’s 2:39am in the UK and I need to get up at 6:30am. This has made my day already! thank you so much for putting this together.
@essascoisas100
@essascoisas100 4 роки тому
I usually don't leave a comment on videos, but man, this one is gold. I'm an almost graduaded eletrical engineer and I took control classes. They were full of math and theory and lacked pratical exemples and your explanation is flawless. Just earned a new subscriber. Keep up this excelent work!
@clairecelestin8437
@clairecelestin8437 5 місяців тому
Seeing the behavior of each component in a real system made it absolutely clear what each expression does, and how they work together to hold the system at a specific value. This was a really great demonstration.
@ravindrasarak2007
@ravindrasarak2007 4 роки тому
PID was always a tough topic to visualise but your demonstration made it really easy. Thank you so much.
@RafaelKarosuo
@RafaelKarosuo 3 роки тому
As many other have said, this 14 minutes helped understand the PID control implementation in code, way better than a semester of my automation and control introduction. Thanks
@harshdesai1932
@harshdesai1932 4 роки тому
You Explained this in best way than any youtuber can explain. You have cleared my so many doubts. You are a genius. Keep Spreading knowledge. I really really appriciate you man.
@johnstilwell9462
@johnstilwell9462 3 роки тому
One of the clearest presentations of PID control I've seen yet. Thanks!
@jiangxu3895
@jiangxu3895 4 роки тому
Best PID explanations. I’ve gone through many tutorials, none of them explained well to show the importance of each parameter. It is especially difficult for me to understand the integrate of distance, when the differentiation of distance is equal to speed, which is much easier to understand. Anyway, great video. Keep up!
@muqarrab8736
@muqarrab8736 4 роки тому
That explanation was really good, a noob as well as a professional could understand what you were saying. Subscribed
@nieldewet5315
@nieldewet5315 4 роки тому
What a brilliant and intuitive explanation. No lecturer of mine could ever explain it like this.
@brandonmartin7779
@brandonmartin7779 3 роки тому
This is hands down the best illustration of PID control I've seen! Great work!
@77Chester77
@77Chester77 3 роки тому
This was my first video in the field of controllers and now I feel that I already have a rough idea what P-, I- and D-Values do. Thank you very much!
@kenlipper874
@kenlipper874 4 роки тому
Thanks for that - really cool! I've been trying to get a grasp on PIDs as applied to my racing quadcopters. Your excellent experiment and explanation really helped.
@albrosTeam
@albrosTeam 4 роки тому
I found this video very clear to demonstrate the PID concept and the isolated effect of each feedback component. Thank you for sharing
@theflyingdutchman787
@theflyingdutchman787 4 роки тому
The best PID explanation I’ve found on the internet! Well done.
@kun_fu_taco4775
@kun_fu_taco4775 3 роки тому
You are a life saver my friend! We have a system that control volumetric flow and we are trying to keep the flow rate steady at very low flows, this is all controlled by a PID system and I had a hard time understanding how to input the values. This really helps! "If the error is too small, the proportional won't affect" This seems true because we have a harder time controlling the lowest flows which is probably not being detected by the system.
@Barxxo
@Barxxo 3 роки тому
One of the best PID- explanation i found so far. Thank you.
@ConsultingjoeOnline
@ConsultingjoeOnline 4 роки тому
Awesome tutorial. I do hvac programming and I write pids for temp control. This is a great video for understanding the P, I and D. Keep it up.
@PhilippeCarphin
@PhilippeCarphin 6 місяців тому
I spent at least an hour last week trying to find a video on PID control for my friend and none of them including the one I selected were as good as this so I'm gonna send him this one immediately.
@ShopperPlug
@ShopperPlug Рік тому
This is really a cool PID example, like the fact it is using a LIDAR. This is the best explanation of PID and how it works.
@defenestrated23
@defenestrated23 4 роки тому
Heckin' fantastic. I've spent countless hours on PID theory and programming. This is hands-down the best example I've seen. Insta-subscribed.
@ELECTRONOOBS
@ELECTRONOOBS 4 роки тому
Thank you very much
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 роки тому
@@ELECTRONOOBS I made my machine learning pid iron station and i made pid code by helping your videos great man
@edgeeffect
@edgeeffect 4 роки тому
I've read about the theory several times without fully understanding but this simplified experiment makes it all very clear..... great stuff.
@pawelglowacki
@pawelglowacki 3 роки тому
I know right! I totally agree.
@Mustafff76
@Mustafff76 4 роки тому
I've never understood PID well enough, until now :D Thank You!
@OsoPolarClone
@OsoPolarClone 4 роки тому
A fantastic educational video that explains and demonstrates EACH PART of the equation and how each contributes to the solution. Well done!
@chaussebenjamin
@chaussebenjamin 3 роки тому
This is the best PID explanation I have seen so far! Thank you!!!
@wikrap1
@wikrap1 4 роки тому
You actually closed half year of lectures on my studies in 3 minutes... :D Very practical approach.
@mmdnaderi7183
@mmdnaderi7183 4 роки тому
best explanation ever ! thank you again
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 роки тому
I made my machine learning pid iron station and i made pid code by helping your videos great man
@eritronc
@eritronc 4 роки тому
I hope i was told the PID system that way at the university! In 13 minutes i learn what i couldn't on 7 years! Your application is so clear. Thank you!!
@mibrahim4245
@mibrahim4245 3 роки тому
if you explain it simply, you understand it !! YOU'RE AWESOME explaining the PID parts .. - Mechatronics engineer
@hoxorious
@hoxorious 4 роки тому
I finally learnt how PID control works. Thanks alot! ❤
@pawelglowacki
@pawelglowacki 3 роки тому
Awesome channel! One of the best practical explanations of PID control I've seen!
@quantomic1106
@quantomic1106 4 роки тому
Best PID demo I've seen. Keep up the good work bud!
@markmaker2488
@markmaker2488 3 роки тому
Thank you, I must agree that this is the best example and explanation of PID ever.
@AYPAK
@AYPAK 3 роки тому
I never had this realization of PID controller. Really appreciate the effort you put in this video
@durandile
@durandile 4 роки тому
Thank you, I love all your videos, I think you're the best UKpostsr in your field of projects!
@gildedbear5355
@gildedbear5355 3 роки тому
Never had issues understanding the P or D part, but I was always a mystery. THANK YOU!
@baijalashok
@baijalashok 4 роки тому
Wow! How clearly you have explained PID. Great.
@ezion67
@ezion67 4 роки тому
This is about the best demo of how PID control works ever.
@strydomobile
@strydomobile 4 роки тому
One of the best explanations I've seen. Well done.
@abhiramghanta9060
@abhiramghanta9060 4 місяці тому
this is one of the best examples that clicked for me
@MrAlFuture
@MrAlFuture 4 роки тому
This is an excellent demo of a PID controller. Thank you!
@dkryptonut
@dkryptonut 4 роки тому
Been trying to understand this for a while, thanks for simplifying the explanation, it really helped. You've gained a subscriber.
@MABdrone
@MABdrone 3 роки тому
Very nice! The quadcopter pilots always struggle with PID concepts, I think this can help a lot!
@surajmate8047
@surajmate8047 4 роки тому
thanks sir I think it's the best explanations of PID control concept i've ever had. please keep teaching and helping us thank you so much im from india and im big fan of your electronics projects again thanks
@saketanand44
@saketanand44 3 роки тому
really amazed to see practical aspect of whatever we study theoretically...Thanks
@te9781
@te9781 Рік тому
Best PID explanation I ever watched. THANK YOU
@GuyFromJupiter
@GuyFromJupiter Рік тому
Higher gain values make for a faster reacting system, but they also tend to make the system very unstable if raised too high. This is especially true in systems with a considerable amount of dead time, which is the time from the PID changes its output to when there is a response from the system as measured by the sensor. This is why PID controls always have to be tuned for an optimal balance of performance and stability.
@subirbhaduri
@subirbhaduri Рік тому
Amazing. I think I will make a replica for my introductory calculus class! Thank you for being so creative and generous.
@jonathandufault2099
@jonathandufault2099 3 роки тому
This is an incredibly well put together video and it's such a good explanation!
@JamesFraley
@JamesFraley 5 місяців тому
Amazing videos with the best PID explanation I've seen.
@worldvision8645
@worldvision8645 3 роки тому
We love your channel and you inspire us to start our own channel about control theory, system identification and computational intelligence. Love your videos!
@philkennedy342
@philkennedy342 4 роки тому
Thanks for the share a nice intuitive way of explaining pids something I've not fully understood till now....
@user-mc1rq4pw1o
@user-mc1rq4pw1o Місяць тому
This video clearly explains the PID, studying each of the P, I, and D separately made me get it finally.
@sheepman6291
@sheepman6291 4 роки тому
This is sick thank you. It was really cool to look at all the variables visually.
@mehmetkayhan2465
@mehmetkayhan2465 Рік тому
Congrats for your great effort. It's the best explanations of PID Control ever I 've seen. Thanks a lot.
@cymeriandesigns
@cymeriandesigns 4 роки тому
This was a great demonstration of what each of the P I and D factors are for, and how they individually influence the final result. I found myself wondering whether averaging multiple sensor values would reduce the jitter. Anyway, thank you for making this.
@babdie
@babdie 4 роки тому
For the first time understood ,what actually is PID , great application and good video man
@thesimonien
@thesimonien 3 роки тому
Best pid explanation i ever got, thank you !
@aaronchu0427
@aaronchu0427 2 роки тому
Thank you sharing. Love your projects. They are all great fun and great for learning at the same time.
@Leafyfpv
@Leafyfpv 4 роки тому
I havent watched this through yet but can tell its a great instructional video... Also That circuitboard background is SICK!!!!!
@Arthur-rh9tf
@Arthur-rh9tf 4 роки тому
Wow probably the best explaination of pid controllers. Thank you good sir
@brandonmeyer2922
@brandonmeyer2922 4 роки тому
Absolutely love this clear, concise, simple explanation!! Been watching your videos for a while now and love them all. Keep up the great work!!
@hugbearsx4
@hugbearsx4 4 роки тому
Great! So now it's time for a video on PID tuning, right? That is, finding the optimal values for p, i and d parameters.
@MrJordot7
@MrJordot7 4 роки тому
I work with PID control quite often yet this is the best way I've heard it explained! Fancy doing a slight development of the same experiment, but put a fan at one end that you can direct towards/away from the ball to model an outside influence? When you use a PID for cooling, the temperature of the coolant can change, which means your actuator may need to start providing 'more' even though it was at equilibrium.
@stevelee7843
@stevelee7843 Рік тому
One of the best demonstration of PID! kudos 👏🏻
@anavartpandya7626
@anavartpandya7626 Рік тому
This was exactly what I was looking for. Great video🙌🙌
@andrewclarke7637
@andrewclarke7637 5 місяців тому
Great video. Studied this at uni and this explains the terms practically and very clearly. Nice one. 👍
@IncroyablesExperiences
@IncroyablesExperiences 4 роки тому
Great, when you really understand these things you always want to go further, not as a teacher that thinks he understood.
@RiteshNEVERUNIFORM
@RiteshNEVERUNIFORM 3 роки тому
I really needed that
@ramonmorales4937
@ramonmorales4937 3 роки тому
bruhhh my teacher doesn't want us to understand, he just want to cover the signature, even when he is a doctor in control systems. We know how to design a PID in math but not in real plants LOL
@justineloi1234
@justineloi1234 2 роки тому
Apparemment je ne suis pas le seul français ici !
@Green__Man
@Green__Man Рік тому
Damn dude you're the fifth video I've watched on this subject today but the first to actually make sense 🔥
@tunahankaratay1523
@tunahankaratay1523 4 роки тому
Best PID video I've ever seen!
@francoisguyot9770
@francoisguyot9770 Рік тому
That was very gratifying! I loved the balancing ball idea.
@Kaxlon
@Kaxlon 4 роки тому
Best PID video on UKposts! Thanks! =)
@heitorc122
@heitorc122 4 роки тому
Really good explanation of PID !! Hope you keep doing this great job ! Thank you for it
@ChillyFries444
@ChillyFries444 3 місяці тому
Best PID video every , semesters worth of college courses in Control Systems never got this into me dude, great job
@nilobortolotti7065
@nilobortolotti7065 4 роки тому
Excellent video and great explanation of PID control.
@SecurityDivision
@SecurityDivision 4 роки тому
Damn probably the best demonstration! And also it explains the meaning of the formulas.
@electronics.unmessed
@electronics.unmessed 4 місяці тому
Nice PID control demonstration. Thanks!
@maplobats
@maplobats 4 роки тому
A brilliant way to explain PID!
@user-cs2cn9ft3e
@user-cs2cn9ft3e 4 роки тому
You are a good teacher, bro! Thank you!
@manickn6819
@manickn6819 4 роки тому
Great explanation. I am sure this will be useful to many. Thanks for investing the time.
@josejimenez850
@josejimenez850 4 роки тому
A simple and brilliant demo
@siddharthmali5841
@siddharthmali5841 4 роки тому
Really great explanation of PID controller. Thank you😀✌️
@TexanMonkey
@TexanMonkey 5 місяців тому
Very good video! It really helped my robotics students understand PID controls!
@alvinmendoza7559
@alvinmendoza7559 4 роки тому
Thank you for very clear explanation about PID!
@Chouby3
@Chouby3 5 місяців тому
Wow such a great explanation with real life application. Love it! Thank you
@asyraafmdnor3273
@asyraafmdnor3273 4 роки тому
Thanks mate..The best explanations for PID control concept
@Amir-kz6yq
@Amir-kz6yq 4 роки тому
I see you have paid attention at your control systems' lectures
@JimK0QJC
@JimK0QJC 3 роки тому
Excellent demonstration. I will use this with students. Thanks you
@toptv7977
@toptv7977 4 роки тому
Thank you so much for the project
@nylapiriri1147
@nylapiriri1147 3 роки тому
One of the best experiments on PID control.
@KrisKasprzak
@KrisKasprzak 3 роки тому
From one DIY UKpostsr to another... well done.
What is a PID Controller? | DigiKey
22:19
DigiKey
Переглядів 57 тис.
I Built a Ball Balancing Robot
8:55
Aaed Musa
Переглядів 1 млн
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 9 млн
PIDs Simplified
13:07
SiieeFPV
Переглядів 278 тис.
PID vs. Other Control Methods: What's the Best Choice
10:33
RealPars
Переглядів 101 тис.
Controlling Self Driving Cars
4:41
AerospaceControlsLab
Переглядів 488 тис.
PID brushless motor control tutorial
16:25
Electronoobs
Переглядів 457 тис.
Уроки Ардуино. ПИД регулятор
28:57
Заметки Ардуинщика
Переглядів 447 тис.
Hardware Demo of a Digital PID Controller
2:58
Gregory L. Holst
Переглядів 964 тис.
Tuning A Control Loop - The Knowledge Board
21:51
ABB Process Automation
Переглядів 434 тис.
Arduino Projects - 12 GREAT Ideas for you!!!
9:00
ToP Projects Compilation
Переглядів 329 тис.
Empirical PID gain tuning (Kevin Lynch)
7:08
Northwestern Robotics
Переглядів 151 тис.
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Переглядів 1,9 млн
Тестируем Gravis Ultrasound... ну почти.
48:18
Дмитрий Бачило
Переглядів 34 тис.
Start from 0 at any point on the T1 Digital Tape Measure
0:14
REEKON Tools
Переглядів 25 млн
Я Создал Новый Айфон!
0:59
FLV
Переглядів 2,1 млн