PID Balance+Ball | full explanation & tuning
Vložit
- čas přidán 20. 06. 2024
- $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: / electronoobs en español
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 - Věda a technologie
Follow me on FACEBOOK for more: facebook.com/Electronoobs
help me on Patreon: www.patreon.com/ELECTRONOOBS
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.
puedes ponerle subtitulos porfavor.
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
@@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.)
I like the fact your code does not use a library, so the computation is easily visible.
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.
Yeah
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...
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
Elimination of derivative kick is a good term to google
@@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
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.
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!
One of the best practical demonstrations of PID I've ever seen, fantastic!
Was researching about PID temperature controller, I found my self on your video, then I wanted to get more explanation on PID control systems, CZcams 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.
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!
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!
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!
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!!
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.
best explanation ever ! thank you again
I made my machine learning pid iron station and i made pid code by helping your videos great man
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.
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.
Heckin' fantastic. I've spent countless hours on PID theory and programming. This is hands-down the best example I've seen. Insta-subscribed.
Thank you very much
@@ELECTRONOOBS I made my machine learning pid iron station and i made pid code by helping your videos great man
I've read about the theory several times without fully understanding but this simplified experiment makes it all very clear..... great stuff.
I know right! I totally agree.
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
PID was always a tough topic to visualise but your demonstration made it really easy.
Thank you so much.
That explanation was really good, a noob as well as a professional could understand what you were saying. Subscribed
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.
This is hands down the best illustration of PID control I've seen! Great work!
What a brilliant and intuitive explanation. No lecturer of mine could ever explain it like this.
One of the clearest presentations of PID control I've seen yet. Thanks!
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!
The best PID explanation I’ve found on the internet! Well done.
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.
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!
I see you have paid attention at your control systems' lectures
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!!
I've never understood PID well enough, until now :D Thank You!
One of the best PID- explanation i found so far. Thank you.
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.
Best PID demo I've seen. Keep up the good work bud!
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.
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.
Awesome channel! One of the best practical explanations of PID control I've seen!
This is the best PID explanation I have seen so far! Thank you!!!
You actually closed half year of lectures on my studies in 3 minutes... :D Very practical approach.
I found this video very clear to demonstrate the PID concept and the isolated effect of each feedback component. Thank you for sharing
Thank you, I love all your videos, I think you're the best CZcamsr in your field of projects!
A fantastic educational video that explains and demonstrates EACH PART of the equation and how each contributes to the solution. Well done!
Thank you very much, this was one of the videos that helped me to, finally today, develop my PID controll for BALL & PLATE. You have no idea on how much you helped me. Thank you!
if you explain it simply, you understand it !!
YOU'RE AWESOME explaining the PID parts ..
- Mechatronics engineer
Been trying to understand this for a while, thanks for simplifying the explanation, it really helped. You've gained a subscriber.
I never had this realization of PID controller. Really appreciate the effort you put in this video
Great, when you really understand these things you always want to go further, not as a teacher that thinks he understood.
I really needed that
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
Apparemment je ne suis pas le seul français ici !
Wow! How clearly you have explained PID. Great.
One of the best explanations I've seen. Well done.
This is an excellent demo of a PID controller. Thank you!
I finally learnt how PID control works. Thanks alot! ❤
Very nice! The quadcopter pilots always struggle with PID concepts, I think this can help a lot!
This is about the best demo of how PID control works ever.
Amazing. I think I will make a replica for my introductory calculus class! Thank you for being so creative and generous.
This is an incredibly well put together video and it's such a good explanation!
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.
We love your channel and you inspire us to start our own channel about control theory, system identification and computational intelligence. Love your videos!
I havent watched this through yet but can tell its a great instructional video... Also
That circuitboard background is SICK!!!!!
Best PID video on CZcams!
Thanks! =)
Thank you, I must agree that this is the best example and explanation of PID ever.
Nice PID control demonstration. Thanks!
Thanks for the share a nice intuitive way of explaining pids something I've not fully understood till now....
Never had issues understanding the P or D part, but I was always a mystery. THANK YOU!
This is sick thank you. It was really cool to look at all the variables visually.
Absolutely love this clear, concise, simple explanation!! Been watching your videos for a while now and love them all. Keep up the great work!!
Amazing videos with the best PID explanation I've seen.
Best PID explanation I ever watched. THANK YOU
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
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.
That was very gratifying! I loved the balancing ball idea.
For the first time understood ,what actually is PID , great application and good video man
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.
Best pid explanation i ever got, thank you !
really amazed to see practical aspect of whatever we study theoretically...Thanks
One of the best demonstration of PID! kudos 👏🏻
taking a control course at uni now. this helps a lot with getting the feel of what each does very nicely!
Really good explanation of PID !! Hope you keep doing this great job ! Thank you for it
this is one of the best examples that clicked for me
Excellent video and great explanation of PID control.
You have a great channel! I'm impressed.. you did an awesome job sir!
This video clearly explains the PID, studying each of the P, I, and D separately made me get it finally.
Very nice 👌 I don't work with PID but you remind of past times when we studied Controls.
Damn probably the best demonstration! And also it explains the meaning of the formulas.
Really great explanation of PID controller. Thank you😀✌️
Damn dude you're the fifth video I've watched on this subject today but the first to actually make sense 🔥
Wow probably the best explaination of pid controllers. Thank you good sir
Best PID video I've ever seen!
Congrats for your great effort. It's the best explanations of PID Control ever I 've seen. Thanks a lot.
Great explanation. I am sure this will be useful to many. Thanks for investing the time.
Thank you sharing. Love your projects. They are all great fun and great for learning at the same time.
Great video. Studied this at uni and this explains the terms practically and very clearly. Nice one. 👍
Nice example! Simple and clear. Thank you!
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.
This was exactly what I was looking for. Great video🙌🙌
Thanks mate..The best explanations for PID control concept
Excellent demonstration. I will use this with students. Thanks you
You are a good teacher, bro! Thank you!
Very good video! It really helped my robotics students understand PID controls!
A brilliant way to explain PID!
Graat job. Very nice explanation of PID regulation. Thank you.
Thank you for very clear explanation about PID!